Switch – Forui (original) (raw)
A toggle switch component that allows users to enable or disable a setting with a sliding motion.
Preview
Usage
FSwitch(...)
FSwitch(
label: const Text('Airplane Mode'),
description: const Text('Turn on airplane mode to disable all wireless connections.'),
error: const Text('Please turn on airplane mode.'),
semanticsLabel: 'Airplane Mode',
value: true,
onChange: (value) {},
enabled: true,
autofocus: true,
);
Examples
Disabled
Preview
Form
Preview
Last updated on
May 7, 2025