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 flotingactionbutton position 
Dart :: circle avatar from image asset flutter 
Dart :: flutter generate random color 
Dart :: ElevatedButton flutter style 
Dart :: flutter keyboard overflow when opens 
Dart :: flutter check if string is number 
Dart :: flutter rounded ElevatedButton 
Dart :: how to get whatsapp groups in app flutter programmatically 
Dart :: round to decimal places dart 
Dart :: hide keyboard flutter 
Dart :: scroll to top flutter 
Dart :: flutter array of strings 
Dart :: dart switch 
Dart :: slice string dart 
Dart :: flutter path join 
Dart :: how to pop all screens flutter 
Dart :: flutter text decoration underline color 
Dart :: dart string to color 
Dart :: containskey dart 
Dart :: linearprogressindicator flutter 
Dart :: dart list remove range 
Dart :: dart qoldiqni olish 
Dart :: flutter iOS & Android chnage package name & app name 
Dart :: remove status bar in flutter 
Dart :: badge flutter 
Dart :: dart power operator 
Dart :: snackbar flutter 
Dart :: transform widget flutter 
Dart :: flutter block rotation 
Dart :: popup keyboard automatically in flutter 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =