mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-27 19:54:54 +00:00
update devices edited
This commit is contained in:
@ -28,7 +28,6 @@ class DeviceAppbar extends StatelessWidget implements PreferredSizeWidget {
|
||||
showPopupMenu(context: context, items: [
|
||||
PopupMenuItem(
|
||||
onTap: () async {
|
||||
|
||||
HomeCubit.getInstance().updateDevice(deviceUuid);
|
||||
},
|
||||
value: 'Update',
|
||||
|
||||
@ -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);
|
||||
// },
|
||||
// ),
|
||||
|
||||
|
||||
|
||||
|
||||
@ -23,7 +23,6 @@ class DevicesAPI {
|
||||
return json;
|
||||
},
|
||||
);
|
||||
print('response==$response');
|
||||
return response;
|
||||
} catch (e) {
|
||||
rethrow;
|
||||
|
||||
Reference in New Issue
Block a user