marcos930807 / awesomeDialogs

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

awesome dialog don't show #133

Open mayed123502 opened 1 year ago

mayed123502 commented 1 year ago

When you click on the button to show awesome dialog, transparency appears over the application screen, but awesome dialog does not appear

void askDoAgain() {
    AwesomeDialog(
      context: context,
      headerAnimationLoop: false,
      dialogType: DialogType.question,
      animType: AnimType.topSlide,
      title: trans(context, 'make_another_transaction'),
      desc: trans(context, 'start_new_transaction'),
      btnCancelText: trans(context, 'cancel'),
      btnOkText: trans(context, 'ok'),
      btnCancelOnPress: () {
        // Navigator.pop(context);
      },
      btnCancelColor: Colors.grey[600],
      btnOkColor: colors.primaryColor,
      btnOkOnPress: () async {
        customerName.clear();
        customerPhone.clear();
        customerLocation.clear();
        _btnController.reset();
      },
    ).show();
  }
function: () { 
      askDoAgain();
        }