更新分享设备权限

This commit is contained in:
wyf
2025-12-08 11:06:54 +08:00
parent db51c42664
commit 8285599aa9
14 changed files with 935 additions and 108 deletions

View File

@@ -203,9 +203,12 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
}
// 标签切换回调
void _onTabChanged(int index) {
Future<void> _onTabChanged(int index) async {
_pageController.animateToPage(index,
duration: const Duration(milliseconds: 300), curve: Curves.easeInOut);
BodyDeviceController deviceController = Get.find();
await deviceController.getDeviceList();
await deviceController.getSleepReport();
}
// 页面切换回调