Open abdulrehman192 opened 1 year ago
@koukibadr set a reminder for Oct 23rd 2023
same with appNavigatorKey.currentContext
@mminhlequang @abdulrehman192 i'll verify this issue thanks for your feedback
Same here, can not use with global ScaffoldMessagerKey
any update on this?
void show(BuildContext context) {
overlayEntry = _overlayEntryBuilder();
final overlay = Overlay.maybeOf(context);
if (overlay != null) {
overlay.insert(overlayEntry!);
} else {
Navigator.of(context).overlay?.insert(overlayEntry!);
}
}
Try to Replace show() with above code in elegant_notification.dart page and try
Did anyone find viable work around?
The notification only work if we pass the scaffold context. when I try to show it with Get.context and also try to make a App class with static navigator global key, it is not working.