mirror of
https://github.com/cupcakearmy/fight-of-the-mobiles.git
synced 2026-04-02 18:25:23 +00:00
Flutter changes
This commit is contained in:
@@ -1,29 +1,10 @@
|
||||
// import 'dart:async';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:qr_mobile_vision/qr_camera.dart';
|
||||
// import 'package:flutter/services.dart';
|
||||
|
||||
// import 'package:barcode_scan/barcode_scan.dart';
|
||||
|
||||
import '../Components/BG.dart';
|
||||
import '../Components/SyncIcon.dart';
|
||||
|
||||
class Scan extends StatelessWidget {
|
||||
// Future scan() async {
|
||||
// try {
|
||||
// String barcode = await BarcodeScanner.scan();
|
||||
// print('Success');
|
||||
// print(barcode);
|
||||
// Navigator.pushNamed(null, '/home');
|
||||
// } on PlatformException catch (e) {
|
||||
// if (e.code == BarcodeScanner.CameraAccessDenied)
|
||||
// print('The user did not grant the camera permission!');
|
||||
// } catch (e) {
|
||||
// print('Nope');
|
||||
// print(e);
|
||||
// }
|
||||
// }
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => BG(
|
||||
child: Center(
|
||||
|
||||
Reference in New Issue
Block a user