top_bottom_sheet_flutter

Creator: coderz1093

Last updated:

Add to Cart

Description:

top bottom sheet flutter

About #
-This plugin will help you to show the bottom sheet to the top of the screen
copied to clipboard
Parameters #

isShowCloseButton
closeButtonRadius
closeButtonBackgroundColor
closeButtonIcon
child
context

Installation #
Install the dependencies and devDependencies and start the server.
flutter pub add top_bottom_sheet_flutter
flutter pub get
copied to clipboard
Or
dependencies:
top_bottom_sheet_flutter: $currentVersion$
copied to clipboard
Example #
void showSheet() {
TopModalSheet.show(
context: context,
isShowCloseButton: true,
closeButtonRadius: 20.0,
closeButtonBackgroundColor: Colors.white,
child: Container(
color: Colors.white,
child: SizedBox(
height: MediaQuery.of(context).size.height / 2,
child: ListView.separated(
itemBuilder: (BuildContext context, int index) {
return ListTile(
title: const Text('Ankit Tiwari'),
subtitle: const Text('tiwariankit496@gmail.com'),
leading: FloatingActionButton(
heroTag: index,
backgroundColor: Colors.white,
onPressed: () {},
child: const FlutterLogo(),
),
);
},
itemCount: 30,
separatorBuilder: (BuildContext context, int index) {
return const Divider();
},
),
),
));
}
copied to clipboard
Screenshot #


How to reach us #

tiwariankit496@gmail.com
https://github.com/ankittiwari25

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.