on-internet
← Community

Dynamically adjust text size in buttons inside Row

Stack Overflow ·

I am using localization to support multiple languages in my app. This results in having text in buttons with different length. So I need to have it being responsive. I have two buttons in a Row(). I want to adjust the textsize inside these buttons so they never produce any overflow. Currently it looks like this in some languages: I tried using auto_size_text with no success. This is my code for the dialog: return Dialog( backgroundColor: Colors.transparent, elevation: 0, child: InkWell( onTap: () { Navigator.of(context).pop(); }, child: Center( child: Column( mainAxisAlignment: MainAxisAlignme

Comments

Sign in or sign up to comment and upvote.

No comments yet.