fix
This commit is contained in:
parent
40f1f55170
commit
ce45b2a1f6
3 changed files with 63 additions and 20 deletions
|
|
@ -918,6 +918,53 @@ class _AnimeStreamPageState extends riv.ConsumerState<AnimeStreamPage>
|
|||
Row(children: [
|
||||
btnToShowChapterListDialog(
|
||||
context, context.l10n.episodes, widget.episode),
|
||||
// IconButton(
|
||||
// onPressed: () {
|
||||
// showDialog(
|
||||
// context: context,
|
||||
// builder: (context) {
|
||||
// return AlertDialog(
|
||||
// scrollable: true,
|
||||
// title: Text("Player Settings"),
|
||||
// content: SizedBox(
|
||||
// width: context.mediaWidth(0.8),
|
||||
// child: Column(
|
||||
// crossAxisAlignment:
|
||||
// CrossAxisAlignment.start,
|
||||
// children: [
|
||||
// SwitchListTile(
|
||||
// value: false,
|
||||
// title: Text(
|
||||
// "Enable Volume and Brightness Gestures",
|
||||
// style: TextStyle(
|
||||
// color: Theme.of(context)
|
||||
// .textTheme
|
||||
// .bodyLarge!
|
||||
// .color!
|
||||
// .withOpacity(0.9),
|
||||
// fontSize: 14),
|
||||
// ),
|
||||
// onChanged: (value) {}),
|
||||
// SwitchListTile(
|
||||
// value: false,
|
||||
// title: Text(
|
||||
// "Enable Horizonal Seek Gestures",
|
||||
// style: TextStyle(
|
||||
// color: Theme.of(context)
|
||||
// .textTheme
|
||||
// .bodyLarge!
|
||||
// .color!
|
||||
// .withOpacity(0.9),
|
||||
// fontSize: 14),
|
||||
// ),
|
||||
// onChanged: (value) {}),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
// );
|
||||
// });
|
||||
// },
|
||||
// icon: Icon(Icons.adaptive.more))
|
||||
])
|
||||
],
|
||||
),
|
||||
|
|
|
|||
|
|
@ -243,6 +243,14 @@ class _DesktopControllerWidgetState extends State<DesktopControllerWidget> {
|
|||
onExit: (_) => onExit(),
|
||||
child: Stack(
|
||||
children: [
|
||||
Consumer(
|
||||
builder: (context, ref, _) => Positioned(
|
||||
child: CustomSubtitleView(
|
||||
controller: widget.videoController,
|
||||
configuration: SubtitleViewConfiguration(
|
||||
style: subtileTextStyle(ref)),
|
||||
)),
|
||||
),
|
||||
AnimatedOpacity(
|
||||
curve: Curves.easeInOut,
|
||||
opacity: visible ? 1.0 : 0.0,
|
||||
|
|
@ -419,16 +427,6 @@ class _DesktopControllerWidgetState extends State<DesktopControllerWidget> {
|
|||
),
|
||||
),
|
||||
),
|
||||
Consumer(
|
||||
builder: (context, ref, _) => Positioned(
|
||||
child: IgnorePointer(
|
||||
child: CustomSubtitleView(
|
||||
controller: widget.videoController,
|
||||
configuration: SubtitleViewConfiguration(
|
||||
style: subtileTextStyle(ref)),
|
||||
),
|
||||
)),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -308,6 +308,14 @@ class _MobileControllerWidgetState
|
|||
clipBehavior: Clip.none,
|
||||
alignment: Alignment.center,
|
||||
children: [
|
||||
Consumer(
|
||||
builder: (context, ref, _) => Positioned(
|
||||
child: CustomSubtitleView(
|
||||
controller: widget.videoController,
|
||||
configuration:
|
||||
SubtitleViewConfiguration(style: subtileTextStyle(ref)),
|
||||
)),
|
||||
),
|
||||
Positioned.fill(
|
||||
child: Container(
|
||||
color: backdropColor,
|
||||
|
|
@ -644,16 +652,6 @@ class _MobileControllerWidgetState
|
|||
],
|
||||
),
|
||||
),
|
||||
Consumer(
|
||||
builder: (context, ref, _) => Positioned(
|
||||
child: IgnorePointer(
|
||||
child: CustomSubtitleView(
|
||||
controller: widget.videoController,
|
||||
configuration:
|
||||
SubtitleViewConfiguration(style: subtileTextStyle(ref)),
|
||||
),
|
||||
)),
|
||||
)
|
||||
],
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue