flutter_image_cropper icon indicating copy to clipboard operation
flutter_image_cropper copied to clipboard

7.0.3 WebUiSettings customDialogBuilder expects a Dialog, not a widget

Open blaneyneil opened this issue 8 months ago • 2 comments

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.

blaneyneil avatar Jun 07 '24 21:06 blaneyneil