Switched to embedded lawin server if node is not available

Requested by microsoft
This commit is contained in:
Alessandro Autiero
2022-09-15 18:30:27 +02:00
parent c9f99d98d2
commit 273214ceef
11 changed files with 67 additions and 142 deletions

View File

@@ -1,31 +1,24 @@
import 'package:fluent_ui/fluent_ui.dart';
import 'package:get/get.dart';
import 'package:reboot_launcher/src/controller/server_controller.dart';
import 'package:reboot_launcher/src/controller/warning_controller.dart';
import 'package:reboot_launcher/src/widget/local_server_switch.dart';
import 'package:reboot_launcher/src/widget/port_input.dart';
import 'package:reboot_launcher/src/widget/host_input.dart';
import 'package:reboot_launcher/src/widget/server_button.dart';
import 'package:reboot_launcher/src/widget/restart_warning.dart';
class ServerPage extends StatelessWidget {
final WarningController _warningController = Get.find<WarningController>();
ServerPage({Key? key}) : super(key: key);
const ServerPage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Obx(() => Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (_warningController.warning.value) const RestartWarning(),
HostInput(),
PortInput(),
LocalServerSwitch(),
ServerButton()
]));
return Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
HostInput(),
PortInput(),
LocalServerSwitch(),
ServerButton()
]);
}
}