OpenMediacenterMobileFlutter/lib/main.dart

24 lines
569 B
Dart
Raw Normal View History

import "package:dart_vlc/dart_vlc.dart";
2021-12-10 10:40:20 +00:00
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 'platform.dart';
2021-12-10 10:40:20 +00:00
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())));
2021-12-10 10:40:20 +00:00
}