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!