Navaron Bracke

remove obsolete sized box

... ... @@ -23,10 +23,7 @@ class MyHome extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Mobile Scanner Example')),
body: SizedBox(
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height,
child: Column(
body: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
ElevatedButton(
... ... @@ -67,8 +64,7 @@ class MyHome extends StatelessWidget {
),
);
},
child:
const Text('MobileScanner with Controller (returning image)'),
child: const Text('MobileScanner with Controller (returning image)'),
),
ElevatedButton(
onPressed: () {
... ... @@ -102,7 +98,6 @@ class MyHome extends StatelessWidget {
),
],
),
),
);
}
}
... ...