Debasmita Sarkar (@The__Debo) header
Debasmita Sarkar (@The__Debo) profile picture

Expert Flutter Developer | GDE @Google | Speaker | Tech Savvy | Mobile App Developer | Artist

Pune, India
Joined January 2019
Flutter 3.50 broke my notification taps on Android 13, and nothing showed up in the logs 🤫 My app's own notification was supposed to open checkout. On Android 13 it opened the home screen instead. Android 16 was fine. What I found and the fix 👇 medium.com/p/57003df36128
3
24
1,252
I timed this on my Android phone! 10,000 native calls took about 1 second through a platform channel and 15 ms through the direct binding 🏎️ medium.com/p/61fe0ad71261
Say goodbye to platform channel boilerplate & call native code directly from Dart → goo.gle/4iBeepH Explore GDE @AbhishekDoshi26's guide to get: 🔗 Type-safe Java, Kotlin, & Objective-C bindings 🚀 Faster performance w/o platform thread hops 🧩 Less boilerplate w/ Pigeon preview support
2
5
768
UIScene in an inherited flutter app, the part that bites: your AppDelegate deep link handler doesn't crash. it just stops being called. move it to a SceneDelegate and call super. medium.com/p/6705d051d073
97
walked an inherited flutter ios app to UIScene before xcode 27: manifest only: crash at launch (nil window) implicit engine: app works, my AppDelegate deep link silently never fires SceneDelegate subclass: fixed steps + plugin audit script: medium.com/p/6705d051d073 @FlutterDev
1
146
the api key you pass with --dart-define is in your apk in plain text. obfuscation doesn't touch it. the fix is a server that holds the key and picks the model + max_tokens. where does yours live? medium.com/p/7d484901ef2c
83
flutter 3.50's --no-deprecated-js-interop: green build. a german browser got "Hello" 🙃 dart.library.html turns false, so easy_localization, hive and awesome_notifications quietly break. --wasm too @FlutterDev @dart_lang which package broke for you? medium.com/p/9123cc454b60
92
--dart-define doesn't hide your api key 🔑 release build, --obfuscate on, fake key: web: one grep on main.dart.js android: strings on the libapp binary plain text both times. fix: a 40-line dart proxy medium.com/p/7d484901ef2c where does your key live? @FlutterDev @dart_lang
20
1,384
100 phones hit the same 529. no jitter: they all retry in the same 100 ms, again and again full jitter: the worst 100 ms drops from 100 requests to 34 that's the whole case for random backoff. medium.com/p/57b1ea87e701
111
same native call, two ways, on my android phone: platform channel ~100 µs flutter 3.50 jnigen binding ~2 µs 10,000 calls: 1 s vs 15 ms 🏎️ and the direct one is sync @FlutterDev @dart_lang which channel do you call the most? medium.com/p/61fe0ad71261
4
4
49
1,870
migrated to material_ui, analyzer green, and my menu button vanished 🫥 the package was still on flutter/material.dart. 31 of the top 100 pub.dev packages still are. 4 traps + a script to find yours: medium.com/p/d04e2feab6c7 which of yours is stuck? @FlutterDev @dart_lang
1
5
1,066
cocoapods trunk goes read-only on 2 dec. before then: build your flutter ios app once and copy the "do not support swift package manager" list. that list is your migration ticket. mine was ml kit. which plugin is on yours? medium.com/p/5e80804f7a6c
1
1
188
your flutter web users may still be on last week's build 🙃 flutter 3.50 added --web-content-hash. same app, two deploys: plain build stayed stale, hashed build updated on reload @FlutterDev @dart_lang ever had to say "try a hard refresh"? medium.com/p/e97b7daea8f9
1
93
before you wrap every jsonDecode in an isolate, measure. 29kb: 0.3 ms on the main isolate, 0.8 ms in an isolate. slower. 2.9mb: 13.7 ms stall → 3.3 ms. that's where it pays. so gate it on size. what's your threshold? medium.com/p/1db99b9cbb47
1
104
flutter 3.50 favourites: blur behind a dialog with barrierBuilder, readable reduce motion, rounded corners for whole slivers, one command to material_ui (then pin it, "any" is not a version) which one are you trying first? @FlutterDev @dart_lang medium.com/@debasmitasarkar.…
1
2
236
all the code from my flutter + ai articles, in one public repo. 10 folders, fake clients, no api key, 40 tests. building it i found 2 missing imports and a string that didn't compile in my own articles 😅 which folder next? @FlutterDev @dart_lang github.com/debasmitasarkar/f…
74
package:http's RetryClient only retries 503 by default 😅 claude's overloaded is 529, rate limits are 429 so i wrote a dart retry with full jitter: 100 synced clients, worst 100 ms went 100 → 34 requests medium.com/p/57b1ea87e701 what do you retry? @FlutterDev @dart_lang
86
300ms debounce is a search-box number. a model takes ~1.5 s, so the suggestion lands after the user typed past it. ai autocomplete: wait 150ms after a space, 700ms mid-word, cancel the in-flight call when they diverge. what's your debounce? medium.com/p/08756e7b5702
87
same json schema, sent to gemini and claude. maxLength: gemini's docs say it's stripped, no error. claude's docs say 400. schema for shape, dart for rules. both clients + offline tests: medium.com/p/46cd534d6407 which one do you use for structured output? @FlutterDev @dart_lang
91
my whole "swap gemini for claude" abstraction is two members: String get name; Stream<String> ask(String prompt); no history, no tools on day one. a stream, because the chat widgets already know how to eat chunks. hand them a Future and you get a 4-second spinner.
105
user taps back mid-answer and your flutter app keeps streaming into a dead widget. two things need cancelling: the dio CancelToken (the http request) and the StreamSubscription. both in dispose(). the first is the one everyone forgets, and the one that costs money.
1
137