mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: video sheet
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -118,15 +118,12 @@ class HeaderControlState extends State<HeaderControl> {
|
|||||||
/// 设置面板
|
/// 设置面板
|
||||||
void showSettingSheet() {
|
void showSettingSheet() {
|
||||||
showBottomSheet(
|
showBottomSheet(
|
||||||
(context, setState) => Material(
|
(context, setState) => Padding(
|
||||||
color: Colors.transparent,
|
padding: const EdgeInsets.all(12),
|
||||||
child: Container(
|
child: Material(
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
decoration: BoxDecoration(
|
|
||||||
color: Theme.of(context).colorScheme.surface,
|
color: Theme.of(context).colorScheme.surface,
|
||||||
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
||||||
),
|
|
||||||
margin: const EdgeInsets.all(12),
|
|
||||||
child: ListView(
|
child: ListView(
|
||||||
padding: EdgeInsets.zero,
|
padding: EdgeInsets.zero,
|
||||||
children: [
|
children: [
|
||||||
@@ -595,15 +592,12 @@ class HeaderControlState extends State<HeaderControl> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
showBottomSheet(
|
showBottomSheet(
|
||||||
(context, setState) => Material(
|
(context, setState) => Padding(
|
||||||
color: Colors.transparent,
|
padding: const EdgeInsets.all(12),
|
||||||
child: Container(
|
child: Material(
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
decoration: BoxDecoration(
|
|
||||||
color: Theme.of(context).colorScheme.surface,
|
color: Theme.of(context).colorScheme.surface,
|
||||||
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
||||||
),
|
|
||||||
margin: const EdgeInsets.all(12),
|
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
SizedBox(
|
SizedBox(
|
||||||
@@ -710,15 +704,12 @@ class HeaderControlState extends State<HeaderControl> {
|
|||||||
final AudioQuality currentAudioQa = videoDetailCtr.currentAudioQa!;
|
final AudioQuality currentAudioQa = videoDetailCtr.currentAudioQa!;
|
||||||
final List<AudioItem> audio = videoInfo.dash!.audio!;
|
final List<AudioItem> audio = videoInfo.dash!.audio!;
|
||||||
showBottomSheet(
|
showBottomSheet(
|
||||||
(context, setState) => Material(
|
(context, setState) => Padding(
|
||||||
color: Colors.transparent,
|
padding: const EdgeInsets.all(12),
|
||||||
child: Container(
|
child: Material(
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
decoration: BoxDecoration(
|
|
||||||
color: Theme.of(context).colorScheme.surface,
|
color: Theme.of(context).colorScheme.surface,
|
||||||
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
||||||
),
|
|
||||||
margin: const EdgeInsets.all(12),
|
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
@@ -813,15 +804,12 @@ class HeaderControlState extends State<HeaderControl> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
showBottomSheet(
|
showBottomSheet(
|
||||||
(context, setState) => Material(
|
(context, setState) => Padding(
|
||||||
color: Colors.transparent,
|
padding: const EdgeInsets.all(12),
|
||||||
child: Container(
|
child: Material(
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
decoration: BoxDecoration(
|
|
||||||
color: Theme.of(context).colorScheme.surface,
|
color: Theme.of(context).colorScheme.surface,
|
||||||
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
||||||
),
|
|
||||||
margin: const EdgeInsets.all(12),
|
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
@@ -1024,15 +1012,13 @@ class HeaderControlState extends State<HeaderControl> {
|
|||||||
setState(() {});
|
setState(() {});
|
||||||
}
|
}
|
||||||
|
|
||||||
return Material(
|
return Padding(
|
||||||
color: Colors.transparent,
|
padding: const EdgeInsets.all(12),
|
||||||
child: Container(
|
child: Material(
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
decoration: BoxDecoration(
|
|
||||||
color: Theme.of(context).colorScheme.surface,
|
color: Theme.of(context).colorScheme.surface,
|
||||||
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
||||||
),
|
child: Padding(
|
||||||
margin: const EdgeInsets.all(12),
|
|
||||||
padding: const EdgeInsets.only(left: 14, right: 14),
|
padding: const EdgeInsets.only(left: 14, right: 14),
|
||||||
child: ListView(
|
child: ListView(
|
||||||
padding: EdgeInsets.zero,
|
padding: EdgeInsets.zero,
|
||||||
@@ -1064,7 +1050,8 @@ class HeaderControlState extends State<HeaderControl> {
|
|||||||
max: 2.5,
|
max: 2.5,
|
||||||
value: subtitleFontScale,
|
value: subtitleFontScale,
|
||||||
divisions: 20,
|
divisions: 20,
|
||||||
label: '${(subtitleFontScale * 100).toStringAsFixed(1)}%',
|
label:
|
||||||
|
'${(subtitleFontScale * 100).toStringAsFixed(1)}%',
|
||||||
onChanged: updateFontScale,
|
onChanged: updateFontScale,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -1236,6 +1223,7 @@ class HeaderControlState extends State<HeaderControl> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
@@ -1288,7 +1276,7 @@ class HeaderControlState extends State<HeaderControl> {
|
|||||||
widget.controller.danmakuController;
|
widget.controller.danmakuController;
|
||||||
|
|
||||||
showBottomSheet(
|
showBottomSheet(
|
||||||
(cpntext, setState) {
|
(context, setState) {
|
||||||
final sliderTheme = SliderThemeData(
|
final sliderTheme = SliderThemeData(
|
||||||
trackShape: MSliderTrackShape(),
|
trackShape: MSliderTrackShape(),
|
||||||
thumbColor: Theme.of(context).colorScheme.primary,
|
thumbColor: Theme.of(context).colorScheme.primary,
|
||||||
@@ -1427,15 +1415,13 @@ class HeaderControlState extends State<HeaderControl> {
|
|||||||
} catch (_) {}
|
} catch (_) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
return Material(
|
return Padding(
|
||||||
color: Colors.transparent,
|
padding: const EdgeInsets.all(12),
|
||||||
child: Container(
|
child: Material(
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
decoration: BoxDecoration(
|
|
||||||
color: Theme.of(context).colorScheme.surface,
|
color: Theme.of(context).colorScheme.surface,
|
||||||
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
||||||
),
|
child: Padding(
|
||||||
margin: const EdgeInsets.all(12),
|
|
||||||
padding: const EdgeInsets.only(left: 14, right: 14),
|
padding: const EdgeInsets.only(left: 14, right: 14),
|
||||||
child: ListView(
|
child: ListView(
|
||||||
padding: EdgeInsets.zero,
|
padding: EdgeInsets.zero,
|
||||||
@@ -1460,8 +1446,8 @@ class HeaderControlState extends State<HeaderControl> {
|
|||||||
Get.toNamed('/danmakuBlock',
|
Get.toNamed('/danmakuBlock',
|
||||||
arguments: widget.controller)
|
arguments: widget.controller)
|
||||||
},
|
},
|
||||||
child:
|
child: Text(
|
||||||
Text("屏蔽管理(${plPlayerController.filters.count})")),
|
"屏蔽管理(${plPlayerController.filters.count})")),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
@@ -1494,7 +1480,8 @@ class HeaderControlState extends State<HeaderControl> {
|
|||||||
padding: const EdgeInsets.only(top: 12),
|
padding: const EdgeInsets.only(top: 12),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
for (final Map<String, dynamic> i in blockTypesList) ...[
|
for (final Map<String, dynamic> i
|
||||||
|
in blockTypesList) ...[
|
||||||
ActionRowLineItem(
|
ActionRowLineItem(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
final bool isChoose =
|
final bool isChoose =
|
||||||
@@ -1789,6 +1776,7 @@ class HeaderControlState extends State<HeaderControl> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
@@ -1797,15 +1785,12 @@ class HeaderControlState extends State<HeaderControl> {
|
|||||||
/// 播放顺序
|
/// 播放顺序
|
||||||
void showSetRepeat() {
|
void showSetRepeat() {
|
||||||
showBottomSheet(
|
showBottomSheet(
|
||||||
(context, setState) => Material(
|
(context, setState) => Padding(
|
||||||
color: Colors.transparent,
|
padding: const EdgeInsets.all(12),
|
||||||
child: Container(
|
child: Material(
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
decoration: BoxDecoration(
|
|
||||||
color: Theme.of(context).colorScheme.surface,
|
color: Theme.of(context).colorScheme.surface,
|
||||||
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
||||||
),
|
|
||||||
margin: const EdgeInsets.all(12),
|
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
|||||||
Reference in New Issue
Block a user