I've been puzzling on this for a while. I want 2 buttons with different text to be the same width.
I've achieved this by making ElevatedButton a child of SizedBox, but I'm concerned that the Button title text will be clipped if the users has the default font size set to large.
I can put a 'minimumSize' on the ElevatedButton's style attribute:
style: ButtonStyle(minimumSize: ),
But I don't have a clue how to set the minimumSize, it wants this:
{MaterialStateProperty minimumSize} Type: MaterialStateProperty The minimum size of the button itself. The size of the rectangle the button lies within may be larger per tapTargetSize
I can't figure out how to set a MaterialStateProperty, Android Studio complains 'Abstract classes can't be instantiated.' Help!