Issue
I want my checkBox and Remember password on the left screen and forgot Password on the right Screen..TextAlign is not working since it require space and using SizedBox won't be dynamic. What is the best way
Row(
children: [
Checkbox(
value: isChecked,
onChanged: (bool? value) {
setState(() {
isChecked = value!;
});
},
),
Text(
'Remember Password',
),
Text(
'Forgot Password',
),
],
),
Solution
Try Spacer(),
Row(
children: [
Checkbox(
value: isChecked,
onChanged: (bool? value) {
setState(() {
isChecked = value!;
});
},
),
Text(
'Remember Password',
),
Spacer(),
Text(
'Forgot Password',
),
],
),
Answered By - Jim
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.