A four-step wizard is the easiest screen in the app to demo and the easiest one to get quietly wrong. Mine looked finished in a day and then took another week of fixing things that only show up when a real person types at real speed on a real phone.
These are the three places a multi-step form lies to you, plus the state machine that stops it. All of the code below is from a zero-dependency Flutter form engine I built and tested (282 tests, flutter analyze clean).
1. The async check that answers about text the user already deleted
The scenario: a postcode field that asks your server whether the address is in the service area.
The naive version is a debounce plus an await :
onChanged : ( value ) { _debounce ? . cancel ( ) ; _debounce = Timer ( const Duration ( milliseconds : 450 ) , ( ) async { final error = await api .β¦