From b532ffaf02ad6d471a553d3a13d0f05f73b39242 Mon Sep 17 00:00:00 2001 From: OutdatedGuy Date: Thu, 11 Apr 2024 03:56:07 +0530 Subject: [PATCH] fix!: wrong storage container used to store the data (#18) --- lib/cached_video_player_plus.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/cached_video_player_plus.dart b/lib/cached_video_player_plus.dart index ac1354a..cb40c76 100644 --- a/lib/cached_video_player_plus.dart +++ b/lib/cached_video_player_plus.dart @@ -425,10 +425,8 @@ class CachedVideoPlayerPlusController /// Attempts to open the given [dataSource] and load metadata about the video. Future initialize() async { - await GetStorage.init( - 'cached_video_player_plus', - ); - final storage = GetStorage(); + await GetStorage.init('cached_video_player_plus'); + final storage = GetStorage('cached_video_player_plus'); late String realDataSource; bool isCacheAvailable = false;