mirror of
https://github.com/SyncrowIOT/web.git
synced 2026-10-23 08:37:57 +00:00
Bug fixes
This commit is contained in:
@@ -76,7 +76,8 @@ class VisitorPasswordBloc extends Bloc<VisitorPasswordEvent, VisitorPasswordStat
|
||||
|
||||
Future<void> selectTimeVisitorPassword(
|
||||
SelectTimeVisitorPassword event,
|
||||
Emitter<VisitorPasswordState> emit,) async {
|
||||
Emitter<VisitorPasswordState> emit,
|
||||
) async {
|
||||
final DateTime? picked = await showDatePicker(
|
||||
context: event.context,
|
||||
initialDate: DateTime.now(),
|
||||
@@ -359,7 +360,6 @@ class VisitorPasswordBloc extends Bloc<VisitorPasswordEvent, VisitorPasswordStat
|
||||
context: event.context,
|
||||
initialTime: TimeOfDay.now(),
|
||||
);
|
||||
print('timePicked=$timePicked');
|
||||
|
||||
if (timePicked != null) {
|
||||
final selectedDateTime = DateTime(
|
||||
|
||||
@@ -72,7 +72,7 @@ class DeviceModel {
|
||||
} else if (type == DeviceType.WH) {
|
||||
tempIcon = Assets.waterHeater;
|
||||
} else if (type == DeviceType.DoorSensor) {
|
||||
tempIcon = Assets.sensors;
|
||||
tempIcon = Assets.openCloseDoor;
|
||||
} else if (type == DeviceType.GarageDoor) {
|
||||
tempIcon = Assets.openedDoor;
|
||||
} else if (type == DeviceType.WaterLeak) {
|
||||
|
||||
Reference in New Issue
Block a user