2021-04-10 06:28:12 +02:00
|
|
|
import 'package:flutter/material.dart';
|
2022-01-17 11:59:40 +01:00
|
|
|
import 'package:flutter/services.dart';
|
2022-03-27 19:55:31 +02:00
|
|
|
import 'package:nc_photos/app_init.dart' as app_init;
|
2021-08-30 18:57:45 +02:00
|
|
|
import 'package:nc_photos/platform/k.dart' as platform_k;
|
2021-04-17 10:42:57 +02:00
|
|
|
import 'package:nc_photos/widget/my_app.dart';
|
2021-04-10 06:28:12 +02:00
|
|
|
|
|
|
|
void main() async {
|
|
|
|
WidgetsFlutterBinding.ensureInitialized();
|
2022-03-27 19:55:31 +02:00
|
|
|
await app_init.initAppLaunch();
|
2021-04-10 06:28:12 +02:00
|
|
|
|
2022-01-17 11:59:40 +01:00
|
|
|
if (platform_k.isMobile) {
|
|
|
|
// reset orientation override just in case, see #59
|
|
|
|
SystemChrome.setPreferredOrientations([]);
|
|
|
|
}
|
2021-09-15 08:58:06 +02:00
|
|
|
runApp(const MyApp());
|
2021-04-10 06:28:12 +02:00
|
|
|
}
|