Loading lib/main.dart +2 −7 Original line number Diff line number Diff line Loading @@ -222,9 +222,7 @@ class ContainerInfo extends StatelessWidget { Navigator.of(context).pop(); try { await deleteContainer(this.container.number); showMessage("Success!"); containers = getContainers(); locations = getLocations(); showMessage("Successfully deleted!"); log = getLog(); } catch(e) { showMessage(e.toString()); Loading Loading @@ -272,9 +270,7 @@ class LocationInfo extends StatelessWidget { Navigator.of(context).pop(); try { await deleteLocation(this.location.name); showMessage("Success!"); containers = getContainers(); locations = getLocations(); showMessage("Successfully deleted!"); log = getLog(); } catch(e) { showMessage(e.toString()); Loading Loading @@ -440,7 +436,6 @@ class _ContainerFormState extends State<ContainerForm> { try { await widget.f(Allocation(int.parse(controllerContainer.text), controllerLocation.text, int.parse(controllerAmount.text))); showMessage("Success!"); containers = getContainers(); log = getLog(); } catch(e) { showMessage(e.toString()); Loading Loading
lib/main.dart +2 −7 Original line number Diff line number Diff line Loading @@ -222,9 +222,7 @@ class ContainerInfo extends StatelessWidget { Navigator.of(context).pop(); try { await deleteContainer(this.container.number); showMessage("Success!"); containers = getContainers(); locations = getLocations(); showMessage("Successfully deleted!"); log = getLog(); } catch(e) { showMessage(e.toString()); Loading Loading @@ -272,9 +270,7 @@ class LocationInfo extends StatelessWidget { Navigator.of(context).pop(); try { await deleteLocation(this.location.name); showMessage("Success!"); containers = getContainers(); locations = getLocations(); showMessage("Successfully deleted!"); log = getLog(); } catch(e) { showMessage(e.toString()); Loading Loading @@ -440,7 +436,6 @@ class _ContainerFormState extends State<ContainerForm> { try { await widget.f(Allocation(int.parse(controllerContainer.text), controllerLocation.text, int.parse(controllerAmount.text))); showMessage("Success!"); containers = getContainers(); log = getLog(); } catch(e) { showMessage(e.toString()); Loading