Merge branch 'fix'
This commit is contained in:
@ -276,7 +276,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
|||||||
WidgetSpan(
|
WidgetSpan(
|
||||||
child: Visibility(
|
child: Visibility(
|
||||||
visible: widget.videoDetail!.copyright == 2,
|
visible: widget.videoDetail!.copyright == 2,
|
||||||
child: const PBadge(text: '转载', type: 'color'),
|
child: const PBadge(text: '转载', type: 'color', stack: 'relative'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const TextSpan(text: ' '),
|
const TextSpan(text: ' '),
|
||||||
|
@ -196,7 +196,7 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
|
|||||||
future: _futureBuilderFuture,
|
future: _futureBuilderFuture,
|
||||||
builder: (BuildContext context, snapshot) {
|
builder: (BuildContext context, snapshot) {
|
||||||
if (snapshot.connectionState == ConnectionState.done) {
|
if (snapshot.connectionState == ConnectionState.done) {
|
||||||
var data = snapshot.data;
|
Map? data = snapshot.data;
|
||||||
if (_videoReplyController.replyList.isNotEmpty ||
|
if (_videoReplyController.replyList.isNotEmpty ||
|
||||||
(data != null && data['status'])) {
|
(data != null && data['status'])) {
|
||||||
// 请求成功
|
// 请求成功
|
||||||
@ -258,7 +258,7 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
|
|||||||
} else {
|
} else {
|
||||||
// 请求错误
|
// 请求错误
|
||||||
return HttpError(
|
return HttpError(
|
||||||
errMsg: data['msg'],
|
errMsg: data?['msg'] ?? '请求异常',
|
||||||
fn: () {
|
fn: () {
|
||||||
setState(() {
|
setState(() {
|
||||||
_futureBuilderFuture =
|
_futureBuilderFuture =
|
||||||
|
Reference in New Issue
Block a user