Flutter image_picker Camera/Gallery Bottom Sheet + Riverpod Frequency-Based Category Sorter

While building a civic reporting Flutter app, I ran into three UX problems in a row: The photo button only opened the gallery — no camera option Categories kept growing, making the grid scroll-heavy Switching to an emergency report target didn’t change the submit button color Here’s how I fixed each one. Problem 1: image_picker only opens the gallery The issue The photo button called pickImage(source: ImageSource.gallery) directly. Camera permissions were in place, but the UI never offered the option. ...

2026-03-09 · 5 min read · Seunghan
Privacy Policy Terms Disclaimer Contact