diff --git a/lib/data/file_storage.dart b/lib/data/file_storage.dart index 89d0f8395..777342714 100644 --- a/lib/data/file_storage.dart +++ b/lib/data/file_storage.dart @@ -21,12 +21,15 @@ class FileStorage { final contents = await file.readAsString(); print('LOADING PRODUCTS FROM FILE...'); + /* return serializers .deserializeWith(AppState.serializer, json.decode(contents)) .products .toList(); */ + + return null; } Future saveData(List products) async { @@ -42,6 +45,8 @@ class FileStorage { ), ); */ + + return null; } Future _getLocalFile() async { diff --git a/lib/redux/app/app_state.dart b/lib/redux/app/app_state.dart index 7a68c85f3..6259b0c78 100644 --- a/lib/redux/app/app_state.dart +++ b/lib/redux/app/app_state.dart @@ -17,7 +17,6 @@ class AppState { dashboard = dashboard ?? new DashboardEntity(), auth = auth ?? new AuthState(); - factory AppState.loading() => AppState(isLoading: true); /* diff --git a/lib/redux/auth/auth_actions.dart b/lib/redux/auth/auth_actions.dart index 270e9657c..47bbcdc66 100644 --- a/lib/redux/auth/auth_actions.dart +++ b/lib/redux/auth/auth_actions.dart @@ -11,7 +11,7 @@ class UserLoginRequest { final String token; //UserLoginRequest(this.email, this.password, this.url, this.secret); - UserLoginRequest(this.url, this.token); + UserLoginRequest(this.url, this.token, [this.email, this.password, this.secret]); } class UserLoginSuccess {