beginning work on ui
This commit is contained in:
+12
-1
@@ -1,9 +1,20 @@
|
||||
import 'package:camera/camera.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:tensordex_mobile/widgets/tensordex_home.dart';
|
||||
import 'package:tensordex_mobile/utils/logger.dart';
|
||||
|
||||
late List<CameraDescription> cameras;
|
||||
|
||||
Future<void> main() async {
|
||||
runApp(const MyApp());
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
cameras = await availableCameras();
|
||||
SystemChrome.setPreferredOrientations([
|
||||
DeviceOrientation.portraitUp,
|
||||
DeviceOrientation.portraitDown,
|
||||
]).then((_) {
|
||||
runApp(const MyApp());
|
||||
});
|
||||
}
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
|
||||
Reference in New Issue
Block a user