How could I align the following such that the starting icons and ending icons could stay where they are.
But make the text aligh to start. Meaning that 'Change Email Address' text remains as it is.
The text text 'Change Password', The starting letter C will aligh to The top C and so on?
Currently using Row's spaceBetween option. Also tried with Spacer between the widget's but that doesn't give me the control I want either.
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Icon(Icons.email),
// Spacer(flex: 2), // playing around with spacer and flex doesn't give the control I am looking for
Text('Change Email Address'),
Icon(Icons.keyboard_arrow_right),
],
),
SizedBox(height: 10),
Divider(),
SizedBox(height: 10),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween ,
children: [
Icon(Icons.lock),
Text('Change Password'),
Icon(Icons.keyboard_arrow_right),
],
),
Looking to make it look like following:
icon Change Email Address Icon
icon Change Password Icon
icon Change Add / Change Bio Icon
icon Notification Icon
icon Sign Out Icon
This is what I have currently. As you can see, the text is not aligned.
