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

@@ -79,10 +79,7 @@ class _AtMePageState extends State<AtMePage> {
color: Colors.grey.withValues(alpha: 0.1),
);
return switch (loadingState) {
Loading() => SliverList.builder(
itemCount: 12,
itemBuilder: (context, index) => const MsgFeedTopSkeleton(),
),
Loading() => sysFeedSkeleton,
Success(:final response) =>
response != null && response.isNotEmpty
? SliverList.separated(

View File

@@ -61,10 +61,7 @@ class _LikeDetailPageState extends State<LikeDetailPage> {
color: Colors.grey.withValues(alpha: 0.1),
);
return switch (loadingState) {
Loading() => SliverList.builder(
itemCount: 12,
itemBuilder: (context, index) => const MsgFeedTopSkeleton(),
),
Loading() => sysFeedSkeleton,
Success(:final response) => SliverMainAxisGroup(
slivers: [
if (_controller.card != null) ...[

View File

@@ -82,10 +82,7 @@ class _LikeMePageState extends State<LikeMePage> {
color: Colors.grey.withValues(alpha: 0.1),
);
return switch (loadingState) {
Loading() => SliverList.builder(
itemCount: 12,
itemBuilder: (context, index) => const MsgFeedTopSkeleton(),
),
Loading() => sysFeedSkeleton,
Success(:final response) => Builder(
builder: (context) {
Pair<List<MsgLikeItem>, List<MsgLikeItem>> pair = response;

View File

@@ -79,10 +79,7 @@ class _ReplyMePageState extends State<ReplyMePage> {
color: Colors.grey.withValues(alpha: 0.1),
);
return switch (loadingState) {
Loading() => SliverList.builder(
itemCount: 12,
itemBuilder: (context, index) => const MsgFeedTopSkeleton(),
),
Loading() => sysFeedSkeleton,
Success(:final response) =>
response != null && response.isNotEmpty
? SliverList.separated(

View File

@@ -66,12 +66,7 @@ class _SysMsgPageState extends State<SysMsgPage> {
color: Colors.grey.withValues(alpha: 0.1),
);
return switch (loadingState) {
Loading() => ViewSliverSafeArea(
sliver: SliverList.builder(
itemCount: 12,
itemBuilder: (context, index) => const MsgFeedSysMsgSkeleton(),
),
),
Loading() => const ViewSliverSafeArea(sliver: sysMsgSkeleton),
Success(:final response) =>
response != null && response.isNotEmpty
? SliverList.separated(