Fixed buttons leaving this world without SafeArea

This commit is contained in:
Andrew 2023-03-04 04:11:21 +07:00
parent 9eb1c8e59a
commit 740dcba160

View file

@ -835,7 +835,8 @@ class _GamePageState extends State<GamePage> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
final size = MediaQuery.of(context).size; final size = MediaQuery.of(context).size;
return Scaffold( return SafeArea(
child: Scaffold(
body: SizedBox( body: SizedBox(
width: size.width, width: size.width,
height: size.height, height: size.height,
@ -846,7 +847,8 @@ class _GamePageState extends State<GamePage> {
boundaryMargin: const EdgeInsets.all(800), boundaryMargin: const EdgeInsets.all(800),
maxScale: 0.8, maxScale: 0.8,
minScale: 0.4, minScale: 0.4,
child: isGuesser ? _generateGameField() : _generateStaticField(), child:
isGuesser ? _generateGameField() : _generateStaticField(),
), ),
Positioned( Positioned(
bottom: 0, bottom: 0,
@ -915,6 +917,7 @@ class _GamePageState extends State<GamePage> {
child: Container( child: Container(
height: 50, height: 50,
width: 50, width: 50,
alignment: Alignment.center,
decoration: const BoxDecoration( decoration: const BoxDecoration(
color: Colors.black, color: Colors.black,
borderRadius: borderRadius:
@ -926,6 +929,7 @@ class _GamePageState extends State<GamePage> {
], ],
), ),
), ),
),
); );
} }