更新界面布局

This commit is contained in:
wyf
2025-06-05 14:01:48 +08:00
parent 857317caf1
commit 682728eb1e
3 changed files with 22 additions and 142 deletions

View File

@@ -123,7 +123,9 @@ class _DynamicReportDetailWidgetState extends State<DynamicReportDetailWidget> {
"${ServiceConstant.sleep_report_url}?mac=$mac&token=${ServiceConstant.sleep_token}&date=$time";
Get.toNamed("/sleepReportPage", arguments: sleepReportUrl);
} else {
TopSlideNotification.show(context,text: "当前暂无数据".tr,textColor: themeController.currentColor.sc9);
TopSlideNotification.show(context,
text: "当前暂无数据".tr,
textColor: themeController.currentColor.sc9);
}
},
child: Row(
@@ -199,4 +201,11 @@ class _DynamicReportDetailWidgetState extends State<DynamicReportDetailWidget> {
),
);
}
void resetScroll() {
_hasScrolled = false;
if (_scrollController.hasClients) {
_scrollController.jumpTo(0);
}
}
}