0 purchases
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('[email protected]'),
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 #
[email protected]
https://github.com/ankittiwari25
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.