diff --git a/lib/pages/video/detail/introduction/view.dart b/lib/pages/video/detail/introduction/view.dart index aac1d657..17116b8a 100644 --- a/lib/pages/video/detail/introduction/view.dart +++ b/lib/pages/video/detail/introduction/view.dart @@ -276,7 +276,7 @@ class _VideoInfoState extends State with TickerProviderStateMixin { WidgetSpan( child: Visibility( visible: widget.videoDetail!.copyright == 2, - child: const PBadge(text: '转载', type: 'color'), + child: const PBadge(text: '转载', type: 'color', stack: 'relative'), ), ), const TextSpan(text: ' '), diff --git a/lib/pages/video/detail/reply/view.dart b/lib/pages/video/detail/reply/view.dart index 28d36979..4dba2d8f 100644 --- a/lib/pages/video/detail/reply/view.dart +++ b/lib/pages/video/detail/reply/view.dart @@ -196,7 +196,7 @@ class _VideoReplyPanelState extends State future: _futureBuilderFuture, builder: (BuildContext context, snapshot) { if (snapshot.connectionState == ConnectionState.done) { - var data = snapshot.data; + Map? data = snapshot.data; if (_videoReplyController.replyList.isNotEmpty || (data != null && data['status'])) { // 请求成功 @@ -258,7 +258,7 @@ class _VideoReplyPanelState extends State } else { // 请求错误 return HttpError( - errMsg: data['msg'], + errMsg: data?['msg'] ?? '请求异常', fn: () { setState(() { _futureBuilderFuture =