Skip to content

RKLed

LED indicator widget for RadioKit — features multiple shapes (circle, square, diamond, star) and operating states including solid, blink, and breathe effects.

RKLed({
RKLEDState state = RKLEDState.off,
RKLEDShape shape = RKLEDShape.circle,
double size = 24.0,
Color? color,
int timing = 500,
double rotation = 0.0,
String? label,
})
ParameterDescription
stateOperating state: off, on, blink, or breathe.
shapeVisual shape: circle, square, diamond, or star.
sizeDiameter/size of the LED.
colorOptional colour for the active state; defaults to theme primary.
timingAnimation speed in milliseconds for blink/breathe effects.
rotationVisual rotation of the widget in radians.
labelOptional text label displayed above the widget.
RKLed(
state: RKLEDState.blink,
color: Colors.green,
shape: RKLEDShape.diamond,
);