Showing
2 changed files
with
2 additions
and
6 deletions
| @@ -25,8 +25,7 @@ class _BarcodeScannerWithControllerState | @@ -25,8 +25,7 @@ class _BarcodeScannerWithControllerState | ||
| 25 | 25 | ||
| 26 | @override | 26 | @override |
| 27 | Widget build(BuildContext context) { | 27 | Widget build(BuildContext context) { |
| 28 | - return MaterialApp( | ||
| 29 | - home: Scaffold( | 28 | + return Scaffold( |
| 30 | backgroundColor: Colors.black, | 29 | backgroundColor: Colors.black, |
| 31 | body: Builder(builder: (context) { | 30 | body: Builder(builder: (context) { |
| 32 | return Stack( | 31 | return Stack( |
| @@ -150,7 +149,6 @@ class _BarcodeScannerWithControllerState | @@ -150,7 +149,6 @@ class _BarcodeScannerWithControllerState | ||
| 150 | ], | 149 | ], |
| 151 | ); | 150 | ); |
| 152 | }), | 151 | }), |
| 153 | - ), | ||
| 154 | ); | 152 | ); |
| 155 | } | 153 | } |
| 156 | } | 154 | } |
| @@ -16,8 +16,7 @@ class _BarcodeScannerWithoutControllerState | @@ -16,8 +16,7 @@ class _BarcodeScannerWithoutControllerState | ||
| 16 | 16 | ||
| 17 | @override | 17 | @override |
| 18 | Widget build(BuildContext context) { | 18 | Widget build(BuildContext context) { |
| 19 | - return MaterialApp( | ||
| 20 | - home: Scaffold( | 19 | + return Scaffold( |
| 21 | backgroundColor: Colors.black, | 20 | backgroundColor: Colors.black, |
| 22 | body: Builder(builder: (context) { | 21 | body: Builder(builder: (context) { |
| 23 | return Stack( | 22 | return Stack( |
| @@ -64,7 +63,6 @@ class _BarcodeScannerWithoutControllerState | @@ -64,7 +63,6 @@ class _BarcodeScannerWithoutControllerState | ||
| 64 | ], | 63 | ], |
| 65 | ); | 64 | ); |
| 66 | }), | 65 | }), |
| 67 | - ), | ||
| 68 | ); | 66 | ); |
| 69 | } | 67 | } |
| 70 | } | 68 | } |
-
Please register or login to post a comment