Component - Text widget and styling
The Text widget in Flutter displays a string of text with customizable style options like font size, color, and weight. It is used to show readable content on the screen.
The Text widget in Flutter displays a string of text with customizable style options like font size, color, and weight. It is used to show readable content on the screen.
Scaffold ├─ AppBar │ └─ Text └─ Center └─ Text
Text widget do in Flutter?Text widget?Text( 'Hello Flutter', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20), textAlign: TextAlign.center, )
Text( 'Welcome', style: TextStyle(fontSize: '20'), )
Text widget code correctly achieves this?Pass the test and this pattern moves unknown