@@ -3,6 +3,8 @@ import 'package:ht_dashboard/content_management/view/categories_page.dart';
3
3
import 'package:ht_dashboard/content_management/view/headlines_page.dart' ;
4
4
import 'package:ht_dashboard/content_management/view/sources_page.dart' ;
5
5
import 'package:ht_dashboard/l10n/l10n.dart' ;
6
+ import 'package:ht_dashboard/shared/constants/app_spacing.dart' ;
7
+ import 'package:ht_dashboard/shared/theme/app_theme.dart' ;
6
8
7
9
/// {@template content_management_page}
8
10
/// A page for Content Management with tabbed navigation for sub-sections.
@@ -37,13 +39,35 @@ class _ContentManagementPageState extends State<ContentManagementPage>
37
39
return Scaffold (
38
40
appBar: AppBar (
39
41
title: Text (l10n.contentManagement),
40
- bottom: TabBar (
41
- controller: _tabController,
42
- tabs: [
43
- Tab (text: l10n.headlines),
44
- Tab (text: l10n.categories),
45
- Tab (text: l10n.sources),
46
- ],
42
+ bottom: PreferredSize (
43
+ preferredSize: Size .fromHeight (
44
+ kToolbarHeight + kTextTabBarHeight + AppSpacing .lg,
45
+ ),
46
+ child: Column (
47
+ children: [
48
+ Padding (
49
+ padding: const EdgeInsets .only (
50
+ left: AppSpacing .lg,
51
+ right: AppSpacing .lg,
52
+ bottom: AppSpacing .lg,
53
+ ),
54
+ child: Text (
55
+ l10n.contentManagementPageDescription,
56
+ style: Theme .of (context).textTheme.bodyMedium? .copyWith (
57
+ color: Theme .of (context).colorScheme.onSurfaceVariant,
58
+ ),
59
+ ),
60
+ ),
61
+ TabBar (
62
+ controller: _tabController,
63
+ tabs: [
64
+ Tab (text: l10n.headlines),
65
+ Tab (text: l10n.categories),
66
+ Tab (text: l10n.sources),
67
+ ],
68
+ ),
69
+ ],
70
+ ),
47
71
),
48
72
),
49
73
body: TabBarView (
0 commit comments