Skip to content

Commit

Permalink
A _showErrorUI flag update added so that after receiving an error, an…
Browse files Browse the repository at this point in the history
…d then that error is fixed, the error screen will go away without having to restart the app. (flutter#161)
  • Loading branch information
JDHatten authored and maryx committed Mar 4, 2019
1 parent f6703db commit 56d9330
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions course/12_error/solution_12_error/lib/unit_converter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ class _UnitConverterState extends State<UnitConverter> {
});
} else {
setState(() {
_showErrorUI = false;
_convertedValue = _format(conversion);
});
}
Expand Down
1 change: 1 addition & 0 deletions unit_converter/unit_converter/lib/unit_converter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ class _UnitConverterState extends State<UnitConverter> {
});
} else {
setState(() {
_showErrorUI = false;
_convertedValue = _format(conversion);
});
}
Expand Down

0 comments on commit 56d9330

Please sign in to comment.