Skip to content

Instantly share code, notes, and snippets.

@maheshj01
Last active December 22, 2018 03:57
Show Gist options
  • Save maheshj01/298e119e44f7016770d3d5414a556ed2 to your computer and use it in GitHub Desktop.
Save maheshj01/298e119e44f7016770d3d5414a556ed2 to your computer and use it in GitHub Desktop.
opens an Empty BottomSheet on button press
MaterialButton(
child: Text(
"Cupertino date Picker",
style: TextStyle(color: Colors.white),
),
color: Colors.redAccent,
onPressed: () {
showModalBottomSheet(
context: context,
builder: (BuildContext builder) {
return Container(
height: MediaQuery.of(context).copyWith().size.height / 3,
);
});
},
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment