easy_localization icon indicating copy to clipboard operation
easy_localization copied to clipboard

I had a [getAll] error related to SharedPreference while using the package

Open IdrisAdeyemi01 opened this issue 2 years ago • 1 comments

IdrisAdeyemi01 avatar Sep 03 '22 09:09 IdrisAdeyemi01

Screenshot 2022-09-03 at 10 41 00 I had to add `SharedPreferences.setMockInitialValues({});` before getting the instance of SharedPreference before it works.

It'd be fine if an update is made, fixing this.

IdrisAdeyemi01 avatar Sep 03 '22 09:09 IdrisAdeyemi01

Am getting the same issue but not sure why? Note: this error only happens with IOS

Using version 3.0.1

Lawati97 avatar Mar 15 '23 08:03 Lawati97

Easy_localization has a native dependency because it uses shared_preferences to store stuff. If you add easy_loclization to your project, you might need to restart the app and eventually run pod install, so the dependencies are loaded.

@IdrisAdeyemi01 @Lawati97 does this issue persist?

bw-flagship avatar May 13 '23 06:05 bw-flagship