Navaron Bracke

remove obsolete sized box

@@ -23,10 +23,7 @@ class MyHome extends StatelessWidget { @@ -23,10 +23,7 @@ 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: SizedBox(  
27 - width: MediaQuery.of(context).size.width,  
28 - height: MediaQuery.of(context).size.height,  
29 - child: Column( 26 + body: Column(
30 mainAxisAlignment: MainAxisAlignment.center, 27 mainAxisAlignment: MainAxisAlignment.center,
31 children: [ 28 children: [
32 ElevatedButton( 29 ElevatedButton(
@@ -67,8 +64,7 @@ class MyHome extends StatelessWidget { @@ -67,8 +64,7 @@ class MyHome extends StatelessWidget {
67 ), 64 ),
68 ); 65 );
69 }, 66 },
70 - child:  
71 - const Text('MobileScanner with Controller (returning image)'), 67 + child: const Text('MobileScanner with Controller (returning image)'),
72 ), 68 ),
73 ElevatedButton( 69 ElevatedButton(
74 onPressed: () { 70 onPressed: () {
@@ -102,7 +98,6 @@ class MyHome extends StatelessWidget { @@ -102,7 +98,6 @@ class MyHome extends StatelessWidget {
102 ), 98 ),
103 ], 99 ],
104 ), 100 ),
105 - ),  
106 ); 101 );
107 } 102 }
108 } 103 }