diff options
Diffstat (limited to 'lib/badge_app.dart')
-rw-r--r-- | lib/badge_app.dart | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/badge_app.dart b/lib/badge_app.dart new file mode 100644 index 0000000..edc1897 --- /dev/null +++ b/lib/badge_app.dart @@ -0,0 +1,32 @@ +import 'package:badge/scan_page.dart'; +import 'package:flutter/material.dart'; + +class BadgeApp extends StatelessWidget { + const BadgeApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Scanner', + theme: ThemeData( + // This is the theme of your application. + // + // TRY THIS: Try running your application with "flutter run". You'll see + // the application has a purple toolbar. Then, without quitting the app, + // try changing the seedColor in the colorScheme below to Colors.green + // and then invoke "hot reload" (save your changes or press the "hot + // reload" button in a Flutter-supported IDE, or press "r" if you used + // the command line to start the app). + // + // Notice that the counter didn't reset back to zero; the application + // state is not lost during the reload. To reset the state, use hot + // restart instead. + // + // This works for code too, not just values: Most code changes can be + // tested with just a hot reload. + colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), + ), + home: const ScanPage(title: 'Badge Scanner'), + ); + } +} |