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


Posted By  -  Karan Gupta
 
Posted On  -  Monday, August 12, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250