getx
getx copied to clipboard
This stack overflow issue of getx don't have solution yet
(https://stackoverflow.com/questions/75049973/push-same-page-with-different-parameters-in-getx-route-delegate-flutter/76999095#76999095)
Una solucion simple:
if (Get.isDialogOpen == true) { Get.back(); await Future.delayed(Duration(microseconds: 5)); } Map<String,String> params={} if (Get.currentRoute.indexOf('/image') == 0) { Get.parameters = params; Get.find<ImagePageController>().onInit(); } else { await Get.toNamed('/image', parameters: params); } Si alguien mas puede mejorar la solucion Bienvenidos