build successful version

This commit is contained in:
wsl
2025-07-01 11:49:39 +08:00
parent 8c27f0b26c
commit 413aacae22
268 changed files with 38601 additions and 332 deletions

View File

@@ -37,11 +37,13 @@ class _MhtSleepReportPageState extends State<MhtSleepReportPage> {
Widget build(BuildContext context) {
deviceController.getDeviceList(group: 'room').then((apiResponse) {
if (apiResponse.code != HttpStatusCodes.ok) {
TopSlideNotification.show(
Get.context!,
text: apiResponse.msg!,
textColor: themeController.currentColor.sc9,
);
if (context.mounted) {
TopSlideNotification.show(
context,
text: apiResponse.msg!,
textColor: themeController.currentColor.sc9,
);
}
} else {
//请求睡眠报告
// deviceController.getSleepReport();

View File

@@ -106,7 +106,7 @@ class _NewHomePageState extends State<NewHomePage> {
deviceController.getDeviceList(group: 'room').then((apiResponse) {
if (apiResponse.code != HttpStatusCodes.ok) {
TopSlideNotification.show(
Get.context!,
context,
text: apiResponse.msg!,
textColor: themeController.currentColor.sc9,
);
@@ -482,7 +482,6 @@ class _NewHomePageState extends State<NewHomePage> {
isMultiSelect: false,
),
),
),
InkWell(
onTap: () {