mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-06 02:59:28 +00:00
Update player height calculation to use full screen height
This commit is contained in:
parent
de94be965a
commit
99fb8264f1
3 changed files with 43 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue