Skip to content

Commit 9311cf9

Browse files
committed
style(app_configuration): adjust subtitle text style for better visibility
- Update subtitle text style in FeaturesConfigurationTab and CommunityConfigForm - Apply onSurface color with 0.7 opacity for better contrast and readability - Extract subtitle style to a variable for reuse and consistency
1 parent 2cd4585 commit 9311cf9

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

lib/app_configuration/view/tabs/features_configuration_tab.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,14 @@ class _FeaturesConfigurationTabState extends State<FeaturesConfigurationTab> {
255255
return ExpansionTile(
256256
key: ValueKey('communityTile_$expandedIndex'),
257257
title: Text(l10n.communityAndEngagementTitle),
258-
subtitle: Text(l10n.communityAndEngagementDescription),
258+
subtitle: Text(
259+
l10n.communityAndEngagementDescription,
260+
style: Theme.of(context).textTheme.bodySmall?.copyWith(
261+
color: Theme.of(
262+
context,
263+
).colorScheme.onSurface.withOpacity(0.7),
264+
),
265+
),
259266
onExpansionChanged: (isExpanded) {
260267
_expandedTileIndex.value = isExpanded ? tileIndex : null;
261268
},

lib/app_configuration/widgets/community_config_form.dart

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,19 @@ class CommunityConfigForm extends StatelessWidget {
3030
@override
3131
Widget build(BuildContext context) {
3232
final l10n = AppLocalizationsX(context).l10n;
33+
final subtitleStyle = Theme.of(context).textTheme.bodySmall?.copyWith(
34+
color: Theme.of(context).colorScheme.onSurface.withOpacity(0.7),
35+
);
3336

3437
return Column(
3538
crossAxisAlignment: CrossAxisAlignment.start,
3639
children: [
3740
ExpansionTile(
3841
title: Text(l10n.userEngagementTitle),
39-
subtitle: Text(l10n.userEngagementDescription),
42+
subtitle: Text(
43+
l10n.userEngagementDescription,
44+
style: subtitleStyle,
45+
),
4046
childrenPadding: const EdgeInsetsDirectional.only(
4147
start: AppSpacing.lg,
4248
top: AppSpacing.md,
@@ -53,7 +59,10 @@ class CommunityConfigForm extends StatelessWidget {
5359
const SizedBox(height: AppSpacing.lg),
5460
ExpansionTile(
5561
title: Text(l10n.contentReportingTitle),
56-
subtitle: Text(l10n.contentReportingDescription),
62+
subtitle: Text(
63+
l10n.contentReportingDescription,
64+
style: subtitleStyle,
65+
),
5766
childrenPadding: const EdgeInsetsDirectional.only(
5867
start: AppSpacing.lg,
5968
top: AppSpacing.md,
@@ -70,7 +79,10 @@ class CommunityConfigForm extends StatelessWidget {
7079
const SizedBox(height: AppSpacing.lg),
7180
ExpansionTile(
7281
title: Text(l10n.appFeedbackFunnelTitle),
73-
subtitle: Text(l10n.appFeedbackFunnelDescription),
82+
subtitle: Text(
83+
l10n.appFeedbackFunnelDescription,
84+
style: subtitleStyle,
85+
),
7486
children: [
7587
AppReviewSettingsForm(
7688
remoteConfig: remoteConfig,

0 commit comments

Comments
 (0)