mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
fix: Removed subtitle position animation
This commit is contained in:
parent
a983356cd2
commit
eed9039c5a
1 changed files with 3 additions and 4 deletions
|
|
@ -172,6 +172,7 @@ class SubtitleText extends ConsumerWidget {
|
|||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final fillScreen = ref.watch(videoPlayerSettingsProvider.select((value) => value.fillScreen));
|
||||
final fontSize = ref.read(subtitleSettingsProvider.select((value) => value.fontSize));
|
||||
|
||||
return Padding(
|
||||
padding: (fillScreen ? EdgeInsets.zero : EdgeInsets.only(left: padding.left, right: padding.right))
|
||||
.add(const EdgeInsets.all(16)),
|
||||
|
|
@ -216,8 +217,7 @@ class SubtitleText extends ConsumerWidget {
|
|||
child: Stack(
|
||||
alignment: Alignment.bottomCenter,
|
||||
children: [
|
||||
AnimatedPositioned(
|
||||
duration: const Duration(milliseconds: 125),
|
||||
Positioned(
|
||||
bottom: position,
|
||||
child: Container(
|
||||
constraints: BoxConstraints(maxWidth: constraints.maxWidth, maxHeight: constraints.maxHeight),
|
||||
|
|
@ -235,8 +235,7 @@ class SubtitleText extends ConsumerWidget {
|
|||
),
|
||||
),
|
||||
),
|
||||
AnimatedPositioned(
|
||||
duration: const Duration(milliseconds: 125),
|
||||
Positioned(
|
||||
bottom: position,
|
||||
child: Container(
|
||||
constraints: BoxConstraints(maxWidth: constraints.maxWidth, maxHeight: constraints.maxHeight),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue