2022-08-25 22:48:44 +02:00
|
|
|
import "package:dart_vlc/dart_vlc.dart";
|
2021-12-10 11:40:20 +01:00
|
|
|
import 'package:flutter/material.dart';
|
2022-04-15 09:16:41 +02:00
|
|
|
import 'package:flutter/services.dart';
|
2021-12-11 00:01:44 +01:00
|
|
|
|
2022-08-29 17:16:51 +02:00
|
|
|
import 'app.dart';
|
2022-08-28 22:51:12 +02:00
|
|
|
import 'db/database.dart';
|
2021-12-11 13:33:46 +01:00
|
|
|
import 'log/log.dart';
|
2021-12-11 00:01:44 +01:00
|
|
|
import 'login/logincontext.dart';
|
2022-04-15 09:16:41 +02:00
|
|
|
import 'platform.dart';
|
2021-12-10 11:40:20 +01:00
|
|
|
|
2022-04-15 09:16:41 +02:00
|
|
|
void main() async {
|
2021-12-11 13:33:46 +01:00
|
|
|
Log.i("App init!");
|
2022-04-15 09:16:41 +02:00
|
|
|
if (isDesktop()) {
|
2022-08-29 17:16:51 +02:00
|
|
|
DartVLC.initialize();
|
2022-04-15 09:16:41 +02:00
|
|
|
} else {
|
|
|
|
await loadDeviceInfo();
|
|
|
|
}
|
2022-08-28 22:51:12 +02:00
|
|
|
Db().init();
|
|
|
|
|
2022-04-15 09:16:41 +02:00
|
|
|
runApp(Shortcuts(shortcuts: <LogicalKeySet, Intent>{
|
|
|
|
LogicalKeySet(LogicalKeyboardKey.select): ActivateIntent(),
|
|
|
|
}, child: const LoginContainer(child: App())));
|
2021-12-10 11:40:20 +01:00
|
|
|
}
|