mirror of
https://github.com/foss42/apidash.git
synced 2026-03-13 09:50:32 +08:00
EnvironmentTriggerFieldState.dispose() was unconditionally disposing the controller and _focusNode, even when they were passed in from a parent widget. This caused a double-dispose when EnvHeaderField also disposed its own focusNode. Fixed by only disposing resources that EnvironmentTriggerFieldState created itself (i.e., when widget.controller or widget.focusNode is null). This is the standard Flutter pattern for owned vs. borrowed resources.