@@ -33,15 +33,18 @@ class _ContentManagementPageState extends State<ContentManagementPage>
33
33
34
34
@override
35
35
void dispose () {
36
- _tabController.removeListener (_onTabChanged);
37
- _tabController.dispose ();
36
+ _tabController
37
+ ..removeListener (_onTabChanged)
38
+ ..dispose ();
38
39
super .dispose ();
39
40
}
40
41
41
42
void _onTabChanged () {
42
43
if (! _tabController.indexIsChanging) {
43
44
final tab = ContentManagementTab .values[_tabController.index];
44
- context.read <ContentManagementBloc >().add (ContentManagementTabChanged (tab));
45
+ context.read <ContentManagementBloc >().add (
46
+ ContentManagementTabChanged (tab),
47
+ );
45
48
}
46
49
}
47
50
@@ -56,8 +59,9 @@ class _ContentManagementPageState extends State<ContentManagementPage>
56
59
appBar: AppBar (
57
60
title: Text (l10n.contentManagement),
58
61
bottom: PreferredSize (
59
- preferredSize:
60
- const Size .fromHeight (kTextTabBarHeight + AppSpacing .lg),
62
+ preferredSize: const Size .fromHeight (
63
+ kTextTabBarHeight + AppSpacing .lg,
64
+ ),
61
65
child: Column (
62
66
crossAxisAlignment: CrossAxisAlignment .start,
63
67
children: [
@@ -70,8 +74,8 @@ class _ContentManagementPageState extends State<ContentManagementPage>
70
74
child: Text (
71
75
l10n.contentManagementPageDescription,
72
76
style: Theme .of (context).textTheme.bodyMedium? .copyWith (
73
- color: Theme .of (context).colorScheme.onSurfaceVariant,
74
- ),
77
+ color: Theme .of (context).colorScheme.onSurfaceVariant,
78
+ ),
75
79
),
76
80
),
77
81
TabBar (
@@ -98,8 +102,10 @@ class _ContentManagementPageState extends State<ContentManagementPage>
98
102
),
99
103
floatingActionButton: FloatingActionButton (
100
104
onPressed: () {
101
- final currentTab =
102
- context.read <ContentManagementBloc >().state.activeTab;
105
+ final currentTab = context
106
+ .read <ContentManagementBloc >()
107
+ .state
108
+ .activeTab;
103
109
switch (currentTab) {
104
110
case ContentManagementTab .headlines:
105
111
context.goNamed (Routes .createHeadlineName);
0 commit comments