Text Widget in Flutter

The Text widget displays a string of text with a single style.


Example:

import 'package:flutter/material.dart';

void main() {

  runApp(

    const Text(

      'Hello World',

      textDirection: TextDirection.ltr,

      textAlign: TextAlign.center,

      style: TextStyle(

        color: Colors.blue,

      ),

    ),

  );


Video Link:

 
Post a Comment (0)
Previous Post Next Post