Class Text
Inheritance
System.Object
Text
Syntax
public class Text : StatelessWidget
Constructors
Text(String, Key, TextStyle, Nullable<TextAlign>, Nullable<Boolean>, Nullable<TextOverflow>, Nullable<Single>, Nullable<Int32>)
Declaration
public Text(string data, Key key = null, TextStyle style = null, TextAlign? textAlign = default(TextAlign? ), bool? softWrap = default(bool? ), TextOverflow? overflow = default(TextOverflow? ), float? textScaleFactor = default(float? ), int? maxLines = default(int? ))
Parameters
Type |
Name |
Description |
System.String |
data |
|
Key |
key |
|
TextStyle |
style |
|
System.Nullable<TextAlign> |
textAlign |
|
System.Nullable<System.Boolean> |
softWrap |
|
System.Nullable<TextOverflow> |
overflow |
|
System.Nullable<System.Single> |
textScaleFactor |
|
System.Nullable<System.Int32> |
maxLines |
|
Fields
data
Declaration
public readonly string data
Field Value
Type |
Description |
System.String |
|
maxLines
Declaration
public readonly int? maxLines
Field Value
Type |
Description |
System.Nullable<System.Int32> |
|
overflow
Declaration
public readonly TextOverflow? overflow
Field Value
softWrap
Declaration
public readonly bool? softWrap
Field Value
Type |
Description |
System.Nullable<System.Boolean> |
|
style
Declaration
public readonly TextStyle style
Field Value
textAlign
Declaration
public readonly TextAlign? textAlign
Field Value
textScaleFactor
Declaration
public readonly float? textScaleFactor
Field Value
Type |
Description |
System.Nullable<System.Single> |
|
textSpan
Declaration
public readonly TextSpan textSpan
Field Value
Methods
build(BuildContext)
Declaration
public override Widget build(BuildContext context)
Parameters
Returns
Overrides
debugFillProperties(DiagnosticPropertiesBuilder)
Declaration
public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
Parameters
Overrides
rich(TextSpan, Key, TextStyle, Nullable<TextAlign>, Nullable<Boolean>, Nullable<TextOverflow>, Nullable<Single>, Nullable<Int32>)
Declaration
public static Text rich(TextSpan textSpan, Key key = null, TextStyle style = null, TextAlign? textAlign = default(TextAlign? ), bool? softWrap = default(bool? ), TextOverflow? overflow = default(TextOverflow? ), float? textScaleFactor = default(float? ), int? maxLines = default(int? ))
Parameters
Type |
Name |
Description |
TextSpan |
textSpan |
|
Key |
key |
|
TextStyle |
style |
|
System.Nullable<TextAlign> |
textAlign |
|
System.Nullable<System.Boolean> |
softWrap |
|
System.Nullable<TextOverflow> |
overflow |
|
System.Nullable<System.Single> |
textScaleFactor |
|
System.Nullable<System.Int32> |
maxLines |
|
Returns