opt scroll physics

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-20 13:31:28 +08:00
parent 452b54d124
commit 480bdffdaa
59 changed files with 210 additions and 195 deletions

View File

@@ -101,9 +101,8 @@ class _SearchAllPanelState
}
@override
Widget get buildLoading => SliverGrid.builder(
Widget get buildLoading => SliverGrid(
gridDelegate: Grid.videoCardHDelegate(),
itemBuilder: (context, index) => const VideoCardHSkeleton(),
itemCount: 10,
delegate: videoHDelegate,
);
}

View File

@@ -73,9 +73,8 @@ class _SearchLivePanelState
}
@override
Widget get buildLoading => SliverGrid.builder(
Widget get buildLoading => SliverGrid(
gridDelegate: gridDelegate,
itemBuilder: (context, index) => const VideoCardVSkeleton(),
itemCount: 10,
delegate: videoVDelegate,
);
}

View File

@@ -65,13 +65,12 @@ class _SearchPgcPanelState
}
@override
Widget get buildLoading => SliverGrid.builder(
Widget get buildLoading => SliverGrid(
gridDelegate: SliverGridDelegateWithExtentAndRatio(
mainAxisSpacing: 2,
maxCrossAxisExtent: Grid.smallCardWidth * 2,
childAspectRatio: Style.aspectRatio * 1.5,
),
itemBuilder: (context, index) => const MediaPgcSkeleton(),
itemCount: 10,
delegate: pgcDelegate,
);
}

View File

@@ -112,9 +112,8 @@ class _SearchUserPanelState
}
@override
Widget get buildLoading => SliverGrid.builder(
Widget get buildLoading => SliverGrid(
gridDelegate: gridDelegate,
itemBuilder: (context, index) => const MsgFeedTopSkeleton(),
itemCount: 10,
delegate: sysFeedDelegate,
);
}