feat: 开屏后直接展示首页骨架
This commit is contained in:
1 parent
56d7abc6b1
commit
5f278a3510
10 files changed
+300
-166
No files matched your search
@@ -12,6 +12,7 @@ import '../../core/theme/app_colors.dart';
|
||||
import '../../core/theme/app_dimens.dart';
|
||||
import '../../core/theme/app_theme.dart';
|
||||
import '../../core/widgets/app_pull_to_refresh.dart';
|
||||
import '../../core/widgets/drama_grid_skeleton.dart';
|
||||
import '../../core/widgets/empty_state.dart';
|
||||
import '../../l10n/app_localizations.dart';
|
||||
import '../player/open_player.dart';
|
||||
@@ -201,15 +202,14 @@ class _SearchPageState extends State<SearchPage> {
|
||||
return _resultsGrid();
|
||||
}
|
||||
if (_logic.searchLoading) {
|
||||
return _stateScroll(
|
||||
const SizedBox.square(
|
||||
key: Key('search-loading'),
|
||||
dimension: 20,
|
||||
child: CircularProgressIndicator(
|
||||
strokeWidth: 2,
|
||||
color: AppColors.textPrimary,
|
||||
),
|
||||
),
|
||||
return const DramaGridSkeleton(
|
||||
key: Key('search-loading-skeleton'),
|
||||
columns: 2,
|
||||
horizontalPadding: AppDimens.feedPageHorizontal,
|
||||
crossAxisSpacing: AppDimens.searchResultGap,
|
||||
mainAxisSpacing: AppDimens.searchResultRowGap,
|
||||
itemCount: 6,
|
||||
physics: AppPullToRefresh.physics,
|
||||
);
|
||||
}
|
||||
if (_logic.searchError != null) {
|
||||
|
||||
Reference in new issue
Block a user