nice
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:bus_infotainment/pages/audio_cache_test.dart';
|
||||
import 'package:bus_infotainment/pages/initial_startup.dart';
|
||||
import 'package:bus_infotainment/pages/tfl_dataset_test.dart';
|
||||
import 'package:bus_infotainment/backend/live_information.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
@@ -26,9 +27,13 @@ void main() async {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
LiveInformation liveInformation = LiveInformation();
|
||||
await liveInformation.initialize();
|
||||
|
||||
runApp(const MyApp());
|
||||
|
||||
// Disalow screen to turn off on android
|
||||
await SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky);
|
||||
// Disalow landscape mode
|
||||
@@ -37,7 +42,7 @@ void main() async {
|
||||
DeviceOrientation.portraitDown,
|
||||
]);
|
||||
|
||||
runApp(const MyApp());
|
||||
|
||||
}
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
@@ -71,7 +76,9 @@ class MyApp extends StatelessWidget {
|
||||
routes: {
|
||||
'/home': (context) => const MyHomePage(title: 'Flutter Demo Home Page'),
|
||||
'/audiocachetest': (context) => AudioCacheTest(),
|
||||
'/': (context) => TfL_Dataset_Test(),
|
||||
// '/': (context) => TfL_Dataset_Test(),
|
||||
'/': (context) => InitialStartup(),
|
||||
'/application': (context) => TfL_Dataset_Test(),
|
||||
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user