Update player height calculation to use full screen height

This commit is contained in:
Dr-Blank 2024-06-20 02:37:24 -04:00
parent de94be965a
commit 99fb8264f1
No known key found for this signature in database
GPG key ID: 7452CC63F210A266
3 changed files with 43 additions and 7 deletions

View file

@ -29,8 +29,7 @@ class ScaffoldWithNavBar extends HookConsumerWidget {
// final playerProgress =
// useValueListenable(ref.watch(playerExpandProgressNotifierProvider));
final playerProgress = ref.watch(playerHeightProvider);
final playerMaxHeight =
MediaQuery.of(context).size.height * playerMaxHeightPercentOfScreen;
final playerMaxHeight = MediaQuery.of(context).size.height;
var percentExpanded = (playerProgress - playerMinHeight) /
(playerMaxHeight - playerMinHeight);
// Clamp the value between 0 and 1