Forms
Switch
An immediately applied on-or-off setting.
Interactive preview
Load the actual Flutter preview when needed. The first load may take a moment.
Locale updates direction, built-in messages and formatting. Applications provide their content translations. Isolate emails, phone numbers and identifiers from paragraph direction.
Configured code
Guidance
Use switches for settings that take effect immediately. Keep the label unchanged when toggled. Use role="switch" on a native checkbox and preserve its keyboard behaviour.