3 Ways to Align Text in Flutter

1. TextAlign in Text()

Text(
“text”,
textAlign: TextAlign.left //Optional property
)

2. Align ()

Align(
alignment: Alignment.centerLeft, //optional property
child: Text(…)
)

3.Container ()

child: Container(
alignment: Alignment.centerLeft, //optional property
width: double.infinity,
child: Text(…)
)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store