main.dart
import 'package:flutter/material.dart';
void main(){
runApp(
MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text("Flutter - Text Decoration Style")
),
body: const Center(
child: Text(
"Lorem Ipsum is simply dummy text of the printing"
" and typesetting industry.",
style: TextStyle(
fontSize: 24,
color: Colors.pink,
decoration: TextDecoration.underline,
decorationStyle: TextDecorationStyle.dotted
),
textAlign: TextAlign.center,
),
),
),
)
);
}
More flutter tutorials
- flutter – How to change AppBar height
- flutter – How to get AppBar height
- flutter – Full screen display
- flutter – Container content alignment
- flutter – How to change Text underline color
- flutter – How to change Text underline thickness
- flutter – Space between Text and underline
- flutter – How to add shadow to the Text
- flutter – How to add a border to Text
- flutter – How to add stroke to Text
- flutter – Text decoration
- flutter – Gradient Text
- flutter – Text gradient background
- flutter – How to set Text letter spacing
- flutter – How to generate random bool