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 :: splash screen flutter null safety 
Dart :: custom marker google maps flutter 
Dart :: how to hide status bar phone flutter 
Dart :: vertically Center a Text in Flutter 
Dart :: dart epoch to datetime 
Dart :: google maps flutter maps style 
Dart :: Flutter how to get percentage of device height 
Dart :: flutter conver string to inr 
Dart :: how to send sms in flutter 
Dart :: How do I use hexadecimal color strings in Flutter? 
Dart :: prevent media query from rebuilding flutter widget 
Dart :: UserScrollNotification in flutter 
Dart :: dart string to int 
Dart :: excuse function after 2 second flutter 
Dart :: dart void 
Dart :: with keyword in dart 
Dart :: How to create maps by mentioning generic in flutter 
Dart :: how to effect container radius to children flutter 
Dart :: app bar color flutter 
Dart :: Try adding a case clause for the missing constant, or adding a default clause.dartmissing_enum_constant_in_switch. 
Dart :: flutter how to load a future function in main function 
Dart :: dart int to str 
Dart :: flutter center title ignore button 
Swift :: swift 5 delay dismiss view controller 
Swift :: regular expression for number less than 100 
Swift :: swift firebase read key in autoKey 
Swift :: cgrect swift 
Swift :: ionic Library not found for -lGoogleToolboxForMac 
Swift :: button in swiftui 
Swift :: swift read file 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =