TF-3758 Update style and padding for app version, quotas

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-05-30 04:13:16 +07:00
committed by Dat H. Pham
parent d97a743542
commit e6fe0ce5f1
7 changed files with 45 additions and 24 deletions
@@ -12,8 +12,15 @@ import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
class QuotasView extends GetWidget<QuotasController> {
final EdgeInsetsGeometry? padding;
final TextStyle? labelStyle;
final int? labelMaxLines;
const QuotasView({super.key, this.padding});
const QuotasView({
super.key,
this.padding,
this.labelStyle,
this.labelMaxLines,
});
@override
Widget build(BuildContext context) {
@@ -52,12 +59,12 @@ class QuotasView extends GetWidget<QuotasController> {
Flexible(
child: Text(
AppLocalizations.of(context).storageQuotas,
style: const TextStyle(
style: labelStyle ?? const TextStyle(
fontSize: QuotasViewStyles.labelTextSize,
fontWeight: QuotasViewStyles.labelFontWeight,
color: QuotasViewStyles.labelTextColor,
),
maxLines: 2,
maxLines: labelMaxLines ?? 2,
overflow: TextOverflow.ellipsis,
),
),
@@ -89,12 +96,12 @@ class QuotasView extends GetWidget<QuotasController> {
const SizedBox(height: QuotasViewStyles.space),
Text(
octetQuota.getQuotasStateTitle(context),
style: TextStyle(
style: labelStyle ?? TextStyle(
fontSize: QuotasViewStyles.progressStateTextSize,
fontWeight: QuotasViewStyles.progressStateFontWeight,
color: octetQuota.getQuotasStateTitleColor(),
),
maxLines: 2,
maxLines: labelMaxLines ?? 2,
overflow: TextOverflow.ellipsis,
)
],