Fixed buttons leaving this world without SafeArea
This commit is contained in:
parent
9eb1c8e59a
commit
740dcba160
1 changed files with 75 additions and 71 deletions
|
|
@ -835,7 +835,8 @@ class _GamePageState extends State<GamePage> {
|
|||
Widget build(BuildContext context) {
|
||||
final size = MediaQuery.of(context).size;
|
||||
|
||||
return Scaffold(
|
||||
return SafeArea(
|
||||
child: Scaffold(
|
||||
body: SizedBox(
|
||||
width: size.width,
|
||||
height: size.height,
|
||||
|
|
@ -846,7 +847,8 @@ class _GamePageState extends State<GamePage> {
|
|||
boundaryMargin: const EdgeInsets.all(800),
|
||||
maxScale: 0.8,
|
||||
minScale: 0.4,
|
||||
child: isGuesser ? _generateGameField() : _generateStaticField(),
|
||||
child:
|
||||
isGuesser ? _generateGameField() : _generateStaticField(),
|
||||
),
|
||||
Positioned(
|
||||
bottom: 0,
|
||||
|
|
@ -915,6 +917,7 @@ class _GamePageState extends State<GamePage> {
|
|||
child: Container(
|
||||
height: 50,
|
||||
width: 50,
|
||||
alignment: Alignment.center,
|
||||
decoration: const BoxDecoration(
|
||||
color: Colors.black,
|
||||
borderRadius:
|
||||
|
|
@ -926,6 +929,7 @@ class _GamePageState extends State<GamePage> {
|
|||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue