fixing issues with sync between controls

This commit is contained in:
Marty Fuhry
2024-03-05 14:21:26 -05:00
parent 3ed05a9b3e
commit 8784426c9e
5 changed files with 27 additions and 7 deletions
@@ -31,6 +31,7 @@ ChewieController? useChewieController(
}) {
return use(
_ChewieControllerHook(
keys: [asset],
asset: asset,
placeholder: placeholder,
showOptions: showOptions,
@@ -66,6 +67,7 @@ class _ChewieControllerHook extends Hook<ChewieController?> {
final VoidCallback? onVideoEnded;
const _ChewieControllerHook({
super.keys,
required this.asset,
this.controlsSafeAreaMinimum = const EdgeInsets.only(
bottom: 100,
@@ -94,7 +96,7 @@ class _ChewieControllerHookState
VideoPlayerController? videoPlayerController;
@override
void initHook() async {
void initHook() {
super.initHook();
_initialize().whenComplete(() => setState(() {}));
}