Hi Pooja Kshetri,

Thanks for reading, and for your question.

The SharedPreferences file is not created inside this project. It’s from a third party library developed by the Flutter team with the sole purpose of providing a persistent store for simple data.

To resolve the error related to this file, please go to the pubspec.yaml file of your project and enter shared_preferences: ^0.5.7line under the dependencies section.

For more details about this library you may also visit it’s pub.dev page at https://pub.dev/packages/shared_preferences

Please note, there is one more dependency which needs to be placed inside pubspec.yaml dependencies — rxdart: ^0.23.1 .

This is used to access the RxDart in this project.

Hope this helps. Have a lovely day!

Written by

DLT Labs is a global leader in Distributed Ledger Technology and Enterprise Products. To know more, head over to: https://www.dltlabs.com/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store