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