Search
 
SCRIPT & CODE EXAMPLE
 

DART

underline text in flutter

Text(
  'Hello world',
  style: TextStyle(
    decoration: TextDecoration.underline,
  ),
)
Comment

text underline flutter

Text(
  'Hello world',
  style: TextStyle(
    decoration: TextDecoration.underline,
  ),
)
Comment

Add Underline Text in Flutter

Widget build(BuildContext context) 
    return Scaffold(
      appBar: AppBar(
        title: const Text("Text Underline"),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.spaceAround,
          children: const [
            Text("Hello World"),
            Text(
              "Hello World",
              style: TextStyle(
                decoration: TextDecoration.underline,
              ),
            ),
            Text.rich(
              TextSpan(
                text: 'Hello ',
                style: TextStyle(fontSize: 50),
                children: <textspan>[
                  TextSpan(
                      text: 'world',
                      style: TextStyle(
                        decoration: TextDecoration.underline,
                      )),
                ],
              ),
            ),
            Text(
              'Hello world',
              style: TextStyle(
                decoration: TextDecoration.underline,
                decorationStyle: TextDecorationStyle.dashed,
              ),
            ),
            Text(
              'Hello world',
              style: TextStyle(
                decoration: TextDecoration.underline,
                decorationStyle: TextDecorationStyle.dotted,
              ),
            ),
            Text(
              'Hello world',
              style: TextStyle(
                decoration: TextDecoration.underline,
                decorationStyle: TextDecorationStyle.double,
              ),
            ),
            Text(
              'Hello world',
              style: TextStyle(
                decoration: TextDecoration.underline,
                decorationStyle: TextDecorationStyle.wavy,
              ),
            ),
          ],
        ),
      ),
    );
  }
Comment

PREVIOUS NEXT
Code Example
Dart :: flutter timestamp to datetime 
Dart :: dart http image upload 
Dart :: assign hex to color dart 
Dart :: flutter component position absolute 
Dart :: flutter counter app with block library 
Dart :: dart enums 
Dart :: dart find in array 
Dart :: string to int in dart, string to double in dart, int to string in dart 
Dart :: flutter custom error widget 
Dart :: Drawer Header set text positon 
Dart :: flutter firebase 
Dart :: dart list remove item by text 
Dart :: excuse function after 2 second flutter 
Dart :: dart async stream 
Dart :: how to format timeofday in custom format flutter 
Dart :: flutter map 
Dart :: flutter how to get height and width of screen 
Dart :: dart svg drawer 
Dart :: container vs card flutter 
Dart :: flutter assign modify theme 
Dart :: vxstate listen not working flutter 
Dart :: How to call a method on the State Notifier Provider 
Dart :: rouned floating action button flutter 
Swift :: swift int to octal 
Swift :: ui alert swift yes no 
Swift :: random element from array swift 
Swift :: swift uiswitch change size 
Swift :: connect old iphone with latest xcode 12 or 13 
Swift :: swift change status bar color 
Swift :: swift qrcode scanner 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =