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:
parent
543d041ca5
commit
8733deb46a
@ -1,3 +1,8 @@
|
||||
### 0.17.3 - December 2025
|
||||
---
|
||||
|
||||
- Fixes bug which prevent dialog boxes from being dismissed correctly
|
||||
|
||||
### 0.17.2 - December 2024
|
||||
---
|
||||
|
||||
|
@ -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);
|
||||
},
|
||||
)
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user