File tree Expand file tree Collapse file tree 3 files changed +14
-13
lines changed
Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -39,19 +39,20 @@ class _HomePageState extends State<HomePage> {
3939 mainAxisSize: MainAxisSize .min,
4040 children: [
4141 ElevatedButton (
42- onPressed: () async {
43- var res = await Navigator .push (
44- context,
45- MaterialPageRoute (
46- builder: (context) => const SimpleBarcodeScannerPage (),
47- ));
48- setState (() {
49- if (res is String ) {
50- result = res;
51- }
52- });
53- },
54- child: const Text ('Open Scanner' )),
42+ onPressed: () async {
43+ var res = await Navigator .push (
44+ context,
45+ MaterialPageRoute (
46+ builder: (context) => const SimpleBarcodeScannerPage (),
47+ ));
48+ setState (() {
49+ if (res is String ) {
50+ result = res;
51+ }
52+ });
53+ },
54+ child: const Text ('Open Scanner' ),
55+ ),
5556 Text ('Barcode Result: $result ' ),
5657 ],
5758 ),
You can’t perform that action at this time.
0 commit comments