TF-2064 Update UI for quotas view

(cherry picked from commit 079c3a548e3532bcbeb43464ed8987093e83a7eb)
This commit is contained in:
dab246
2023-08-04 17:56:38 +07:00
committed by Dat Vu
parent 4a11a0779a
commit 9a2e838d03
9 changed files with 147 additions and 85 deletions
@@ -13,8 +13,13 @@ import 'package:tmail_ui_user/features/quotas/presentation/model/quotas_state.da
import 'package:tmail_ui_user/main/error/capability_validator.dart';
class QuotasController extends BaseController {
final MailboxDashBoardController mailboxDashBoardController = Get.find<MailboxDashBoardController>();
final mailboxDashBoardController = Get.find<MailboxDashBoardController>();
final responsiveUtils = Get.find<ResponsiveUtils>();
final imagePaths = Get.find<ImagePaths>();
final GetQuotasInteractor _getQuotasInteractor;
final usedCapacity = Rx<num>(0);
final limitCapacity = Rx<num>(0);
final warningLimitCapacity = Rx<num>(0);
@@ -31,9 +36,6 @@ class QuotasController extends BaseController {
(quotasState.value == QuotasState.runningOutOfStorage
|| quotasState.value == QuotasState.runOutOfStorage);
final ImagePaths imagePaths = Get.find<ImagePaths>();
final ResponsiveUtils responsiveUtils = Get.find<ResponsiveUtils>();
QuotasController(this._getQuotasInteractor);
void _getQuotasAction(AccountId accountId, Session session) {