TF-2064 Handle limit storage to show warning banner

(cherry picked from commit 3e36cebd5cbe880f9832c62463e71979e15e1741)
This commit is contained in:
dab246
2023-08-04 21:43:33 +07:00
committed by Dat Vu
parent 3aa2b91a89
commit a2875ea921
17 changed files with 78 additions and 293 deletions
@@ -1,18 +1,16 @@
import 'package:core/core.dart';
import 'package:jmap_dart_client/jmap/core/state.dart';
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:jmap_dart_client/jmap/quotas/quota.dart';
class GetQuotasLoading extends LoadingState {}
class GetQuotasSuccess extends UIState {
final List<Quota> quotas;
final State? state;
GetQuotasSuccess(this.quotas, this.state);
GetQuotasSuccess(this.quotas);
@override
List<Object?> get props => [
quotas,
state,
];
List<Object?> get props => [quotas];
}
class GetQuotasFailure extends FeatureFailure {