Skip to content
Articles
Article

Building a Flutter Shopping App — Part 5: Cleaning Up DI with SharedPreferencesGetter

by Yadnesh Teli dev.to

2 min read

Series 1 of 2 — Part 5 of 5 Building a Flutter Shopping App — Part 5: Cleaning Up DI with SharedPreferencesGetter Series: Building a Flutter Shopping App — From Zero to Architecture After the MVVM refactor in Part 4, the architecture was solid. But there was one remaining issue with how I was passing SharedPreferences instances into repositories — it was repetitive and easy to get wrong. The fix …

Forum

Questions about this, or something to add?

Discuss on the forum

Report this · Wrote this? Claim it

FlutterX is supported by