TextStyle constructor
const
TextStyle({
- Input<
String> ? backgroundColor, - Input<
TextStyleFontSize> ? fontSize, - Input<
TextStyleHorizontalAlignment> ? horizontalAlignment, - Input<
TextStylePadding> ? padding, - Input<
TextStylePointerLocation> ? pointerLocation, - Input<
String> ? textColor, - Input<
TextStyleVerticalAlignment> ? verticalAlignment,
Creates a new TextStyle.
backgroundColor The background color as a hex string. "#RRGGBB" or "#RGB"
fontSize Font sizes for both the title and content. The title will still be larger relative to the content.
horizontalAlignment The horizontal alignment of both the title and content
padding The amount of padding around the widget
pointerLocation The pointer location for this widget (also sometimes called a "tail")
textColor The text color as a hex string. "#RRGGBB" or "#RGB"
verticalAlignment The vertical alignment of both the title and content
Implementation
const TextStyle({
this.backgroundColor,
this.fontSize,
this.horizontalAlignment,
this.padding,
this.pointerLocation,
this.textColor,
this.verticalAlignment,
});