2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-15 11:45:31 +00:00

Code cleanup

This commit is contained in:
Oliver
2021-07-15 11:27:19 +10:00
parent 2a5bb4631b
commit d2ce3fadf1
19 changed files with 36 additions and 81 deletions

View File

@ -42,7 +42,7 @@ class _CompanyDetailState extends RefreshableState<CompanyDetailWidget> {
void _saveCompany(Map<String, String> values) async {
Navigator.of(context).pop();
var response = await company.update(values: values);
await company.update(values: values);
refresh();
}
@ -57,13 +57,13 @@ class _CompanyDetailState extends RefreshableState<CompanyDetailWidget> {
showFormDialog(L10().edit,
key: _editCompanyKey,
actions: <Widget>[
FlatButton(
TextButton(
child: Text(L10().cancel),
onPressed: () {
Navigator.pop(context);
},
),
FlatButton(
TextButton(
child: Text(L10().save),
onPressed: () {
if (_editCompanyKey.currentState!.validate()) {