lukas-heiligenbrunner
bf070ff99a
update dependencies try to infer the prefix of the server url display display size dependent amount on shuffle page
37 lines
1.3 KiB
Dart
37 lines
1.3 KiB
Dart
import "package:dart_vlc/dart_vlc.dart";
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/services.dart';
|
|
import 'package:openmediacentermobile/app.dart';
|
|
|
|
import 'log/log.dart';
|
|
import 'login/logincontext.dart';
|
|
import 'platform.dart';
|
|
|
|
void main() async {
|
|
Log.i("App init!");
|
|
DartVLC.initialize();
|
|
if (isDesktop()) {
|
|
|
|
} else {
|
|
await loadDeviceInfo();
|
|
}
|
|
|
|
// RawKeyboard.instance.addListener((event) {
|
|
// if (LogicalKeyboardKey.arrowLeft == event.logicalKey) {
|
|
// FocusManager.instance.primaryFocus?.focusInDirection(TraversalDirection.left);
|
|
// } else if (LogicalKeyboardKey.arrowRight == event.logicalKey) {
|
|
// FocusManager.instance.primaryFocus?.focusInDirection(TraversalDirection.right);
|
|
// } else if (LogicalKeyboardKey.arrowDown == event.logicalKey) {
|
|
// FocusManager.instance.primaryFocus?.focusInDirection(TraversalDirection.down);
|
|
// } else if (LogicalKeyboardKey.arrowUp == event.logicalKey) {
|
|
// FocusManager.instance.primaryFocus?.focusInDirection(TraversalDirection.up);
|
|
// }
|
|
// });
|
|
|
|
runApp(Shortcuts(shortcuts: <LogicalKeySet, Intent>{
|
|
LogicalKeySet(LogicalKeyboardKey.select): ActivateIntent(),
|
|
}, child: const LoginContainer(child: App())));
|
|
|
|
// runApp(const LoginContainer(child: App()));
|
|
}
|