Fix save settings issue

This commit is contained in:
Yegor Vialov
2018-10-07 09:55:37 +03:00
parent b7fb821abe
commit 4085006446
3 changed files with 17 additions and 10 deletions

View File

@ -356,7 +356,7 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver {
);
}
_checkShowInfo(BuildContext context) {
_checkShowInfo() {
if (_errorCodeToBeShown > 0) {
String message = _lastErrorMessage;
SnackBarAction action;
@ -465,7 +465,7 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver {
@override
Widget build(BuildContext context) {
_checkShowInfo(context);
_checkShowInfo();
// This method is rerun every time setState is called.
if (_entities == null) {
return _buildScaffold(true);