"<p>Welcome to Flutter Widgets Playlist By DevBrains.</p> <p>In this video, we will discover Text Widget's main functionalities and why we need to implement this widget in our Flutter application. Also, we will see some useful properties that we need to know in order to be able to write our Text Widget.</p> <p>Here is the example shown in the video:</p> <pre> <code>import 'package:flutter/material.dart'; // ignore_for_file: prefer_const_constructors void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'DevBrains Flutter Demo', debugShowCheckedModeBanner: false, theme: ThemeData( primarySwatch: Colors.blue, ), home: Scaffold( appBar: AppBar( title: const Text("Text Widget"), ), body:Center( child: Column( children: [ const SizedBox(height: 36), Padding( padding: EdgeInsets.only(left:16.0), child: Text("TextOverflow.ellipsis",style: TextStyle(color: Colors.red,fontSize: 20,fontWeight: FontWeight.bold)), ), Container( decoration: BoxDecoration( border: Border.all(color: Colors.black) ), width: 120.0, child: Text( "This is a Long Text", overflow: TextOverflow.ellipsis, maxLines: 1, softWrap: false, style: TextStyle(color: Colors.black, fontWeight: FontWeight.bold, fontSize: 20.0), ), ), SizedBox(height: 36), Text("TextOverflow.fade",style: TextStyle(color: Colors.red,fontSize: 20,fontWeight: FontWeight.bold)), Container( decoration: BoxDecoration( border: Border.all(color: Colors.black) ), width: 120.0, child: Text( "This is a Long Text", overflow: TextOverflow.fade, maxLines: 1, softWrap: false, style: TextStyle(color: Colors.black, fontWeight: FontWeight.bold, fontSize: 20.0), ), ), SizedBox(height: 36), Text("TextOverflow.clip",style: TextStyle(color: Colors.red,fontSize: 20,fontWeight: FontWeight.bold)), Container( decoration: BoxDecoration( border: Border.all(color: Colors.black) ), width: 120.0, child: Text( "This is a Long Text", overflow: TextOverflow.clip, maxLines: 1, softWrap: false, style: TextStyle(color: Colors.black, fontWeight: FontWeight.bold, fontSize: 20.0), ), ), SizedBox(height: 36), Text("TextOverflow.visible",style: TextStyle(color: Colors.red,fontSize: 20,fontWeight: FontWeight.bold)), Container( decoration: BoxDecoration( border: Border.all(color: Colors.black) ), width: 120.0, child: Text( "This is a Long Text", overflow: TextOverflow.visible, maxLines: 1, softWrap: false, style: TextStyle(color: Colors.black, fontWeight: FontWeight.bold, fontSize: 20.0), ), ), // Padding( // padding: EdgeInsets.only(top:92), // child: Text("Simple Text",style: TextStyle(color: Colors.blue, fontWeight: FontWeight.bold,fontSize: 54.0), // ), // ), ], ), ), ), ); } }</code> </pre> <p> </p>"