Last active
December 22, 2018 03:57
-
-
Save maheshj01/298e119e44f7016770d3d5414a556ed2 to your computer and use it in GitHub Desktop.
opens an Empty BottomSheet on button press
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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