mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 13:36:50 +00:00
Dialog fixes (#242)
* Fix dialog for purchase order line item * Fix other dialogs too * Update release noes
This commit is contained in:
parent
1ab3940e6a
commit
83da0638a8
@ -7,6 +7,7 @@
|
|||||||
- Support custom icons for part category
|
- Support custom icons for part category
|
||||||
- Support custom icons for stock location
|
- Support custom icons for stock location
|
||||||
- Adjustments to notification messages
|
- Adjustments to notification messages
|
||||||
|
- Assorted bug fixes
|
||||||
- Updated translations
|
- Updated translations
|
||||||
|
|
||||||
### 0.9.1 - December 2022
|
### 0.9.1 - December 2022
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
import "package:flutter/material.dart";
|
import "package:flutter/material.dart";
|
||||||
import "package:font_awesome_flutter/font_awesome_flutter.dart";
|
import "package:font_awesome_flutter/font_awesome_flutter.dart";
|
||||||
|
import "package:one_context/one_context.dart";
|
||||||
|
|
||||||
import "package:inventree/app_colors.dart";
|
import "package:inventree/app_colors.dart";
|
||||||
import "package:inventree/widget/dialogs.dart";
|
import "package:inventree/widget/dialogs.dart";
|
||||||
@ -143,8 +144,7 @@ class _InvenTreeLoginSettingsState extends State<InvenTreeLoginSettingsWidget> {
|
|||||||
_selectProfile(context, profile);
|
_selectProfile(context, profile);
|
||||||
},
|
},
|
||||||
onLongPress: () {
|
onLongPress: () {
|
||||||
showDialog(
|
OneContext().showDialog(
|
||||||
context: context,
|
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return SimpleDialog(
|
return SimpleDialog(
|
||||||
title: Text(profile.name),
|
title: Text(profile.name),
|
||||||
|
@ -3,6 +3,9 @@ import "dart:io";
|
|||||||
|
|
||||||
import "package:flutter/material.dart";
|
import "package:flutter/material.dart";
|
||||||
import "package:font_awesome_flutter/font_awesome_flutter.dart";
|
import "package:font_awesome_flutter/font_awesome_flutter.dart";
|
||||||
|
import "package:one_context/one_context.dart";
|
||||||
|
import "package:url_launcher/url_launcher.dart";
|
||||||
|
|
||||||
import "package:inventree/app_colors.dart";
|
import "package:inventree/app_colors.dart";
|
||||||
import "package:inventree/inventree/model.dart";
|
import "package:inventree/inventree/model.dart";
|
||||||
import "package:inventree/widget/fields.dart";
|
import "package:inventree/widget/fields.dart";
|
||||||
@ -10,7 +13,6 @@ import "package:inventree/widget/progress.dart";
|
|||||||
import "package:inventree/widget/snacks.dart";
|
import "package:inventree/widget/snacks.dart";
|
||||||
import "package:inventree/widget/refreshable_state.dart";
|
import "package:inventree/widget/refreshable_state.dart";
|
||||||
import "package:inventree/l10.dart";
|
import "package:inventree/l10.dart";
|
||||||
import "package:url_launcher/url_launcher.dart";
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A generic widget for displaying a list of attachments.
|
* A generic widget for displaying a list of attachments.
|
||||||
@ -99,8 +101,7 @@ class _AttachmentWidgetState extends RefreshableState<AttachmentWidget> {
|
|||||||
* Display an option context menu for the selected attachment
|
* Display an option context menu for the selected attachment
|
||||||
*/
|
*/
|
||||||
Future<void> showOptionsMenu(BuildContext context, InvenTreeAttachment attachment) async {
|
Future<void> showOptionsMenu(BuildContext context, InvenTreeAttachment attachment) async {
|
||||||
showDialog(
|
OneContext().showDialog(
|
||||||
context: context,
|
|
||||||
builder: (BuildContext ctx) {
|
builder: (BuildContext ctx) {
|
||||||
return SimpleDialog(
|
return SimpleDialog(
|
||||||
title: Text(L10().attachments),
|
title: Text(L10().attachments),
|
||||||
|
@ -258,6 +258,9 @@ class _PurchaseOrderDetailState extends RefreshableState<PurchaseOrderDetailWidg
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Display a context menu for a particular PurhaseOrderLineItem
|
||||||
|
*/
|
||||||
void lineItemMenu(BuildContext context, InvenTreePOLineItem lineItem) {
|
void lineItemMenu(BuildContext context, InvenTreePOLineItem lineItem) {
|
||||||
|
|
||||||
List<Widget> children = [];
|
List<Widget> children = [];
|
||||||
@ -303,8 +306,7 @@ class _PurchaseOrderDetailState extends RefreshableState<PurchaseOrderDetailWidg
|
|||||||
|
|
||||||
children.insert(0, Divider());
|
children.insert(0, Divider());
|
||||||
|
|
||||||
showDialog(
|
OneContext().showDialog(
|
||||||
context: context,
|
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return SimpleDialog(
|
return SimpleDialog(
|
||||||
title: Text(L10().lineItem),
|
title: Text(L10().lineItem),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user