mod: 注释代码

This commit is contained in:
guozhigq
2023-08-16 19:43:59 +08:00
parent 4e0fde4c50
commit d764f00b8a
2 changed files with 88 additions and 79 deletions

View File

@ -74,13 +74,13 @@ class _LiveRoomPageState extends State<LiveRoomPage> {
), ),
], ],
), ),
actions: [ // actions: [
SizedBox( // SizedBox(
height: 34, // height: 34,
child: ElevatedButton(onPressed: () {}, child: const Text('关注')), // child: ElevatedButton(onPressed: () {}, child: const Text('关注')),
), // ),
const SizedBox(width: 12), // const SizedBox(width: 12),
], // ],
), ),
body: Column( body: Column(
children: [ children: [
@ -112,67 +112,67 @@ class _LiveRoomPageState extends State<LiveRoomPage> {
], ],
), ),
), ),
Container( // Container(
height: 45, // height: 45,
padding: const EdgeInsets.only(left: 12, right: 12), // padding: const EdgeInsets.only(left: 12, right: 12),
decoration: BoxDecoration( // decoration: BoxDecoration(
color: Theme.of(context).colorScheme.background, // color: Theme.of(context).colorScheme.background,
border: Border( // border: Border(
bottom: BorderSide( // bottom: BorderSide(
color: Theme.of(context).dividerColor.withOpacity(0.1)), // color: Theme.of(context).dividerColor.withOpacity(0.1)),
), // ),
), // ),
child: Row(children: <Widget>[ // child: Row(children: <Widget>[
SizedBox( // SizedBox(
width: 38, // width: 38,
height: 38, // height: 38,
child: IconButton( // child: IconButton(
onPressed: () {}, // onPressed: () {},
icon: const Icon( // icon: const Icon(
Icons.subtitles_outlined, // Icons.subtitles_outlined,
size: 21, // size: 21,
), // ),
), // ),
), // ),
const Spacer(), // const Spacer(),
SizedBox( // SizedBox(
width: 38, // width: 38,
height: 38, // height: 38,
child: IconButton( // child: IconButton(
onPressed: () {}, // onPressed: () {},
icon: const Icon( // icon: const Icon(
Icons.hd_outlined, // Icons.hd_outlined,
size: 20, // size: 20,
), // ),
), // ),
), // ),
SizedBox( // SizedBox(
width: 38, // width: 38,
height: 38, // height: 38,
child: IconButton( // child: IconButton(
onPressed: () => _liveRoomController // onPressed: () => _liveRoomController
.setVolumn(plPlayerController!.volume.value), // .setVolumn(plPlayerController!.volume.value),
icon: Obx(() => Icon( // icon: Obx(() => Icon(
_liveRoomController.volumeOff.value // _liveRoomController.volumeOff.value
? Icons.volume_off_outlined // ? Icons.volume_off_outlined
: Icons.volume_up_outlined, // : Icons.volume_up_outlined,
size: 21, // size: 21,
)), // )),
), // ),
), // ),
SizedBox( // SizedBox(
width: 38, // width: 38,
height: 38, // height: 38,
child: IconButton( // child: IconButton(
onPressed: () => {}, // onPressed: () => {},
// plPlayerController!.goToFullscreen(context), // // plPlayerController!.goToFullscreen(context),
icon: const Icon( // icon: const Icon(
Icons.fullscreen, // Icons.fullscreen,
), // ),
), // ),
), // ),
]), // ]),
), // ),
], ],
), ),
); );

View File

@ -324,18 +324,27 @@ class _VideoDetailPageState extends State<VideoDetailPage>
SearchType.media_bangumi) ...[ SearchType.media_bangumi) ...[
const BangumiIntroPanel() const BangumiIntroPanel()
], ],
if (videoDetailController.videoType == // if (videoDetailController.videoType ==
SearchType.video) ...[ // SearchType.video) ...[
SliverPersistentHeader( // SliverPersistentHeader(
floating: true, // floating: true,
pinned: true, // pinned: true,
delegate: SliverHeaderDelegate( // delegate: SliverHeaderDelegate(
height: 50, // height: 50,
child: // child:
const MenuRow(loadingStatus: false), // const MenuRow(loadingStatus: false),
// ),
// ),
// ],
SliverToBoxAdapter(
child: Divider(
indent: 12,
endIndent: 12,
color: Theme.of(context)
.dividerColor
.withOpacity(0.06),
), ),
), ),
],
const RelatedVideoPanel(), const RelatedVideoPanel(),
], ],
); );