Switches to memoized

This commit is contained in:
Marty Fuhry
2024-03-05 14:44:58 -05:00
parent 1c59dad79c
commit 234e6741de
2 changed files with 25 additions and 106 deletions
@@ -45,7 +45,7 @@ class VideoViewerPage extends HookConsumerWidget {
),
showControls: showControls && !isMotionVideo,
hideControlsTimer: hideControlsTimer,
);
).data;
// The last volume of the video used when mute is toggled
final lastVolume = useState(0.0);