orientation v2

This commit is contained in:
2024-10-03 12:39:39 +02:00
parent df2771fb01
commit cb14d1a600
2 changed files with 8 additions and 6 deletions

View File

@@ -8,8 +8,6 @@ import 'package:flutter_web_plugins/flutter_web_plugins.dart';
void main() async {
WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setPreferredOrientations(
[DeviceOrientation.portraitUp, DeviceOrientation.landscapeLeft]);
FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
AppEnviroment.setupEnv(Enviroment.dev);
SuperTokens.init(
@@ -18,5 +16,8 @@ void main() async {
);
setUrlStrategy(PathUrlStrategy());
FlutterNativeSplash.remove();
runApp(const MzanziInnovationHub());
SystemChrome.setPreferredOrientations(
[DeviceOrientation.portraitUp, DeviceOrientation.landscapeLeft])
.then((value) => runApp(const MzanziInnovationHub()));
//runApp(const MzanziInnovationHub());
}

View File

@@ -8,8 +8,6 @@ import 'package:flutter_web_plugins/flutter_web_plugins.dart';
void main() async {
WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setPreferredOrientations(
[DeviceOrientation.portraitUp, DeviceOrientation.landscapeLeft]);
FlutterNativeSplash.preserve(widgetsBinding: widgetsBinding);
AppEnviroment.setupEnv(Enviroment.prod);
SuperTokens.init(
@@ -18,5 +16,8 @@ void main() async {
);
setUrlStrategy(PathUrlStrategy());
FlutterNativeSplash.remove();
runApp(const MzanziInnovationHub());
SystemChrome.setPreferredOrientations(
[DeviceOrientation.portraitUp, DeviceOrientation.landscapeLeft])
.then((value) => runApp(const MzanziInnovationHub()));
//runApp(const MzanziInnovationHub());
}