Clean up warnings
This commit is contained in:
parent
ade297b354
commit
8232aed318
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue