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] 1、is nullable and 'BorderRadiusGeometry' isn't. 2、createTilingInfo函数没有找到 #623

Closed StephentTom closed 1 year ago

StephentTom commented 1 year ago

Version

8.0.2

Platforms

dart

Device Model

iPhone X

flutter info

Flutter (Channel stable, 3.13.3, on macOS 12.6.3 21G419 darwin-arm64
    (Rosetta), locale zh-Hans-CN)
    • Flutter version 3.13.3 on channel stable at /Users/mrhong/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2524052335 (4 days ago), 2023-09-06 14:32:31 -0700
    • Engine revision b8d35810e9
    • Dart version 3.1.1
    • DevTools version 2.25.0
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

How to reproduce?

1、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. 2、extended_image-8.0.2/lib/src/image/painting.dart:202:13: Error: 'ImageTilingInfo' isn't a type.

Logs

3.13.3

Example code (optional)

1、if (widget.borderRadius != null) {
            current = ClipRRect(
              child: current,
              borderRadius: widget.borderRadius,
              clipBehavior: widget.clipBehavior,
            );
          }

2、else {
      final ImageTilingInfo info =
          createTilingInfo(repeat, rect, destinationRect, sourceRect);
      final ImageShader shader = ImageShader(
          image, info.tmx, info.tmy, info.transform.storage,
          filterQuality: filterQuality);
      canvas.drawRect(rect, paint..shader = shader);
    }

Contact

No response

zmtzawqlp commented 1 year ago

use 8.1.1