🐦 Text

Working with the Text widget

Example Code

file_type_dartlang main.dart
class MyApp extends StatelessWidget {
 @override
 Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: Center(
         child: Row(
           children: <Widget>[
             Expanded(
               child: Container(
                 height: 100,
                 child: Text(
                   'Hello World this is too long',
                   overflow: TextOverflow.ellipsis,
                   style: TextStyle(
                     fontSize: 50,
                     fontWeight: FontWeight.bold,
                   ),
                 ),
               ),
             ),
           ],
         ),
       ),
     ),
   );
 }
}

Questions? Let's chat

Open Discord