You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'),
)
The text was updated successfully, but these errors were encountered:
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);
The text was updated successfully, but these errors were encountered: