mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +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
2 changed files with 7 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
||||||
|
### 0.17.3 - December 2025
|
||||||
|
---
|
||||||
|
|
||||||
|
- Fixes bug which prevent dialog boxes from being dismissed correctly
|
||||||
|
|
||||||
### 0.17.2 - December 2024
|
### 0.17.2 - December 2024
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ Future<void> choiceDialog(String title, List<Widget> items, {Function? onSelecte
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
child: items[idx],
|
child: items[idx],
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Navigator.pop(OneContext().context!);
|
OneContext().popDialog();
|
||||||
if (onSelected != null) {
|
if (onSelected != null) {
|
||||||
onSelected(idx);
|
onSelected(idx);
|
||||||
}
|
}
|
||||||
|
|
@ -48,7 +48,7 @@ Future<void> choiceDialog(String title, List<Widget> items, {Function? onSelecte
|
||||||
TextButton(
|
TextButton(
|
||||||
child: Text(L10().cancel),
|
child: Text(L10().cancel),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pop(OneContext().context!);
|
Navigator.pop(context);
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue