Skip to content

Instantly share code, notes, and snippets.

@ayoubm
ayoubm / flutter_bottomsheet.dart
Created March 8, 2021 09:45
Flutter BottomSheet
class _MyFloatingActionButtonState extends State<MyFloatingActionButton> {
bool showFab = true;
@override
Widget build(BuildContext context) {
return showFab
? FloatingActionButton(
onPressed: () {
var bottomSheetController = showBottomSheet(
context: context,
builder: (context) => Container(