Apply new style Language section in Setting on desktop
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -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),
|
||||
),
|
||||
),
|
||||
),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user