textDirection: TextDirection.ltr
),
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text("⽂本⽅向 l",
textDirection: l
),
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text("⽂本对齐⽅式 ",
textAlign: ,
),
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text("⽂本对齐⽅式 TextAlign.left",
textAlign: TextAlign.left,
)
,
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text("⽂本对齐⽅式 TextAlign.right",
textAlign: TextAlign.right,
),
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text("⽂本对齐⽅式 TextAlign.justify 两端对齐",
textAlign: TextAlign.justify,
),
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text("⽂本对齐⽅式 TextAlign.start",
textAlign: TextAlign.start,
),
)
,
Container(
text align centermargin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text("⽂本对齐⽅式 d",
textAlign: d,
),
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text(
"softWrap: true    是否⾃动换⾏是否⾃动换⾏是否⾃动换⾏是否⾃动换⾏是否⾃动换⾏是否⾃动换⾏是否⾃动换⾏是否⾃动换⾏是否⾃动换⾏",                softWrap: true,
),
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text(
"softWrap: false    是否⾃动换⾏是否⾃动换⾏是否⾃动换⾏是否⾃动换⾏是否⾃动换⾏是否⾃动换⾏是否⾃动换⾏是否⾃动换⾏是否⾃动换⾏",                softWrap: false,
),
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text(
"TextOverflow.clip    ⽂字超出屏幕之后的处理⽅式⽂字超出屏幕之后的处理⽅式⽂字超出屏幕之后的处理⽅式",
"TextOverflow.clip    ⽂字超出屏幕之后的处理⽅式⽂字超出屏幕之后的处理⽅式⽂字超出屏幕之后的处理⽅式",
overflow: TextOverflow.clip,
),
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text(
"TextOverflow.ellipsis    ⽂字超出屏幕之后的处理⽅式⽂字超出屏幕之后的处理⽅式⽂字超出屏幕之后的处理⽅式",
overflow: TextOverflow.ellipsis,
),
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text(
"TextOverflow.fade    ⽂字超出屏幕之后的处理⽅式⽂字超出屏幕之后的处理⽅式⽂字超出屏幕之后的处理⽅式",
overflow: TextOverflow.fade,
),
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text("textScaleFactor  字体缩放倍数",
textScaleFactor: 2.0,
),
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text(
"maxLines  ⽂本最多显⽰多少⾏,可以和overflow: TextOverflow.ellipsis⼀起使⽤,在最后⼀⾏末尾显⽰省略号⽂本最多显⽰多少⾏⽂本最多显⽰多少⾏⽂本最多显⽰多                maxLines: 2,
overflow: TextOverflow.ellipsis,
),
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text("color颜⾊,fontSize⼤⼩",
style: TextStyle(
color: Color(0xffff0000),
fontSize: 18.0
),
),
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text("fontWeight 字体粗细  w100 ~ w900 和粗体与正常,正常是w400,粗体是w700",
style: TextStyle(
fontWeight: FontWeight.bold
),
),
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text("fontStyle ⽂字样式,normal正常, italic 斜体",
style: TextStyle(
fontStyle: FontStyle.italic
),
),
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text(
"对⽐wordSpacing单词间隙, letterSpacing字母间隙, Hello World Hello World",
style: TextStyle(
),
)
,
),
Container(
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text(
"对⽐wordSpacing单词间隙, letterSpacing字母间隙, Hello World Hello World",
style: TextStyle(
wordSpacing: 10.0,
letterSpacing: 1.0,
)
,
),
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text(
"对⽐wordSpacing单词间隙, letterSpacing字母间隙, Hello World Hello World",
style: TextStyle(
wordSpacing: 1.0,
letterSpacing: 5.0,
)
,
),
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text(
"textBaseline Hello World Hello World Hello World Hello World \n哦哦哦哦哦哦哦哦哦哦哦哦哦哦哦",
style: TextStyle(
textBaseline: TextBaseline.alphabetic
),
)
,
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text(
"textBaseline Hello World Hello World Hello World Hello World \n哦哦哦哦哦哦哦哦哦哦哦哦哦哦哦",
style: TextStyle(
textBaseline: TextBaseline.ideographic
),
),
)
,
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text(
"height会乘以fontSize做为⾏⾼",
style: TextStyle(
height: 2.0,
),
),
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text(
"height会乘以fontSize做为⾏⾼",
style: TextStyle(
height: 1.0,
),
),
),
Container(
margin: ly(bottom: 10.0),
color: Color.fromARGB(255, 241, 241, 241),
child: Text(
"decoration四种下划线underline、lineThrough删除线、overline上划线,默认是⽆;decorationColor线的颜⾊;⽂字装饰的风格  dashed虚线⼤间隔,dotted虚线⼩间隔                style: TextStyle(
fontSize: 20.0,
decoration: TextDecoration.lineThrough,
decorationColor: Color(0xffff0000),
decorationStyle: TextDecorationStyle.solid,
),