Skip to content

Commit 1a02b19

Browse files
committed
refactor: Remove Scaffold from page bodies
- Removed unnecessary Scaffold - Simplified page structure
1 parent 54668e4 commit 1a02b19

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

lib/content_management/view/categories_page.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ class CategoriesPage extends StatelessWidget {
99

1010
@override
1111
Widget build(BuildContext context) {
12-
return const Scaffold(
13-
body: Center(
14-
child: Text('Categories Page'),
15-
),
12+
return const Center(
13+
child: Text('Categories Page'),
1614
);
1715
}
1816
}

lib/content_management/view/headlines_page.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ class HeadlinesPage extends StatelessWidget {
99

1010
@override
1111
Widget build(BuildContext context) {
12-
return const Scaffold(
13-
body: Center(
14-
child: Text('Headlines Page'),
15-
),
12+
return const Center(
13+
child: Text('Headlines Page'),
1614
);
1715
}
1816
}

lib/content_management/view/sources_page.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ class SourcesPage extends StatelessWidget {
99

1010
@override
1111
Widget build(BuildContext context) {
12-
return const Scaffold(
13-
body: Center(
14-
child: Text('Sources Page'),
15-
),
12+
return const Center(
13+
child: Text('Sources Page'),
1614
);
1715
}
1816
}

0 commit comments

Comments
 (0)