Skip to content

RKDisplay

A text display output widget for RadioKit — shows a single line of text inside a styled container.

RKDisplay({
required String text,
double width = 180.0,
double height = 40.0,
double fontSize = 14.0,
String fontFamily = 'monospace',
Color? textColor,
RKAxis orientation = RKAxis.horizontal,
ValueChanged<bool>? onInteractionChanged,
double rotation = 0.0,
String? label,
})
ParameterDescription
textThe string to display.
width / heightSize of the display container.
fontSizeFont size of the text.
fontFamilyFont family of the text (default is ‘monospace’).
textColorCustom text color. If null, uses the theme’s primary color.
orientationHorizontal or vertical layout (RKAxis).
onInteractionChangedTriggered when the user starts or stops touching the widget.
rotationVisual rotation of the widget in radians.
labelOptional text label displayed above the widget.
RKDisplay(
text: '12.34 V',
width: 120,
height: 40,
fontSize: 20,
orientation: RKAxis.horizontal,
);