fix: 评论加载
This commit is contained in:
@ -231,7 +231,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return SliverPadding(
|
return SliverPadding(
|
||||||
padding: const EdgeInsets.only(left: 12, right: 12, top: 20),
|
padding: const EdgeInsets.only(left: 12, right: 12, top: 10),
|
||||||
sliver: SliverToBoxAdapter(
|
sliver: SliverToBoxAdapter(
|
||||||
child: !widget.loadingStatus || videoItem.isNotEmpty
|
child: !widget.loadingStatus || videoItem.isNotEmpty
|
||||||
? Column(
|
? Column(
|
||||||
|
|||||||
@ -53,9 +53,10 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
|
|||||||
tag: widget.rpid.toString());
|
tag: widget.rpid.toString());
|
||||||
_videoReplyController.rPid = widget.rpid;
|
_videoReplyController.rPid = widget.rpid;
|
||||||
} else {
|
} else {
|
||||||
int oid = Get.parameters['bvid'] != null
|
// fix 评论加载不对称
|
||||||
? IdUtils.bv2av(Get.parameters['bvid']!)
|
// int oid = Get.parameters['bvid'] != null
|
||||||
: 0;
|
// ? IdUtils.bv2av(Get.parameters['bvid']!)
|
||||||
|
// : 0;
|
||||||
_videoReplyController = Get.put(VideoReplyController(oid, '', '1'),
|
_videoReplyController = Get.put(VideoReplyController(oid, '', '1'),
|
||||||
tag: Get.arguments['heroTag']);
|
tag: Get.arguments['heroTag']);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -232,7 +232,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
height: 0,
|
height: 45,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
border: Border(
|
border: Border(
|
||||||
bottom: BorderSide(
|
bottom: BorderSide(
|
||||||
@ -252,8 +252,8 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
() => TabBar(
|
() => TabBar(
|
||||||
controller: videoDetailController.tabCtr,
|
controller: videoDetailController.tabCtr,
|
||||||
dividerColor: Colors.transparent,
|
dividerColor: Colors.transparent,
|
||||||
indicatorColor:
|
// indicatorColor:
|
||||||
Theme.of(context).colorScheme.background,
|
// Theme.of(context).colorScheme.background,
|
||||||
tabs: videoDetailController.tabs
|
tabs: videoDetailController.tabs
|
||||||
.map((String name) => Tab(text: name))
|
.map((String name) => Tab(text: name))
|
||||||
.toList(),
|
.toList(),
|
||||||
@ -278,7 +278,9 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
VideoReplyPanel()
|
VideoReplyPanel(
|
||||||
|
bvid: videoDetailController.bvid,
|
||||||
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user