styled_widget 0.0.8 styled_widget: ^0.0.8 copied to clipboard
Simplifying your widget tree structure by defining widget using methods.
Example #
Text('some text')
.bold()
.textColor(Colors.green)
.alignment(Alignment.center)
For text with multiple styles:
Text.rich(TextSpan(
text: 'Some text',
children: [
TextSpan(text: ' and some more text')
.bold()
.textColor(Colors.yellow),
],
))