💄 Optimize articles page

This commit is contained in:
2025-08-25 15:33:27 +08:00
parent 06f04eb3a5
commit 96c2f45c85

View File

@@ -137,6 +137,7 @@ class ArticlesScreen extends ConsumerWidget {
return DefaultTabController( return DefaultTabController(
length: feeds.length + 1, length: feeds.length + 1,
child: AppScaffold( child: AppScaffold(
isNoBackground: false,
appBar: AppBar( appBar: AppBar(
title: const Text('Articles'), title: const Text('Articles'),
bottom: TabBar( bottom: TabBar(
@@ -192,11 +193,13 @@ class ArticlesScreen extends ConsumerWidget {
}, },
loading: loading:
() => AppScaffold( () => AppScaffold(
isNoBackground: false,
appBar: AppBar(title: const Text('Articles')), appBar: AppBar(title: const Text('Articles')),
body: const Center(child: CircularProgressIndicator()), body: const Center(child: CircularProgressIndicator()),
), ),
error: error:
(err, stack) => AppScaffold( (err, stack) => AppScaffold(
isNoBackground: false,
appBar: AppBar(title: const Text('Articles')), appBar: AppBar(title: const Text('Articles')),
body: Center(child: Text('Error: $err')), body: Center(child: Text('Error: $err')),
), ),