build successful version
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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: () {
|
||||
|
||||
@@ -49,12 +49,12 @@ class WebviewTestController extends GetControllerEx<WebviewTestModel> {
|
||||
Get.toNamed("$args[0]", arguments: selectDevice);
|
||||
return true;
|
||||
});
|
||||
bridge.sdk.selectDevice((args) {
|
||||
bridge.sdk.selectDevice((args) async {
|
||||
ef.log('selectDevice: $args');
|
||||
selectDevice = args[0];
|
||||
return true;
|
||||
});
|
||||
bridge.sdk.updateBlueToothStatus((args) {
|
||||
bridge.sdk.updateBlueToothStatus((args) async {
|
||||
ef.log('updateBlueToothStatus: $args');
|
||||
bluetooth = args[0];
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user