mirror of
https://github.com/Auties00/Reboot-Launcher.git
synced 2026-01-13 19:22:22 +01:00
Initial commit
This commit is contained in:
22
lib/src/widget/local_server_switch.dart
Normal file
22
lib/src/widget/local_server_switch.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
import 'package:fluent_ui/fluent_ui.dart';
|
||||
import 'package:reboot_launcher/src/widget/smart_switch.dart';
|
||||
|
||||
import '../util/generic_controller.dart';
|
||||
|
||||
class LocalServerSwitch extends StatelessWidget {
|
||||
final GenericController<bool> controller;
|
||||
final Function(bool)? onSelected;
|
||||
|
||||
const LocalServerSwitch({Key? key, required this.controller, this.onSelected})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return SmartSwitch(
|
||||
keyName: "local",
|
||||
label: "Embedded",
|
||||
controller: controller,
|
||||
onSelected: onSelected
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user