This commit is contained in:
Faris Armoush
2025-04-15 14:52:20 +03:00
parent db1f29e2b2
commit 748c67fd8b

View File

@ -88,12 +88,7 @@ class TagChipDisplay extends StatelessWidget {
),
),
),
EditChip(onTap: () async {
// Use the Navigator's context for showDialog
Navigator.of(context).pop();
await showDialog<bool>(
barrierDismissible: false,
EditChip(onTap: () => showDialog<bool>(
context: context,
builder: (context) => AssignTagModelsDialog(
products: products,
@ -110,18 +105,14 @@ class TagChipDisplay extends StatelessWidget {
spaceModel?.tags ?? [], subspaces),
spaceName: spaceModel?.modelName ?? '',
projectTags: projectTags,
));
})
)))
],
),
),
)
: TextButton(
onPressed: () async {
Navigator.of(context).pop();
await showDialog<bool>(
barrierDismissible: false,
onPressed: () {
showDialog<void>(
context: context,
builder: (context) => AddDeviceTypeModelWidget(
products: products,