update devices edited

This commit is contained in:
mohammad
2024-06-26 12:15:34 +03:00
parent ea4dc852f8
commit 417806146a
3 changed files with 0 additions and 49 deletions

View File

@ -28,7 +28,6 @@ class DeviceAppbar extends StatelessWidget implements PreferredSizeWidget {
showPopupMenu(context: context, items: [
PopupMenuItem(
onTap: () async {
HomeCubit.getInstance().updateDevice(deviceUuid);
},
value: 'Update',

View File

@ -22,8 +22,6 @@ class DoorInterface extends StatelessWidget {
DoorInterface({super.key, required this.doorLock});
final DeviceModel doorLock;
final GlobalKey _menuKey = GlobalKey();
@override
Widget build(BuildContext context) {
return BlocProvider(
@ -126,50 +124,5 @@ class DoorInterface extends StatelessWidget {
}),
);
}
}
// PopupMenuButton<String>(
// icon: Container(
// width: 48,
// height: 48,
// padding: const EdgeInsets.all(6),
// alignment: AlignmentDirectional.center,
// decoration: BoxDecoration(
// shape: BoxShape.circle,
// color: bloc.settingIconClicked
// ? KeyperColors.settingIconBG
// : KeyperColors.whiteFont,
// ),
// child: Image.asset(
// ImageConstants.settingIcon,
// ),
// ),
// position: PopupMenuPosition.under,
// shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)),
// constraints: const BoxConstraints(),
// enableFeedback: false,
// onSelected: (String value) {
// if (value == 'logout') {
// if (mounted) {
// bloc.logoutDialog(context);
// }
// }
// if (value == 'delete account') {
// if (mounted) {
// bloc.deleteAccountDialog(context);
// }
// }
// },
// itemBuilder: (context) {
// bloc.settingIcon(true);
// return bloc.displayMenuOption(context, bloc);
// },
// onCanceled: () {
// bloc.settingIcon(false);
// },
// ),

View File

@ -23,7 +23,6 @@ class DevicesAPI {
return json;
},
);
print('response==$response');
return response;
} catch (e) {
rethrow;