Apply new style Language section in Setting on desktop

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-07-03 16:54:23 +07:00
committed by Dat H. Pham
parent de596a76d6
commit 8289593247
11 changed files with 319 additions and 312 deletions
@@ -7,11 +7,13 @@ import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
class SettingHeaderWidget extends StatelessWidget {
final AccountMenuItem menuItem;
final EdgeInsetsGeometry? padding;
final TextStyle? textStyle;
const SettingHeaderWidget({
Key? key,
required this.menuItem,
this.padding,
this.textStyle,
}) : super(key: key);
@override
@@ -21,16 +23,21 @@ class SettingHeaderWidget extends StatelessWidget {
final children = [
Text(
menuItem.getName(appLocalizations),
style: ThemeUtils.textStyleInter600().copyWith(
style: textStyle ?? ThemeUtils.textStyleInter600().copyWith(
color: Colors.black,
),
),
if (menuItem.getExplanation(appLocalizations).isNotEmpty)
Padding(
padding: const EdgeInsets.only(top: 8),
padding: const EdgeInsets.only(top: 13),
child: Text(
menuItem.getExplanation(appLocalizations),
style: ThemeUtils.textStyleBodyBody1(color: AppColor.steelGray400),
style: ThemeUtils.textStyleInter400.copyWith(
fontSize: 16,
height: 21.01 / 16,
letterSpacing: -0.15,
color: AppColor.gray424244.withOpacity(0.64),
),
),
),
];