fix(home): 修复目录错误态被占位层遮挡
This commit is contained in:
1 parent
bf47c065c9
commit
d4ce3a5d8b
2 files changed
+45
-3
No files matched your search
@@ -104,6 +104,7 @@ class _HomeFeedGridState extends State<HomeFeedGrid> {
|
||||
return _categoryPlaceholder(
|
||||
l10n,
|
||||
context.watch<CategoryController>(),
|
||||
catalog,
|
||||
);
|
||||
}
|
||||
final category = shortcuts[index];
|
||||
@@ -146,7 +147,11 @@ class _HomeFeedGridState extends State<HomeFeedGrid> {
|
||||
Widget _categoryPlaceholder(
|
||||
AppLocalizations l10n,
|
||||
CategoryController controller,
|
||||
CatalogController catalog,
|
||||
) {
|
||||
if (catalog.error != null) {
|
||||
return _catalogErrorState(l10n, catalog);
|
||||
}
|
||||
if (controller.loading) {
|
||||
return const DramaGridSkeleton(
|
||||
key: Key('home-grid-skeleton'),
|
||||
|
||||
Reference in new issue
Block a user