Files
flutter/lib
NiazSagor 6e95437301 fix: prevent FutureBuilder from reloading on every rebuild in NutritionalPlanScreen
Calling _loadFullPlan() directly inside build() caused a new Future to be
created on every rebuild (e.g. when opening the PopupMenuButton), which reset
the FutureBuilder to ConnectionState.waiting and showed the loading spinner
unnecessarily.

Fix: convert to StatefulWidget and initialize the Future once in
didChangeDependencies(), per Flutter's official FutureBuilder docs.

Ref: https://api.flutter.dev/flutter/widgets/FutureBuilder-class.html

Took 45 minutes
2026-03-04 21:58:07 +06:00
..
2026-01-14 14:59:07 +01:00
2026-01-13 16:26:17 +01:00
2026-02-27 12:03:31 +00:00
2026-03-02 20:18:32 +01:00
2025-05-16 17:47:36 +02:00