mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-14 01:37:07 -07: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) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
final fillScreen = ref.watch(videoPlayerSettingsProvider.select((value) => value.fillScreen));
|
final fillScreen = ref.watch(videoPlayerSettingsProvider.select((value) => value.fillScreen));
|
||||||
final fontSize = ref.read(subtitleSettingsProvider.select((value) => value.fontSize));
|
final fontSize = ref.read(subtitleSettingsProvider.select((value) => value.fontSize));
|
||||||
|
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: (fillScreen ? EdgeInsets.zero : EdgeInsets.only(left: padding.left, right: padding.right))
|
padding: (fillScreen ? EdgeInsets.zero : EdgeInsets.only(left: padding.left, right: padding.right))
|
||||||
.add(const EdgeInsets.all(16)),
|
.add(const EdgeInsets.all(16)),
|
||||||
|
|
@ -216,8 +217,7 @@ class SubtitleText extends ConsumerWidget {
|
||||||
child: Stack(
|
child: Stack(
|
||||||
alignment: Alignment.bottomCenter,
|
alignment: Alignment.bottomCenter,
|
||||||
children: [
|
children: [
|
||||||
AnimatedPositioned(
|
Positioned(
|
||||||
duration: const Duration(milliseconds: 125),
|
|
||||||
bottom: position,
|
bottom: position,
|
||||||
child: Container(
|
child: Container(
|
||||||
constraints: BoxConstraints(maxWidth: constraints.maxWidth, maxHeight: constraints.maxHeight),
|
constraints: BoxConstraints(maxWidth: constraints.maxWidth, maxHeight: constraints.maxHeight),
|
||||||
|
|
@ -235,8 +235,7 @@ class SubtitleText extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
AnimatedPositioned(
|
Positioned(
|
||||||
duration: const Duration(milliseconds: 125),
|
|
||||||
bottom: position,
|
bottom: position,
|
||||||
child: Container(
|
child: Container(
|
||||||
constraints: BoxConstraints(maxWidth: constraints.maxWidth, maxHeight: constraints.maxHeight),
|
constraints: BoxConstraints(maxWidth: constraints.maxWidth, maxHeight: constraints.maxHeight),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue