♻️ Optimize the creator hub

This commit is contained in:
2025-10-12 00:06:48 +08:00
parent c3f61467c8
commit c660a419e2
10 changed files with 437 additions and 337 deletions

View File

@@ -115,10 +115,12 @@ class WebFeedEditScreen extends HookConsumerWidget {
return feedAsync.when(
loading:
() => const AppScaffold(
isNoBackground: false,
body: Center(child: CircularProgressIndicator()),
),
error:
(error, stack) => AppScaffold(
isNoBackground: false,
appBar: AppBar(title: const Text('Error')),
body: Center(child: Text('Error: $error')),
),
@@ -186,6 +188,7 @@ class WebFeedEditScreen extends HookConsumerWidget {
}, [pubName, feedId, ref, context]);
return AppScaffold(
isNoBackground: false,
appBar: AppBar(
title: Text(hasFeedId ? 'Edit Web Feed' : 'New Web Feed'),
actions: [

View File

@@ -17,6 +17,7 @@ class WebFeedListScreen extends ConsumerWidget {
final feedsAsync = ref.watch(webFeedListProvider(pubName));
return AppScaffold(
isNoBackground: false,
appBar: AppBar(title: const Text('Web Feeds')),
floatingActionButton: FloatingActionButton(
child: const Icon(Symbols.add),