Patches Welcome #4: I Needed My Dependency to Shut Down Cleanly, So I Patched It
by Sagar Ghag dev.to
2 min read
My app's GPS tracking service kept running after an FCM silent push triggered auto-punchout. The app was killed. The background handler ran, punched the user out, and tried to stop the GPS service. The service ignored it. Battery drained until the user manually opened the app. The problem wasn't in my code. It was in Tracelet, the GPS tracking library I depend on. Why Tracelet.stop() doesn't work…
More like this
- Package
flutter_simple_dependency_injection
A super simple dependency injection implementation for flutter that behaviours like any normal IOC container and does not rely on mirrors
View on github.com - Article 4 min read
Patches Welcome #1: Apple Quietly Broke Flutter Builds, and Nobody Noticed for 10 Months
by Sagar Ghag
flutter build ios started failing on my machine with a permissions error pointing at a build output directory. The actual problem was three layers deeper: Apple silently removed GNU rsync from macOS 1...
Read on dev.to - Article 2 min read
Patches Welcome #3: The Checkbox That Stole Focus
by Sagar Ghag
A user types into a text field. Their onChanged programmatically toggles a checkbox. The text field loses focus mid-keystroke. The keyboard might dismiss on mobile. The user's cursor is gone and they...
Read on dev.to - Article 2 min read
Patches Welcome #2: A D-pad Bug That Only Showed Up When You Pressed Up
by Sagar Ghag
Pressing Up on an Android gamepad fired dpadDown. Pressing Down fired dpadUp. Left and Right worked fine. The bug lived in a single sign comparison, but finding which sign comparison took longer than...
Read on dev.to