I need to implement a design whereby two text of different length on two different lines have same letter spacing.
Example:
H E L L O
H EL L O W O R L D
You get the picture now.
So far I have done it using a Row and Row's MainAxisAlignment.spaceBetween property. However, how can I implement it using letterSpacing and maxLines=1?
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: 'HELLO'
.characters
.map((e) => Text(e,
style: GoogleFonts.poppins(
fontSize: 30,
fontWeight: FontWeight.bold,
)))
.toList(),
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: 'HELLO WORLD'
.characters
.map((e) => Text(e,
style: GoogleFonts.poppins(
fontSize: 30,
fontWeight: FontWeight.bold,
)))
.toList(),
),