1.text
style: TextStyle(
color: Color(0xFFFF00FF),
decoration: TextDecoration.underline,
decorationColor: Color(0xFF334433),
decorationStyle: TextDecorationStyle.double,
fontWeight: FontWeight.w500,
fontStyle: FontStyle.italic,
textBaseline: TextBaseline.alphabetic,
fontSize: 50,
letterSpacing: 2,
wordSpacing: 10,
height: 1.2,
background: pg,
),
textAlign: TextAlign.start,
textDirection: TextDirection.ltr,
softWrap: false,
semanticsLabel: "Text semanticsLabel",
Widget getTextRich() {
List children = new List<TextSpan>();
children.add(TextSpan(text: "Chen", style: TextStyle(color: Colors.black)));
children.add(TextSpan(text: "Ying", style: TextStyle(color: Colors.red)));
children.add(TextSpan(text: "you", style: TextStyle(color: Colors.blue)));
List children1 = new List<TextSpan>();
children1.add(
TextSpan(text: " Is ", style: TextStyle(color: Colors.blueAccent)));
children1.add(
TextSpan(text: "Androider", style: TextStyle(color: Colors.amber)));
children.add(
TextSpan(children: children1, style: TextStyle(color: Colors.blue)));
TextSpan textSpan = new TextSpan(children: children);
return Text.rich(
textSpan,
);
}