rustdesk/flutter/lib/cm_main.dart
Kingtous eed87808e5 opt: optimize cm ui & timer & auto close
Signed-off-by: Kingtous <kingtous@qq.com>
2022-08-18 00:34:04 +08:00

18 lines
637 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter_hbb/consts.dart';
import 'package:flutter_hbb/main.dart';
import 'package:get/get.dart';
import 'package:window_manager/window_manager.dart';
import 'desktop/pages/server_page.dart';
/// -t lib/cm_main.dart to test cm
void main(List<String> args) async {
WidgetsFlutterBinding.ensureInitialized();
await windowManager.ensureInitialized();
await windowManager.setSize(Size(400, 600));
await windowManager.setAlignment(Alignment.topRight);
await initEnv(kAppTypeConnectionManager);
runApp(GetMaterialApp(theme: getCurrentTheme(), home: DesktopServerPage()));
}