water heater and timer and schedule ui and api ,

Circulate ui and Inching ui
This commit is contained in:
mohammad
2024-09-21 08:53:43 +03:00
parent 42e76f1c6e
commit c3273c729d
5 changed files with 26 additions and 4 deletions
@@ -62,6 +62,8 @@ class DeviceModel {
tempIcon = Assets.oneGang;
} else if (type == DeviceType.TwoGang) {
tempIcon = Assets.twoGang;
}else if (type == DeviceType.WH) {
tempIcon = Assets.waterHeaterIcon;
} else {
tempIcon = Assets.assetsIconsLogo;
}
@@ -10,9 +10,9 @@ import 'package:syncrow_app/features/devices/view/widgets/water_heater/wh_timer_
import 'package:syncrow_app/features/shared_widgets/default_container.dart';
import 'package:syncrow_app/features/shared_widgets/default_scaffold.dart';
import 'package:syncrow_app/features/shared_widgets/text_widgets/body_small.dart';
import 'package:syncrow_app/generated/assets.dart';
import 'package:syncrow_app/utils/context_extension.dart';
import 'package:syncrow_app/utils/resource_manager/color_manager.dart';
import '../../../../../generated/assets.dart';
class WaterHeaterPage extends StatelessWidget {
final DeviceModel? device;
+1
View File
@@ -1048,6 +1048,7 @@ class Assets {
static const String scheduleCirculateIcon = "assets/icons/schedule_circulate_icon.svg";
static const String scheduleInchingIcon = "assets/icons/schedule_Inching_icon.svg";
static const String scheduleTimeIcon = "assets/icons/schedule_time_icon.svg";
static const String waterHeaterIcon = "assets/icons/water_heater_icon.svg";
-3
View File
@@ -37,7 +37,6 @@ class DevicesAPI {
body: controlModel.toJson(),
showServerMessage: false,
expectedResponseModel: (json) {
print('controlDevice=$json' );
return json;
},
@@ -76,8 +75,6 @@ class DevicesAPI {
path: ApiEndpoints.deviceFunctionsStatus.replaceAll('{deviceUuid}', deviceId),
showServerMessage: false,
expectedResponseModel: (json) {
print('json===$json');
return json;
},
);