YYFlutter/flutter-custom-dialog

在点击确认的回调中跳转路由没反应

junixapp opened this issue · 1 comments

flutter version: 1.22.3
device: 华为Mate20 Android10

 DialogUtil.showConfirmDialog(
        context,
        "需要同意隐私政策才能继续使用",
        """
      我们深知个人信息对您的重要性,我们将按法律法规要求,采取相应安全保护措施,尽力保护您的个人信息安全可控。
      """,
        cancelText: "退出应用",
        confirmText: "同意并继续使用",
        onCancel: (){
          MyNavigator.pop();
        },
        onConfirm: (){
        Log.i("这里确定执行了");
        MyNavigator.pushReplacementNamed(RouterName.Main);
});

isClickAutoDismiss改为false就可以了