Skip to main content
Logo Appt Light

Input predictable on Flutter

Whenever a user provides input, there should be no change of context. Example of changing context include, but are not limited to: automatically submitting data, opening a new screen or moving to another element. Input should have predictable effects.

In Flutter, be careful when using onChanged callbacks. Do not trigger a change of context when text changes.

  onChanged: (text) {
    // Do not change context


Let us know!