Merge branch 'fix'

This commit is contained in:
guozhigq
2024-12-09 22:54:51 +08:00
2 changed files with 3 additions and 3 deletions

View File

@ -276,7 +276,7 @@ class _VideoInfoState extends State<VideoInfo> 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: ' '),

View File

@ -196,7 +196,7 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
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<VideoReplyPanel>
} else {
// 请求错误
return HttpError(
errMsg: data['msg'],
errMsg: data?['msg'] ?? '请求异常',
fn: () {
setState(() {
_futureBuilderFuture =