TextStyleConfiguration constructor
const
TextStyleConfiguration({
- TextStyle text = const TextStyle(fontSize: 16.0),
- TextStyle bold = const TextStyle(fontWeight: FontWeight.bold),
- TextStyle italic = const TextStyle(fontStyle: FontStyle.italic),
- TextStyle underline = const TextStyle(decoration: TextDecoration.underline),
- TextStyle strikethrough = const TextStyle(decoration: TextDecoration.lineThrough),
- TextStyle href = const TextStyle(color: Colors.lightBlue, decoration: TextDecoration.underline),
- TextStyle code = const TextStyle(color: Colors.red, backgroundColor: Color.fromARGB(98, 0, 195, 255)),
- TextStyle autoComplete = const TextStyle(color: Colors.grey),
- bool applyHeightToFirstAscent = false,
- bool applyHeightToLastDescent = false,
Implementation
const TextStyleConfiguration({
this.text = const TextStyle(fontSize: 16.0),
this.bold = const TextStyle(fontWeight: FontWeight.bold),
this.italic = const TextStyle(fontStyle: FontStyle.italic),
this.underline = const TextStyle(
decoration: TextDecoration.underline,
),
this.strikethrough = const TextStyle(
decoration: TextDecoration.lineThrough,
),
this.href = const TextStyle(
color: Colors.lightBlue,
decoration: TextDecoration.underline,
),
this.code = const TextStyle(
color: Colors.red,
backgroundColor: Color.fromARGB(98, 0, 195, 255),
),
this.autoComplete = const TextStyle(
color: Colors.grey,
),
this.applyHeightToFirstAscent = false,
this.applyHeightToLastDescent = false,
});