Title: Flutter text left alignment
Tags: flutter;flutter-layout
Question: I'm trying to align all the text to left. However, it's in the middle always as you can see the image below. I've tried using Align widget and setting textAlign property on Text widget to TextAlign.left but no luck.
card.dart
children: <Widget&gt;[
Card(
elevation: 2,
child: ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(4)),
child: Image.network('https://loremflickr.com/100/100'),
),
),
Padding(
padding: const EdgeInsets.only(left: 8),
child: Column(
children: <Widget&gt;[
Align(
alignment: Alignment.centerLeft,
child: Text(
'Marry Jane',
textAlign: TextAlign.left,
style: TextStyle(fontSize: 16),
),
),
Align(
alignment: Alignment.centerLeft,
child: Text(
'Make-up Artist',
textAlign: TextAlign.left,
style: TextStyle(fontSize: 14, color: Color(0xff666666)),
),
),
Row(
children: <Widget&gt;[
Text(
'3.5',
textAlign: TextAlign.left,
style: TextStyle(fontSize: 18, color: Color(0xff666666)),
),
Icon(FontAwesomeIcons.starHalf)
],
)
],
),

Here is the accepted answer: Have you tried giving the Column CrossAxisAlignment.start?
Row(
children: <Widget&gt;[
Card(
elevation: 2,
child: ClipRRect(
borderRadius: BorderRadius.all(Radius.circular(4)),
child: Image.network('https://loremflickr.com/100/100'),
),
),
Padding(
padding: const EdgeInsets.only(left: 8),
child: Column(
/// Add this
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget&gt;[
Text(
'Marry Jane',
style: TextStyle(fontSize: 16),
),
Text(
'Make-up Artist',
style: TextStyle(fontSize: 14, color: Color(0xff666666)),
),
Text(
'3.5',
style: TextStyle(fontSize: 18, color: Color(0xff666666)),
),
],
),
)
],
Comment for this answer: Also you could clean all the Alignment and textAlign. I have edited the answer
Comment for this answer: It worked but I don't understand why its center default. I'm used to Android Layout, just having difficult times sometimes, thanks.


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2020:00:01/28/20', 'FavoriteCount': 1.0, 'PostTypeId': 1, 'Tags': '<flutter><flutter-layout>', 'Title': 'Flutter text left alignment', 'ViewCount': 19301, 'id': 59940790, 'user_AboutMe': '<p>Love to do new things as much as possible.</p>\n', 'user_AccountId': 17240319.0, 'user_DisplayName': 'Burak', 'user_Reputation': 1371.0, 'user_Views': 46.0, 'user_id': 12482756.0}}