Skip to content

Commit 09e1331

Browse files
committed
feat(config): add description to config page
- Added description text - Adjusted tab bar layout
1 parent ca6eabe commit 09e1331

File tree

1 file changed

+32
-10
lines changed

1 file changed

+32
-10
lines changed

lib/app_configuration/view/app_configuration_page.dart

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,38 @@ class _AppConfigurationPageState extends State<AppConfigurationPage>
4949
context.l10n.appConfigurationPageTitle,
5050
style: Theme.of(context).textTheme.headlineSmall,
5151
),
52-
bottom: TabBar(
53-
controller: _tabController,
54-
isScrollable: true,
55-
tabs: [
56-
Tab(text: context.l10n.userContentLimitsTab),
57-
Tab(text: context.l10n.adSettingsTab),
58-
Tab(text: context.l10n.inAppPromptsTab),
59-
Tab(text: context.l10n.appOperationalStatusTab),
60-
Tab(text: context.l10n.forceUpdateTab),
61-
],
52+
bottom: PreferredSize(
53+
preferredSize: Size.fromHeight(
54+
kToolbarHeight + kTextTabBarHeight + AppSpacing.lg,
55+
),
56+
child: Column(
57+
children: [
58+
Padding(
59+
padding: const EdgeInsets.only(
60+
left: AppSpacing.lg,
61+
right: AppSpacing.lg,
62+
bottom: AppSpacing.lg,
63+
),
64+
child: Text(
65+
context.l10n.appConfigurationPageDescription,
66+
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
67+
color: Theme.of(context).colorScheme.onSurfaceVariant,
68+
),
69+
),
70+
),
71+
TabBar(
72+
controller: _tabController,
73+
isScrollable: true,
74+
tabs: [
75+
Tab(text: context.l10n.userContentLimitsTab),
76+
Tab(text: context.l10n.adSettingsTab),
77+
Tab(text: context.l10n.inAppPromptsTab),
78+
Tab(text: context.l10n.appOperationalStatusTab),
79+
Tab(text: context.l10n.forceUpdateTab),
80+
],
81+
),
82+
],
83+
),
6284
),
6385
),
6486
body: BlocConsumer<AppConfigurationBloc, AppConfigurationState>(

0 commit comments

Comments
 (0)