diff --git a/lib/pages/visitor_password/view/visitor_password_dialog.dart b/lib/pages/visitor_password/view/visitor_password_dialog.dart index cb93cb40..ad11b30f 100644 --- a/lib/pages/visitor_password/view/visitor_password_dialog.dart +++ b/lib/pages/visitor_password/view/visitor_password_dialog.dart @@ -575,57 +575,6 @@ class VisitorPasswordDialog extends StatelessWidget { } } }, - - // onPressed: () { - // if (visitorBloc.forgetFormKey.currentState!.validate()) { - // if (visitorBloc.selectedDevices.isNotEmpty) { - // switch (visitorBloc.usageFrequencySelected) { - // case 'One-Time': - // if (visitorBloc.accessTypeSelected == 'Offline Password') { - // setPasswordFunction(context, size, visitorBloc); - // } else { - // visitorBloc.stateDialog( - // context: context, - // message: 'Invalid combination of Access Type and Usage Frequency.', - // title: 'Error', - // ); - // } - // break; - // default: - // if (visitorBloc.effectiveTimeTimeStamp != null && visitorBloc.expirationTimeTimeStamp != null) { - // if (isRepeat) { - // if (visitorBloc.expirationTime != 'End Time' && - // visitorBloc.effectiveTime != 'Start Time' && - // visitorBloc.selectedDays.isNotEmpty) { - // setPasswordFunction(context, size, visitorBloc); - // } else { - // visitorBloc.stateDialog( - // context: context, - // message: 'Please select days and fill start time and end time to continue', - // title: 'Access Period', - // ); - // } - // } else { - // setPasswordFunction(context, size, visitorBloc); - // } - // } else { - // visitorBloc.stateDialog( - // context: context, - // message: 'Please select Access Period to continue', - // title: 'Access Period', - // ); - // } - // break; - // } - // } else { - // visitorBloc.stateDialog( - // context: context, - // message: 'Please select devices to continue', - // title: 'Select Devices', - // ); - // } - // } - // }, borderRadius: 8, child: Text( 'Ok',