fluttercandies / extended_image

A powerful official extension library of image, which support placeholder(loading)/ failed state, cache network, zoom pan image, photo view, slide out page, editor(crop,rotate,flip), paint custom etc.
https://fluttercandies.github.io/extended_image/
MIT License
1.94k stars 505 forks source link

[Bug report] The argument type 'BorderRadius?' can't be assigned to the parameter type 'BorderRadiusGeometry' because 'BorderRadius?' is nullable and 'BorderRadiusGeometry' isn't #637

Closed anwar907 closed 1 year ago

anwar907 commented 1 year ago

Version

8.0.2

Platforms

dart, Android, iOS, macOS

Device Model

Pixel 5 API 33

flutter info

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.0, on macOS 14.0 23A344 darwin-arm64, locale
    en-ID)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2022.2.2)
[✓] VS Code (version 1.84.1)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

How to reproduce?

on file src/extended_image.dart:976 line 976, is miss assignment

The BorderRadius of ClipRect requires BorderRadiusGeometry but you specify BorderRadius and no initial value or condition to set a default value, e.g. BorderRadiusGeometry

Logs

No response

Example code (optional)

../../../.pub-cache/hosted/pub.dev/extended_image-8.0.2/lib/src/extended_image.dart:976:36: Error: The argument type 'BorderRadius?' can't be assigned to the parameter type 'BorderRadiusGeometry' because 'BorderRadius?' is nullable and 'BorderRadiusGeometry' isn't.```

``` - 'BorderRadius' is from 'package:flutter/src/painting/border_radius.dart' ('../../../flutter/packages/flutter/lib/src/painting/border_radius.dart').
 - 'BorderRadiusGeometry' is from 'package:flutter/src/painting/border_radius.dart' ('../../../flutter/packages/flutter/lib/src/painting/border_radius.dart').
              borderRadius: widget.borderRadius,
                                   ^
Target kernel_snapshot failed: Exception```

Contact

No response

zmtzawqlp commented 1 year ago

please use 8.2.0 version on flutter 3.16.0 and i can't reproduce at my side