Articles → FLUTTER AND DART → Text widget in flutter
Text widget in flutter
Purpose
Example
import 'package:flutter/material.dart';
void main()
{
runApp(MyApp());
}
class MyApp extends StatelessWidget
{
Widget build(BuildContext context) {
return MaterialApp(home:Text("Hello", style: TextStyle(color: Colors.green, fontWeight: FontWeight.bold )),
);
}}
Output
Click to Enlarge