2

I'm a beginner and I would like to create a button/container who have only a color and on pressed of this container it show a container more big on the center who have some information, like image and text.

And when I go back return a small container.

Like in this video at the minutes 2:07 https://www.youtube.com/watch?v=E-gi8xPBuNo

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
codefree
  • 59
  • 1
  • 7

2 Answers2

1

I think BottomSheet is what you are looking for https://punitd.dev/static/0529ed371ac3fe7808b3392ea603047c/fbf08/image_2.png

and for the "small container" (the one that says "Measurement saved", right?) you could try using a SnackBar https://i.stack.imgur.com/rHTZ3.png

Good luck with your project,
-Cedric

Cedric
  • 470
  • 6
  • 20
0

You can try to override on back button pressed function using WillPopScope widget. Refer this stackOverFlow answer

Pulkit Prajapat
  • 190
  • 2
  • 11