mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 17:47:28 +00:00
update devices
This commit is contained in:
11
lib/features/devices/view/widgets/popup_menu_widget.dart
Normal file
11
lib/features/devices/view/widgets/popup_menu_widget.dart
Normal file
@ -0,0 +1,11 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
void showPopupMenu(
|
||||
{required BuildContext context, List<PopupMenuEntry<String>>? items}) async {
|
||||
await showMenu(
|
||||
context: context,
|
||||
position: RelativeRect.fromLTRB( MediaQuery.of(context).size.width/2 , 100, 0, 0),
|
||||
items: items!,
|
||||
elevation: 8.0,
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user