I'm struggling with building a fraction in Flutter.
I would like my Column to render two independent containers: nominator and denominator. And I would like them to be the same exact size. I mean when the nominator has another fraction in it, the denominator should be the same height.
Is it possible to have a Column with two elements of each size depending on the highest one?
I do NOT want to use Expanded because I use heights dynamically. I use it in the SingleChildScrollView.
I can't predict the exact height because just imagine a fraction like this
1/2 / 3
and I would like a "3" object to have the same height like "1/2".
My code:
Column(
children: [
IntrinsicWidth(
child: Column( children: [
numerator,
SizedBox(height: 5),
fractionBar,
SizedBox(height: 5),
denominator
],),
)
],
),