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

Get.defaultDialog issue with flutter 3.27 SDK #3281

Open
saguado69 opened this issue Dec 27, 2024 · 0 comments
Open

Get.defaultDialog issue with flutter 3.27 SDK #3281

saguado69 opened this issue Dec 27, 2024 · 0 comments
Assignees

Comments

@saguado69
Copy link

After upgrading flutter SDK to version 3.27.1, Get.defaultDialog is not working anymore showing a null value error. I have replaced my defaultDialog with basic dialog shown below and the issue persist. The issue happens in the module code below:

extension_navigation.dart

assert(debugCheckHasMaterialLocalizations(context!));

Exception has occurred.
_TypeError (Null check operator used on a null value)

example code:

Get.defaultDialog(
                  title: "Hello",
                  content: Text("This is a simple dialog box"),
                  confirm: MaterialButton(
                    child: Text("OK"),
                    onPressed: Get.back,
                  ),
                );

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
GETX Dialog to be shown

Flutter Version:
3.27.1

Getx Version:
4.6.6

Describe on which device you found the bug:
MacOS

Minimal reproduce code

Get.defaultDialog(
                  title: "Hello",
                  content: Text("This is a simple dialog box"),
                  confirm: MaterialButton(
                    child: Text("OK"),
                    onPressed: Get.back,
                  ),
                );
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

2 participants