mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-08 20:19:29 +00:00
player made shorter since can not intercept back gestures
This commit is contained in:
parent
4a430209af
commit
a1e238fc25
5 changed files with 29 additions and 72 deletions
|
|
@ -22,7 +22,8 @@ class ScaffoldWithNavBar extends HookConsumerWidget {
|
|||
// final playerProgress =
|
||||
// useValueListenable(ref.watch(playerExpandProgressNotifierProvider));
|
||||
final playerProgress = ref.watch(playerHeightProvider);
|
||||
final playerMaxHeight = MediaQuery.of(context).size.height;
|
||||
final playerMaxHeight =
|
||||
MediaQuery.of(context).size.height * playerMaxHeightPercentOfScreen;
|
||||
var percentExpanded = (playerProgress - playerMinHeight) /
|
||||
(playerMaxHeight - playerMinHeight);
|
||||
// Clamp the value between 0 and 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue