awesomeDialogs icon indicating copy to clipboard operation
awesomeDialogs copied to clipboard

Dialog width doesn't change

Open sashker opened this issue 4 years ago • 3 comments

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

sashker avatar Sep 07 '20 08:09 sashker

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.

marcos930807 avatar Sep 07 '20 15:09 marcos930807

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.

sashker avatar Sep 08 '20 06:09 sashker

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.

bahadirarslan avatar Aug 11 '22 20:08 bahadirarslan