Writing — Flutter and Dart articles by Ankit Saroj.
In-depth articles on Flutter, Dart, state management, performance optimisation and scalable app architecture — real-world learnings from production work.
- flutter
- dart
- framework
- javascript
- react-native
- flutter-local-storage
- sharedpreferences
- isolates-in-flutter
All articles
12 May 2025 · 3 min readStop Misusing SharedPreferences in Flutter: A Beginner-to-Advanced Rant
You: “I just need to store a flag that says if the user has seen onboarding.” Also you: accidentally creates a multi-isolate caching nightmare that…
- flutter
- dart
14 Apr 2025 · 4 min readMastering Error Handling in Dart with Either & Dio: A Functional Approach
Error handling in Dart, especially when working with asynchronous operations and packages like Dio, often becomes chaotic with deeply nested try-catch…
- either
- flutter
09 Apr 2025 · 2 min readMastering Pagination in Flutter: From ListView to Infinite Scroll with API Integration
Handling large datasets efficiently is crucial in Flutter apps to enhance performance and ensure a smooth user experience. Pagination not only optimizes…
- dart
- api
08 Apr 2025 · 5 min readMastering Freezed in Flutter: How to Write Immutable, Type-Safe, and Scalable Code Like a Pro
That was me, two projects ago. I’d been using Freezed just to avoid boilerplate in data models — copyWith, equality, hashCode, the usual suspects.
- dart
- flutter
04 Apr 2025 · 3 min readMastering Getters and Setters in Flutter: Write Cleaner, Safer, and Smarter Code
Why They’re More Than Just Fancy Syntax for Dart Classes
- dart
- getters-and-setters
