-1

I want to compromise the iOS full screen dialog something like this in flutter, any suggestions or solutions?

thanks in Advance

abdullah
  • 157
  • 2
  • 8

1 Answers1

0

Here try this out this I think this is what you are looking for

//This should be one of the first lines in your build function
Size size = MediaQuery.of(context).size;

RaisedButton(
                child: Text('Show Bottom Modal'),
                onPressed: () => showModalBottomSheet(
                  isScrollControlled: true,
                  shape: RoundedRectangleBorder(
                      borderRadius: BorderRadius.circular(30)),
                  context: context,
                  builder: (context) => Container(
                    color: Colors.amber,
                    height: size.height,
                  ),
                ),
              )

Let me know how this works for you

wcyankees424
  • 2,554
  • 2
  • 12
  • 24