2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-27 21:16:48 +00:00

Dialog fixes (#597)

* Dialog fixes

- Fix bug which did not properly dismiss dialogs
- Closes https://github.com/inventree/inventree-app/issues/595

* Bump release notes
This commit is contained in:
Oliver 2025-01-11 16:40:07 +11:00 committed by GitHub
parent 543d041ca5
commit 8733deb46a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
### 0.17.3 - December 2025
---
- Fixes bug which prevent dialog boxes from being dismissed correctly
### 0.17.2 - December 2024
---

View File

@ -22,7 +22,7 @@ Future<void> choiceDialog(String title, List<Widget> items, {Function? onSelecte
GestureDetector(
child: items[idx],
onTap: () {
Navigator.pop(OneContext().context!);
OneContext().popDialog();
if (onSelected != null) {
onSelected(idx);
}
@ -48,7 +48,7 @@ Future<void> choiceDialog(String title, List<Widget> items, {Function? onSelecte
TextButton(
child: Text(L10().cancel),
onPressed: () {
Navigator.pop(OneContext().context!);
Navigator.pop(context);
},
)
],