The only existing code example for Flutter modals that I've been able to find was this one:
onTap: (){
showModalBottomSheet<Null>(context: context, builder: (BuildContext context) {
return new Container(
child: new Padding(
padding: const EdgeInsets.all(32.0),
child: new Text('This is the modal bottom sheet. Click anywhere to dismiss.',
textAlign: TextAlign.center,
style: new TextStyle(
color: Theme.of(context).accentColor,
fontSize: 24.0
)
)
)
);
});
}
The problem I've found is that container height on a bottom sheet can't go much past 500.0 px. Are there any existing implementations of full screen modals in Flutter? If not, are there any good hacks for forcing the bottomSheet to display full page?
A related question: Are pixels the only way to set height and width? I'm used to CSS where I can use VW and VH or percentage values to deal with all screen sizes. Don't seem to be able to do that with this framework.
I appreciate any help and suggestions!