CreateTemporaryPassword

This commit is contained in:
mohammad
2024-06-29 00:32:19 +03:00
parent 1f93614900
commit 8d6d5da5cd
2 changed files with 84 additions and 67 deletions
@@ -24,10 +24,11 @@ class SmartDoorBloc extends Bloc<SmartDoorEvent, SmartDoorState> {
List<String>? selectedDay;
DateTime? startTime;
DateTime? endTime ; // This sets the date to December 31, 2050.
DateTime? endTime ;
changeTime(val,isStartEndTime){
emit(LoadingInitialState());
if(isStartEndTime==true){
startTime=val;
}else{
@@ -37,6 +38,7 @@ class SmartDoorBloc extends Bloc<SmartDoorEvent, SmartDoorState> {
}
bool repeatFunction() {
emit(LoadingInitialState());
repeat = !repeat;
emit(IsRepeatState());
return repeat;
@@ -195,10 +197,7 @@ class SmartDoorBloc extends Bloc<SmartDoorEvent, SmartDoorState> {
);
return;
}
}
//["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
List<DayInWeek> days = [
DayInWeek(
"Sun",