|
@@ -21,7 +21,7 @@ class SettingCenterPage extends GetView<SettingCenterController> {
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
|
return VSideNavView(
|
|
|
- navId: NavIds.SETTINGS,
|
|
|
+ // navId: NavIds.SETTINGS,
|
|
|
items: _buildItems(),
|
|
|
);
|
|
|
}
|
|
@@ -41,7 +41,7 @@ class SettingCenterPage extends GetView<SettingCenterController> {
|
|
|
title: "数据同步",
|
|
|
icon: Icon(Icons.sync, color: Colors.grey.shade700),
|
|
|
onTap: () {
|
|
|
- Get.toNamed("/data_sync");
|
|
|
+ //Get.toNamed("/data_sync");
|
|
|
},
|
|
|
);
|
|
|
}
|
|
@@ -50,15 +50,18 @@ class SettingCenterPage extends GetView<SettingCenterController> {
|
|
|
return VSideNavMenuItem(
|
|
|
title: "设备管理",
|
|
|
icon: Icon(Icons.gamepad_outlined, color: Colors.grey.shade700),
|
|
|
- route: VRouteSetting(
|
|
|
- "/devices",
|
|
|
- () => const DevicesSettingPage(),
|
|
|
- binding: BindingsBuilder(
|
|
|
- () {
|
|
|
- Get.lazyPut(() => DevicesSettingController());
|
|
|
- },
|
|
|
- ),
|
|
|
+ pageBuilder: (_) => _buildInterval(
|
|
|
+ const DevicesSettingPage(),
|
|
|
),
|
|
|
+ // route: VRouteSetting(
|
|
|
+ // "/devices",
|
|
|
+ // () => const DevicesSettingPage(),
|
|
|
+ // binding: BindingsBuilder(
|
|
|
+ // () {
|
|
|
+ // Get.lazyPut(() => DevicesSettingController());
|
|
|
+ // },
|
|
|
+ // ),
|
|
|
+ // ),
|
|
|
);
|
|
|
}
|
|
|
|
|
@@ -66,15 +69,18 @@ class SettingCenterPage extends GetView<SettingCenterController> {
|
|
|
return VSideNavMenuItem(
|
|
|
title: "服务设置",
|
|
|
icon: Icon(Icons.electrical_services, color: Colors.grey.shade700),
|
|
|
- route: VRouteSetting(
|
|
|
- "/server",
|
|
|
- () => const ServerSettingPage(),
|
|
|
- binding: BindingsBuilder(
|
|
|
- () {
|
|
|
- Get.lazyPut(() => ServerSettingController());
|
|
|
- },
|
|
|
- ),
|
|
|
+ pageBuilder: (_) => _buildInterval(
|
|
|
+ const ServerSettingPage(),
|
|
|
),
|
|
|
+ // route: VRouteSetting(
|
|
|
+ // "/server",
|
|
|
+ // () => const ServerSettingPage(),
|
|
|
+ // binding: BindingsBuilder(
|
|
|
+ // () {
|
|
|
+ // Get.lazyPut(() => ServerSettingController());
|
|
|
+ // },
|
|
|
+ // ),
|
|
|
+ // ),
|
|
|
);
|
|
|
}
|
|
|
|
|
@@ -173,6 +179,15 @@ class SettingCenterPage extends GetView<SettingCenterController> {
|
|
|
},
|
|
|
);
|
|
|
}
|
|
|
+
|
|
|
+ Widget _buildInterval(Widget child) {
|
|
|
+ return Padding(
|
|
|
+ padding: const EdgeInsets.symmetric(
|
|
|
+ horizontal: 16,
|
|
|
+ ),
|
|
|
+ child: child,
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
class ProgressBar extends StatelessWidget {
|