mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-24 11:10:15 +08:00
@@ -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(
|
||||
|
||||
@@ -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) ...[
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user