Created
May 15, 2020 16:28
-
-
Save samuelematias/f6178f1a1dee97396d28f26bc490f428 to your computer and use it in GitHub Desktop.
Modal with keyboard Flutter
This file contains 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
showModalBottomSheet( | |
isScrollControlled: true, | |
context: context, | |
builder: (context) { | |
return SingleChildScrollView( | |
child:Container( | |
padding: | |
EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom), | |
child: AnyChild(), | |
) | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment