mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 23:18:16 -07:00
fix: Move calculation logic to lib_mpv subtitles
This commit is contained in:
parent
c446210e6a
commit
5fac088e2d
8 changed files with 42 additions and 63 deletions
|
|
@ -216,7 +216,8 @@ class SubtitleText extends ConsumerWidget {
|
|||
child: Stack(
|
||||
alignment: Alignment.bottomCenter,
|
||||
children: [
|
||||
Positioned(
|
||||
AnimatedPositioned(
|
||||
duration: const Duration(milliseconds: 125),
|
||||
bottom: position,
|
||||
child: Container(
|
||||
constraints: BoxConstraints(maxWidth: constraints.maxWidth, maxHeight: constraints.maxHeight),
|
||||
|
|
@ -234,7 +235,8 @@ class SubtitleText extends ConsumerWidget {
|
|||
),
|
||||
),
|
||||
),
|
||||
Positioned(
|
||||
AnimatedPositioned(
|
||||
duration: const Duration(milliseconds: 125),
|
||||
bottom: position,
|
||||
child: Container(
|
||||
constraints: BoxConstraints(maxWidth: constraints.maxWidth, maxHeight: constraints.maxHeight),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue