mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Add framework for edit StockItem dialog
This commit is contained in:
parent
6799e9c85b
commit
36a7bd1214
1 changed files with 27 additions and 1 deletions
|
|
@ -34,6 +34,7 @@ class _StockItemDisplayState extends State<StockDetailWidget> {
|
|||
final _removeStockKey = GlobalKey<FormState>();
|
||||
final _countStockKey = GlobalKey<FormState>();
|
||||
final _moveStockKey = GlobalKey<FormState>();
|
||||
final _editStockKey = GlobalKey<FormState>();
|
||||
|
||||
_StockItemDisplayState(this.item) {
|
||||
// TODO
|
||||
|
|
@ -45,7 +46,32 @@ class _StockItemDisplayState extends State<StockDetailWidget> {
|
|||
// TODO - Form for editing stock item
|
||||
}
|
||||
|
||||
void _addStock(double quantity) async {
|
||||
void _editStockItemDialog() {
|
||||
|
||||
return;
|
||||
// TODO - Finish implementing this
|
||||
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return AlertDialog(
|
||||
title: Text("Edit Stock Item"),
|
||||
actions: <Widget>[
|
||||
FlatButton(
|
||||
child: Text("Save"),
|
||||
onPressed: () {
|
||||
if (_editStockKey.currentState.validate()) {
|
||||
// TODO
|
||||
}
|
||||
},
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
void _addStock() async {
|
||||
|
||||
Navigator.of(context).pop();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue