Text

Overview

The CText widget displays a string of text with a single style. The string might break across multiple lines or might all be displayed on the same line depending on the layout constraints.

Widget API

The CText widget parameters are identical to the normal Text widget, however, it also has some extra parameters:

Property
Description

enable

Whether the widget is enabled or not.

  • Type: bool

  • Default: true

style

The style to use for this text when it's enabled.

  • Type: TextStyle?

  • Default: optional

disableStyle

The style to use for this text when it's disabled.

  • Type: TextStyle?

  • Default: optional

isRequired

If required, the text will be followed by red * .

  • Type: bool

  • Default: false

Last updated