Skip to content

RKSlideSwitch

A stealth neon industrial slide switch for RadioKit. Features a heavy mechanical feel with ON/OFF engravings, a vibrant neon glow, and tactile grip ridges.

RKSlideSwitch({
required bool value,
required ValueChanged<bool> onChanged,
double width = 190.0,
double height = 82.0,
Color? activeColor,
bool enableHapticFeedback = true,
ValueChanged<bool>? onInteractionChanged,
double rotation = 0.0,
String onText = 'ON',
String offText = 'OFF',
String? label,
})
ParameterDescription
valueCurrent logical state (true = ON).
onChangedCalled when the switch toggles.
width / heightDimensions of the switch track. Default is 190x82.
activeColorColor of the thumb when active. Defaults to industrial orange neon.
enableHapticFeedbackEmit a medium haptic pulse on state change.
onInteractionChangedCallback for interaction start/end.
rotationVisual rotation of the widget in radians.
labelOptional text label displayed above the widget.
onTextText label for the ON state (stenciled). Defaults to ‘ON’.
offTextText label for the OFF state (stenciled). Defaults to ‘OFF’.
bool _isOn = false;
RKSlideSwitch(
value: _isOn,
onChanged: (v) => setState(() => _isOn = v),
);

The switch features a matte black pill-shaped casing with a recessed ultra-dark inner track and neon stenciled labels.