diff --git a/lib/common/widgets/video_card_v.dart b/lib/common/widgets/video_card_v.dart index 1a5d4077..cc23f110 100644 --- a/lib/common/widgets/video_card_v.dart +++ b/lib/common/widgets/video_card_v.dart @@ -112,12 +112,22 @@ class VideoCardV extends StatelessWidget { height: maxHeight, ), ), - if (crossAxisCount == 1 && videoItem.duration != null) - PBadge( - bottom: 10, - right: 10, - text: videoItem.duration, - ) + if (videoItem.duration != null) + if (crossAxisCount == 1) ...[ + PBadge( + bottom: 10, + right: 10, + text: videoItem.duration, + ) + ] else ...[ + PBadge( + bottom: 6, + right: 7, + size: 'small', + type: 'gray', + text: videoItem.duration, + ) + ], ], ); }), @@ -174,7 +184,7 @@ class VideoContent extends StatelessWidget { ], ), if (crossAxisCount > 1) ...[ - const SizedBox(height: 3), + const SizedBox(height: 2), VideoStat( videoItem: videoItem, ), diff --git a/lib/pages/rcmd/controller.dart b/lib/pages/rcmd/controller.dart index 183b79bf..1f21ab0d 100644 --- a/lib/pages/rcmd/controller.dart +++ b/lib/pages/rcmd/controller.dart @@ -49,7 +49,7 @@ class RcmdController extends GetxController { videoList.value = res['data']; } } else if (type == 'onRefresh') { - videoList.insertAll(0, res['data']); + videoList.value = res['data']; } else if (type == 'onLoad') { videoList.addAll(res['data']); } diff --git a/lib/pages/rcmd/view.dart b/lib/pages/rcmd/view.dart index c8cf20d4..165613a6 100644 --- a/lib/pages/rcmd/view.dart +++ b/lib/pages/rcmd/view.dart @@ -77,7 +77,8 @@ class _RcmdPageState extends State ), child: RefreshIndicator( onRefresh: () async { - return await _rcmdController.onRefresh(); + await _rcmdController.onRefresh(); + await Future.delayed(const Duration(milliseconds: 300)); }, child: CustomScrollView( controller: _rcmdController.scrollController,