I would like to align one set of numbers to the top of another set of numbers, just as the smallest currency units that can be found on some price tags.
I've placed two Text inside a Row with CrossAxisAlignment.start but I can't get them both to be the same height.
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'409',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.w600,
),
),
Text(
'00',
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.w600,
),
),
]
)


It caused
Textwidget has padding. The padding is needeed if you type some character like below.May this is not the best practice to achieve what you want. You can try this code by setting
heightto0.8or other value.