Clean up warnings

This commit is contained in:
unknown 2018-05-22 07:36:35 -07:00
parent ade297b354
commit 8232aed318
3 changed files with 6 additions and 2 deletions

View File

@ -21,12 +21,15 @@ class FileStorage {
final contents = await file.readAsString(); final contents = await file.readAsString();
print('LOADING PRODUCTS FROM FILE...'); print('LOADING PRODUCTS FROM FILE...');
/* /*
return serializers return serializers
.deserializeWith(AppState.serializer, json.decode(contents)) .deserializeWith(AppState.serializer, json.decode(contents))
.products .products
.toList(); .toList();
*/ */
return null;
} }
Future<File> saveData(List<dynamic> products) async { Future<File> saveData(List<dynamic> products) async {
@ -42,6 +45,8 @@ class FileStorage {
), ),
); );
*/ */
return null;
} }
Future<File> _getLocalFile() async { Future<File> _getLocalFile() async {

View File

@ -17,7 +17,6 @@ class AppState {
dashboard = dashboard ?? new DashboardEntity(), dashboard = dashboard ?? new DashboardEntity(),
auth = auth ?? new AuthState(); auth = auth ?? new AuthState();
factory AppState.loading() => AppState(isLoading: true); factory AppState.loading() => AppState(isLoading: true);
/* /*

View File

@ -11,7 +11,7 @@ class UserLoginRequest {
final String token; final String token;
//UserLoginRequest(this.email, this.password, this.url, this.secret); //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 { class UserLoginSuccess {