Showing
1 changed file
with
9 additions
and
2 deletions
| @@ -8,7 +8,14 @@ import 'package:mobile_scanner_example/barcode_scanner_without_controller.dart'; | @@ -8,7 +8,14 @@ import 'package:mobile_scanner_example/barcode_scanner_without_controller.dart'; | ||
| 8 | import 'package:mobile_scanner_example/barcode_scanner_zoom.dart'; | 8 | import 'package:mobile_scanner_example/barcode_scanner_zoom.dart'; |
| 9 | import 'package:mobile_scanner_example/mobile_scanner_overlay.dart'; | 9 | import 'package:mobile_scanner_example/mobile_scanner_overlay.dart'; |
| 10 | 10 | ||
| 11 | -void main() => runApp(const MaterialApp(home: MyHome())); | 11 | +void main() { |
| 12 | + runApp( | ||
| 13 | + const MaterialApp( | ||
| 14 | + title: 'Mobile Scanner Example', | ||
| 15 | + home: MyHome(), | ||
| 16 | + ), | ||
| 17 | + ); | ||
| 18 | +} | ||
| 12 | 19 | ||
| 13 | class MyHome extends StatelessWidget { | 20 | class MyHome extends StatelessWidget { |
| 14 | const MyHome({super.key}); | 21 | const MyHome({super.key}); |
| @@ -16,7 +23,7 @@ class MyHome extends StatelessWidget { | @@ -16,7 +23,7 @@ class MyHome extends StatelessWidget { | ||
| 16 | @override | 23 | @override |
| 17 | Widget build(BuildContext context) { | 24 | Widget build(BuildContext context) { |
| 18 | return Scaffold( | 25 | return Scaffold( |
| 19 | - appBar: AppBar(title: const Text('Flutter Demo Home Page')), | 26 | + appBar: AppBar(title: const Text('Mobile Scanner Example')), |
| 20 | body: SizedBox( | 27 | body: SizedBox( |
| 21 | width: MediaQuery.of(context).size.width, | 28 | width: MediaQuery.of(context).size.width, |
| 22 | height: MediaQuery.of(context).size.height, | 29 | height: MediaQuery.of(context).size.height, |
-
Please register or login to post a comment