24 lines
575 B
Dart
24 lines
575 B
Dart
import "package:dart_vlc/dart_vlc.dart";
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/services.dart';
|
|
|
|
import 'app.dart';
|
|
import 'db/database.dart';
|
|
import 'log/log.dart';
|
|
import 'login/logincontext.dart';
|
|
import 'utils/platform.dart';
|
|
|
|
void main() async {
|
|
Log.i("App init!");
|
|
if (isDesktop()) {
|
|
DartVLC.initialize();
|
|
} else {
|
|
await loadDeviceInfo();
|
|
}
|
|
Db().init();
|
|
|
|
runApp(Shortcuts(shortcuts: <LogicalKeySet, Intent>{
|
|
LogicalKeySet(LogicalKeyboardKey.select): ActivateIntent(),
|
|
}, child: const LoginContainer(child: App())));
|
|
}
|