GSAccordionTitle class
Constructors
GSAccordionTitle.new ({Key ? key , required String text , GSStyle ? style , Locale ? locale , int ? maxLines , TextOverflow ? overflow , Color ? selectionColor , String ? semanticsLabel , bool ? softWrap , StrutStyle ? strutStyle , TextAlign ? textAlign , TextDirection ? textDirection , TextHeightBehavior ? textHeightBehavior , TextScaler ? textScaler , TextWidthBasis ? textWidthBasis , bool bold = false , bool highlight = false , bool isTruncated = false , bool italic = false , bool strikeThrough = false , bool underline = false })
const
Properties
bold
→ bool
If true
, makes the text bold. Defaults to false
.
final
hashCode
→ int
The hash code for this object.
no setter inherited
highlight
→ bool
If true
, highlights the text. This could be used to bring attention to
specific parts of the content. Defaults to false
.
final
isTruncated
→ bool
Determines if the text should be truncated with an ellipsis when it overflows.
Defaults to false
, meaning text will wrap by default.
final
italic
→ bool
If true
, renders the text in italic. Defaults to false
.
final
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
locale
→ Locale ?
The locale used for the text, affecting how it's formatted and displayed.
final
maxLines
→ int ?
The maximum number of lines for the text to span. Overflowing text will be
truncated based on the overflow property. If null, text can span an unlimited
number of lines.
final
overflow
→ TextOverflow ?
How visual overflow should be handled. Defaults to TextOverflow.clip if not specified.
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
selectionColor
→ Color ?
The color to use when painting the selection. Defaults to null, in which case
the selection color of the environment is used.
final
semanticsLabel
→ String ?
An optional semantic label for the text, providing a description for screen readers.
final
softWrap
→ bool ?
Whether the text should break at soft line breaks. If false, the glyphs in the
text will be positioned as if there was unlimited horizontal space.
final
strikeThrough
→ bool
If true
, adds a strikethrough line to the text. Defaults to false
.
final
strutStyle
→ StrutStyle ?
The strut style to use. Strut style defines the minimum height a line can be
relative to the font size of the text.
final
style
→ GSStyle ?
Custom GSConfigStyle to apply to the text. This allows for further customization
of text appearance, specify using textStyle inside GSConfigStyle .
final
text
→ String
The text content of the accordion title. This is the primary label displayed
on the accordion header, serving as a summary or introduction to the
accordion's collapsible content.
final
textAlign
→ TextAlign ?
How the text should be aligned horizontally.
final
textDirection
→ TextDirection ?
The directionality of the text. This decides how textAlign values like
TextAlign.start and TextAlign.end are interpreted.
final
textHeightBehavior
→ TextHeightBehavior ?
The behavior of the text's height. This can be used to modify how text height
is calculated.
final
textScaler
→ TextScaler ?
final
textWidthBasis
→ TextWidthBasis ?
Determines how the width of the text is measured.
final
underline
→ bool
If true
, adds an underline to the text. Defaults to false
.
final
gluestack_ui 0.1.0-beta.4