awesomeDialogs
awesomeDialogs copied to clipboard
Dialog width doesn't change
Hello.
I'm struggling to change the width of a dialog, trying to provide both MediaQuery.of(context).size.width and a static value.
Tested on iOS emulator and an Android 10 device.
Thanks in advance
hi @sashker by deafult the witdth is MediaQuery.of(context).size.width and if you want a custom value, in the last version there is a width prop. If you could share a small snippet with your problem will be nice.
Hi @marcos930807
Basically, I tried to define the width property:
AwesomeDialog( context: context, width: MediaQuery.of(context).size.width, dialogType: DialogType.INFO, animType: AnimType.BOTTOMSLIDE, title: 'Dialog Title', desc: 'Dialog description here.............', btnCancelOnPress: () {}, btnOkOnPress: () {}, )..show();
I mean, I have to set up the width of my dialog full-width.
Initially I thought it might be a problem with insetPadding but it seems you don't use Dialog widget at all.
I also struggle with the width of the dialog. Even if I set 5000 as width, it has some internal width that can not be changed.