build successful version
This commit is contained in:
@@ -543,8 +543,7 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
|
||||
errorBorder:
|
||||
OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color:
|
||||
Colors.red,
|
||||
color: Colors.red,
|
||||
width: 1.rpx,
|
||||
),
|
||||
borderRadius:
|
||||
@@ -554,8 +553,7 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
|
||||
focusedErrorBorder:
|
||||
OutlineInputBorder(
|
||||
borderSide: BorderSide(
|
||||
color:
|
||||
Colors.red,
|
||||
color: Colors.red,
|
||||
width: 1.rpx,
|
||||
),
|
||||
borderRadius:
|
||||
@@ -563,8 +561,7 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
|
||||
8.rpx),
|
||||
),
|
||||
filled: false,
|
||||
fillColor:
|
||||
Colors.white,
|
||||
fillColor: Colors.white,
|
||||
),
|
||||
style: TextStyle(
|
||||
fontFamily: 'Inter',
|
||||
|
||||
@@ -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