mod: 视频详情页样式

This commit is contained in:
guozhigq
2023-10-21 21:50:38 +08:00
parent b71558173e
commit f30fb7a71c
3 changed files with 10 additions and 9 deletions

View File

@ -248,8 +248,8 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
? widget.videoDetail!.title
: videoItem['title'],
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w500,
fontSize: 17,
fontWeight: FontWeight.bold,
),
maxLines: 2,
overflow: TextOverflow.ellipsis,

View File

@ -43,6 +43,7 @@ class _HeaderControlState extends State<HeaderControl> {
Box localCache = GStrorage.localCache;
Box videoStorage = GStrorage.video;
late List speedsList;
double buttonSpace = 8;
@override
void initState() {
@ -276,7 +277,7 @@ class _HeaderControlState extends State<HeaderControl> {
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('选择画质', style: titleStyle),
const SizedBox(width: 4),
SizedBox(width: buttonSpace),
Icon(
Icons.info_outline,
size: 16,
@ -793,7 +794,7 @@ class _HeaderControlState extends State<HeaderControl> {
),
fuc: () => Get.back(),
),
const SizedBox(width: 4),
SizedBox(width: buttonSpace),
ComBtn(
icon: const Icon(
FontAwesomeIcons.house,
@ -838,7 +839,7 @@ class _HeaderControlState extends State<HeaderControl> {
),
),
),
const SizedBox(width: 4),
SizedBox(width: buttonSpace),
if (Platform.isAndroid) ...[
SizedBox(
width: 34,
@ -870,7 +871,7 @@ class _HeaderControlState extends State<HeaderControl> {
),
),
),
const SizedBox(width: 4),
SizedBox(width: buttonSpace),
],
Obx(
() => SizedBox(
@ -888,7 +889,7 @@ class _HeaderControlState extends State<HeaderControl> {
),
),
),
const SizedBox(width: 4),
SizedBox(width: buttonSpace),
ComBtn(
icon: const Icon(
FontAwesomeIcons.sliders,

View File

@ -123,7 +123,7 @@ class BottomControl extends StatelessWidget implements PreferredSizeWidget {
),
fuc: () => _.toggleVideoFit(),
),
const SizedBox(width: 4),
const SizedBox(width: 10),
// 全屏
Obx(
() => ComBtn(
@ -139,7 +139,7 @@ class BottomControl extends StatelessWidget implements PreferredSizeWidget {
),
],
),
const SizedBox(height: 10),
const SizedBox(height: 12),
],
),
);