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

7.0.3 WebUiSettings customDialogBuilder expects a Dialog, not a widget #496

Open
blaneyneil opened this issue Jun 7, 2024 · 2 comments
Open

Comments

@blaneyneil
Copy link

When creating a stateful widget for WebUiSettings, per your updated example, so that it can be initialized:

@override
    void initState() {
      super.initState();
      /// IMPORTANT: must to call this function
      widget.initCropper();
    }

the customDialogBuilder will not actually take a widget. it's throwing with this error:

The return type '_CropperWidget' isn't a 'Dialog', as required by the closure's context.

@hnvn
Copy link
Owner

hnvn commented Jun 8, 2024

that's my bug, customDialogBuilder should return Widget instead, I've just release 7.0.4 to fix it. Please have a try

@blaneyneil
Copy link
Author

Yep, thanks much. I still had to wrap it in a Dialog for my custom design purposes, but it properly takes any widget now.

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