I want to make RichText align to the left.
I tried use Container, Row, Column, Flexible, Expanded widgets, but nothing helped me.
Future getAuthorsDialog(BuildContext context) {
return showDialog<String>(
context: context,
builder: (BuildContext context) => Dialog(
insetPadding: const EdgeInsets.symmetric(vertical: 90.0),
child: Column(
children: <Widget>[
const SizedBox(height: 8.0),
RichText(
textAlign: TextAlign.left,
text: const TextSpan(
text: 'Mod: ',
style: TextStyle(
fontSize: 12.0,
fontWeight: FontWeight.bold
),
children: [
TextSpan(
text: 'Tester',
style: TextStyle(
fontSize: 12.0,
fontWeight: FontWeight.w600
)
),
]
)
),
]),
),
);
}