marcos930807 / awesomeDialogs

A new Flutter package project for simple a awesome dialogs
Other
339 stars 110 forks source link

set duration when the dialog Dismissed #114

Closed Junesui closed 1 year ago

Junesui commented 1 year ago

hi marcos,

When I close the dialog, the hidden animation takes a long time, how can I make it close faster

my code

AwesomeDialog(
      padding: const EdgeInsets.all(5),
      context: context,
      body: Padding(
        padding: EdgeInsets.only(
          left: SU.setWidth(30),
          right: SU.setWidth(30),
          top: SU.setWidth(30),
          bottom: SU.setWidth(60),
        ),
        child: MyText(
          text: text,
          fontSize: 42,
          textAlign: TextAlign.center,
        ),
      ),
      btnOkOnPress: btnOkOnPress,
      btnCancelOnPress: () {},
      btnOkColor: StyleConstant.primaryColor,
      btnCancelColor: Colors.grey[400],
      dialogType: DialogType.noHeader,
      animType: AnimType.bottomSlide,
      width: SU.getScreenWidth() * 0.9,
    ).show();
Junesui commented 1 year ago

image

marcos930807 commented 1 year ago

@Junesui check version 3.0.1