flutter_image_cropper
flutter_image_cropper copied to clipboard
7.0.3 WebUiSettings customDialogBuilder expects a Dialog, not a widget
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.