expanded_bottom_sheet 0.0.3
expanded_bottom_sheet: ^0.0.3 copied to clipboard
A scrollable bottom sheet with ability to be expanded and scroll more
scrollable_bottom_sheet #
A scrollable bottom sheet with ability to be expanded and scroll more
Example #
Install #
dependencies:
scrollable_bottom_sheet: ^0.0.1
or
flutter pub add scrollable_bottom_sheet
How to use #
// FIRST INITIALIZE WIDGETS
BottomSheetWidget().centerWidget = MyBottomSheetWidget();
BottomSheetWidget().headerWidget = MyBottomSheetHeader();
// TO OPEN THE BOTTOM SHEET
BottomSheetWidget().openBottomSheet(context, backgroundColor: Colors.black, backgroundOpacity: 0.4);
// TO CLOSE THE BOTTOM SHEET
BottomSheetWidget().closeBottomSheet();
Note #
- The centerWidget MUST be a SliverList otherwise it will give an error