door lock changes

This commit is contained in:
mohammad
2024-08-04 16:48:44 +03:00
parent 9c838ed079
commit ab12cbe796
4 changed files with 0 additions and 9 deletions
@@ -103,9 +103,6 @@ class SmartDoorBloc extends Bloc<SmartDoorEvent, SmartDoorState> {
void _renamePassword(RenamePasswordEvent event, Emitter<SmartDoorState> emit) async {
try {
emit(LoadingInitialState());
print('==4444${passwordNameController.text}');
print('==1==${deviceId}');
print('==4444${passwordId}');
var response = await DevicesAPI.renamePass(
name:passwordNameController.text ,
doorLockUuid:deviceId ,
@@ -206,7 +206,6 @@ class OfflineOneTimePasswordPage extends StatelessWidget {
}
},
child: const BodyMedium(
text: 'Obtain Password',
fontWeight: FontWeight.bold,
fontColor: Colors.white,
@@ -6,7 +6,6 @@ import 'package:syncrow_app/features/devices/bloc/smart_door_bloc/smart_door_blo
import 'package:syncrow_app/features/devices/bloc/smart_door_bloc/smart_door_event.dart';
import 'package:syncrow_app/features/devices/bloc/smart_door_bloc/smart_door_state.dart';
import 'package:syncrow_app/features/devices/view/widgets/smart_door/repeat_widget.dart';
import 'package:syncrow_app/features/shared_widgets/default_button.dart';
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/door_lock_button.dart';
@@ -26,7 +25,6 @@ class CreateOfflineTimeLimitPasswordPage extends StatelessWidget {
return BlocProvider(
create: (BuildContext context) => SmartDoorBloc(deviceId: deviceId!),
child: BlocConsumer<SmartDoorBloc, SmartDoorState>(
listener: (context, state) {
if (state is FailedState) {
ScaffoldMessenger.of(context).showSnackBar(