adsonpleal / shared_preferences_tools

Shared preferences devtools extension for Flutter
7 stars 0 forks source link

Library matching package:shared_preferences_tools/src/shared_preferences_tools_debug.dart not found #4

Closed fmwww closed 3 weeks ago

fmwww commented 3 months ago

WX20240519-091808@2x

themightychris commented 2 months ago

Anyone figure this out? I just installed the package today and immediately ran into this too

adsonpleal commented 3 weeks ago

Sorry the delay, somehow I wasn't getting the new issues notifications.

Did you follow the Getting started section?

You need to do this before using the extension:

Future<void> main() async {
  await SharedPreferencesToolsDebug.init();
  runApp(const YourApp());
}

BTW, we plan to merge this extension to the shared_preferences package, so you won't need to do this in the future.

You can check the open PR here.

adsonpleal commented 3 weeks ago

I also just pushed the 1.1.0 version, so there is no need to add await SharedPreferencesToolsDebug.init(); anymore.