mv lib/cm_main.dart to test/cm_test.dart
This commit is contained in:
parent
a28fd5d772
commit
e9d94fdb24
@ -1,18 +1,17 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter_hbb/common.dart';
|
||||||
import 'package:flutter_hbb/consts.dart';
|
import 'package:flutter_hbb/consts.dart';
|
||||||
|
import 'package:flutter_hbb/desktop/pages/server_page.dart';
|
||||||
import 'package:flutter_hbb/main.dart';
|
import 'package:flutter_hbb/main.dart';
|
||||||
|
import 'package:flutter_hbb/models/server_model.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:window_manager/window_manager.dart';
|
import 'package:window_manager/window_manager.dart';
|
||||||
|
|
||||||
import 'common.dart';
|
|
||||||
import 'desktop/pages/server_page.dart';
|
|
||||||
import 'models/server_model.dart';
|
|
||||||
|
|
||||||
/// -t lib/cm_main.dart to test cm
|
/// -t lib/cm_main.dart to test cm
|
||||||
void main(List<String> args) async {
|
void main(List<String> args) async {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
await windowManager.ensureInitialized();
|
await windowManager.ensureInitialized();
|
||||||
await windowManager.setSize(Size(400, 600));
|
await windowManager.setSize(const Size(400, 600));
|
||||||
await windowManager.setAlignment(Alignment.topRight);
|
await windowManager.setAlignment(Alignment.topRight);
|
||||||
await initEnv(kAppTypeMain);
|
await initEnv(kAppTypeMain);
|
||||||
gFFI.serverModel.clients
|
gFFI.serverModel.clients
|
||||||
@ -23,6 +22,6 @@ void main(List<String> args) async {
|
|||||||
.add(Client(2, false, false, "UserC", "331123123", true, false, false));
|
.add(Client(2, false, false, "UserC", "331123123", true, false, false));
|
||||||
gFFI.serverModel.clients
|
gFFI.serverModel.clients
|
||||||
.add(Client(3, false, false, "UserD", "441123123", true, false, false));
|
.add(Client(3, false, false, "UserD", "441123123", true, false, false));
|
||||||
runApp(GetMaterialApp(
|
runApp(const GetMaterialApp(
|
||||||
debugShowCheckedModeBanner: false, home: DesktopServerPage()));
|
debugShowCheckedModeBanner: false, home: DesktopServerPage()));
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user