Add the following tags under the dart file new Text( 'I am this test' style: TextStyle( color:const Color(0xffffff00), decoration: TextDecoration.lineThrough, // do not display decorative lines decoratio style: TextDecorationStyle.wavy, decorationColor: Colors.red, fontSize: 15.0, fontStyle: FontStyle.italic, fontFamily:'', fontWeight: FontWeight.w100, ), // between the paragraph style strutStyle: StrutStyle( fontSize: 25.0, height: 2, leading: 2.0, fontWeight: FontWeight.w100, fontStyle: FontStyle.normal, forceStrutHeight:true, ), ),
Use the Text components Flutter
Guess you like
Origin blog.csdn.net/BianHuanShiZhe/article/details/104749744
Recommended
Ranking