Merge branch 'feature-updateVideoDetailStructure'
This commit is contained in:
@ -268,7 +268,10 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
|||||||
final Color outline = t.colorScheme.outline;
|
final Color outline = t.colorScheme.outline;
|
||||||
return SliverPadding(
|
return SliverPadding(
|
||||||
padding: const EdgeInsets.only(
|
padding: const EdgeInsets.only(
|
||||||
left: StyleString.safeSpace, right: StyleString.safeSpace, top: 10),
|
left: StyleString.safeSpace,
|
||||||
|
right: StyleString.safeSpace,
|
||||||
|
top: 16,
|
||||||
|
),
|
||||||
sliver: SliverToBoxAdapter(
|
sliver: SliverToBoxAdapter(
|
||||||
child: !loadingStatus
|
child: !loadingStatus
|
||||||
? Column(
|
? Column(
|
||||||
|
|||||||
@ -9,7 +9,6 @@ import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
|||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
import 'package:nil/nil.dart';
|
|
||||||
import 'package:pilipala/common/widgets/network_img_layer.dart';
|
import 'package:pilipala/common/widgets/network_img_layer.dart';
|
||||||
import 'package:pilipala/http/user.dart';
|
import 'package:pilipala/http/user.dart';
|
||||||
import 'package:pilipala/models/common/search_type.dart';
|
import 'package:pilipala/models/common/search_type.dart';
|
||||||
@ -308,11 +307,20 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
);
|
);
|
||||||
|
|
||||||
/// tabbar
|
/// tabbar
|
||||||
Widget tabbarBuild = SizedBox(
|
Widget tabbarBuild = Container(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
height: 45,
|
height: 45,
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
border: Border(
|
||||||
|
bottom: BorderSide(
|
||||||
|
width: 1,
|
||||||
|
color: Theme.of(context).dividerColor.withOpacity(0.1),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
|
const SizedBox(width: 20),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: TabBar(
|
child: TabBar(
|
||||||
controller: vdCtr.tabCtr,
|
controller: vdCtr.tabCtr,
|
||||||
@ -321,7 +329,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 200,
|
width: 220,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
@ -333,9 +341,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
padding: MaterialStateProperty.all(EdgeInsets.zero),
|
padding: MaterialStateProperty.all(EdgeInsets.zero),
|
||||||
),
|
),
|
||||||
onPressed: () => vdCtr.showShootDanmakuSheet(),
|
onPressed: () => vdCtr.showShootDanmakuSheet(),
|
||||||
child: const Text(
|
child: const Text('发弹幕', style: TextStyle(fontSize: 12)),
|
||||||
'发弹幕',
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 4),
|
const SizedBox(width: 4),
|
||||||
@ -353,6 +359,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
child: Obx(() => Text(
|
child: Obx(() => Text(
|
||||||
'弹',
|
'弹',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
fontSize: 12,
|
||||||
color: (plPlayerController?.isOpenDanmu.value ??
|
color: (plPlayerController?.isOpenDanmu.value ??
|
||||||
false)
|
false)
|
||||||
? Theme.of(context).colorScheme.primary
|
? Theme.of(context).colorScheme.primary
|
||||||
|
|||||||
Reference in New Issue
Block a user