Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.0.0-release-candidate-6] - Get.back(result: true) or Get.close(result: true) does not return #3122

Open
Alyssonpp opened this issue Jun 8, 2024 · 1 comment
Assignees

Comments

@Alyssonpp
Copy link

Describe the bug
[5.0.0-release-candidate-6] when using Get.back or Get.close both do not return the return reported in result: true as demonstrated in the example, now when using Get.backLegacy(result: true); Then everything works, does anyone have a solution for this error?
*

example:
ElevatedButton(
onPressed: () async {
var zzr = await Get.defaultDialog(
title: 'Hello',
middleText: 'This is a GetX Dialog',
textConfirm: 'OK',
textCancel: 'Cancel',
confirmTextColor: Colors.white,
onConfirm: () {
Get.back(result: true); //NOT WORKING
},
onCancel: () {
Get.backLegacy(result: true); //ITS WORKIN
Get.close(result: true); //NOT WORKING
},
);
print(zzr);

                          },
                          child: const Text('dialog'),
                        )
@ajayld
Copy link

ajayld commented Jun 14, 2024

Same issue for me as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants