💄 Optimize post category subscribe loading state

This commit is contained in:
2025-08-25 16:17:19 +08:00
parent c7f5b63fe5
commit 4dca6189cb

View File

@@ -151,7 +151,9 @@ class PostCategoryDetailScreen extends HookConsumerWidget {
(error, _) => Text( (error, _) => Text(
'Error loading subscription status', 'Error loading subscription status',
), ),
loading: () => CircularProgressIndicator(), loading:
() =>
CircularProgressIndicator().center(),
), ),
], ],
).padding(horizontal: 24, vertical: 16), ).padding(horizontal: 24, vertical: 16),
@@ -220,7 +222,9 @@ class PostCategoryDetailScreen extends HookConsumerWidget {
(error, _) => Text( (error, _) => Text(
'Error loading subscription status', 'Error loading subscription status',
), ),
loading: () => CircularProgressIndicator(), loading:
() =>
CircularProgressIndicator().center(),
), ),
], ],
).padding(horizontal: 24, vertical: 16), ).padding(horizontal: 24, vertical: 16),