mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-29 08:19:05 +08:00
eed87808e5
Signed-off-by: Kingtous <kingtous@qq.com>
18 lines
637 B
Dart
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()));
|
|
}
|