Showing
1 changed file
with
4 additions
and
2 deletions
| @@ -23,8 +23,9 @@ class MyHome extends StatelessWidget { | @@ -23,8 +23,9 @@ class MyHome extends StatelessWidget { | ||
| 23 | Widget build(BuildContext context) { | 23 | Widget build(BuildContext context) { |
| 24 | return Scaffold( | 24 | return Scaffold( |
| 25 | appBar: AppBar(title: const Text('Mobile Scanner Example')), | 25 | appBar: AppBar(title: const Text('Mobile Scanner Example')), |
| 26 | - body: Column( | ||
| 27 | - mainAxisAlignment: MainAxisAlignment.center, | 26 | + body: Center( |
| 27 | + child: Column( | ||
| 28 | + mainAxisAlignment: MainAxisAlignment.spaceAround, | ||
| 28 | children: [ | 29 | children: [ |
| 29 | ElevatedButton( | 30 | ElevatedButton( |
| 30 | onPressed: () { | 31 | onPressed: () { |
| @@ -100,6 +101,7 @@ class MyHome extends StatelessWidget { | @@ -100,6 +101,7 @@ class MyHome extends StatelessWidget { | ||
| 100 | ), | 101 | ), |
| 101 | ], | 102 | ], |
| 102 | ), | 103 | ), |
| 104 | + ), | ||
| 103 | ); | 105 | ); |
| 104 | } | 106 | } |
| 105 | } | 107 | } |
-
Please register or login to post a comment