Styled Text
Complete Code For Styled Text In Flutter
main.dart
import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, home: Scaffold( appBar: AppBar( backgroundColor: Colors.amber, title: Text('Styling text')), body: Center( child: _myWidget(context), ), ), ); } } // modify this widget with the example code below Widget _myWidget(BuildContext context) { String myString = 'I ❤️ Flutter'; print(myString); return Text( myString, style: TextStyle(fontSize: 30.0), ); }