OpenNutriTracker icon indicating copy to clipboard operation
OpenNutriTracker copied to clipboard

When setting the "base quantity" field, it loses focus after each input

Open TomAFrench opened this issue 8 months ago • 1 comments

When setting the "base quantity" field, after each number input the keyboard disappears and I need to reselect the textbox. Something is causing it to lose focus each time.

TomAFrench avatar May 18 '25 20:05 TomAFrench

I imagine that this setState call is the root cause:

https://github.com/simonoppowa/OpenNutriTracker/blame/bb834d5df7f8b885389271e2d3ca06b83c23834e/lib/features/edit_meal/presentation/edit_meal_screen.dart#L60-L64

TomAFrench avatar May 18 '25 21:05 TomAFrench