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

[Bug report] Compilation errors after upgrading Flutter #602

Closed
efraespada opened this issue Aug 16, 2023 · 10 comments
Closed

[Bug report] Compilation errors after upgrading Flutter #602

efraespada opened this issue Aug 16, 2023 · 10 comments

Comments

@efraespada
Copy link

Version

8.0.2

Platforms

dart

Device Model

Any

flutter info

[✓] Flutter (Channel stable, 3.13.0, on macOS 13.5 22G74 darwin-x64, locale en-ES)
    • Flutter version 3.13.0 on channel stable at /Users/efraespada/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision efbf63d9c6 (17 hours ago), 2023-08-15 21:05:06 -0500
    • Engine revision 1ac611c64e
    • Dart version 3.1.0
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/efraespada/Library/Android/sdk
    • Platform android-34, build-tools 33.0.1
    • Java binary at: /Users/efraespada/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E300c
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Users/efraespada/Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2)
    • IntelliJ at /Users/efraespada/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 75.1.4
    • Dart plugin version 232.8660.129

[✓] VS Code (version 1.78.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.68.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 13.5 22G74 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 116.0.5845.96

[✓] Network resources
    • All expected network resources are available.

How to reproduce?

Compile any app with the latest version of Flutter.

Logs

../../.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,
                                   ^
../../.pub-cache/hosted/pub.dev/extended_image-8.0.2/lib/src/image/painting.dart:202:13: Error: 'ImageTilingInfo' isn't a type.
      final ImageTilingInfo info =
            ^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/extended_image-8.0.2/lib/src/image/painting.dart:203:11: Error: Method not found: 'createTilingInfo'.
          createTilingInfo(repeat, rect, destinationRect, sourceRect);
          ^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/extended_image_library-3.5.3/lib/src/network/network_image_web.dart:25:10: Error: Method not found: 'createDomXMLHttpRequest'.
  return createDomXMLHttpRequest();
         ^^^^^^^^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/extended_image_library-3.5.3/lib/src/network/network_image_web.dart:166:53: Error: The argument type 'Null Function(DomEvent)' can't be assigned to the parameter type 'Never'.
 - 'DomEvent' is from 'package:flutter/src/services/dom.dart' ('../../flutter/packages/flutter/lib/src/services/dom.dart').
      request.addEventListener('load', allowInterop((DomEvent e) {
                                                    ^
../../.pub-cache/hosted/pub.dev/extended_image_library-3.5.3/lib/src/network/network_image_web.dart:184:64: Error: The argument type 'void Function(Object, [StackTrace?])' can't be assigned to the parameter type 'Never'.
 - 'Object' is from 'dart:core'.
 - 'StackTrace' is from 'dart:core'.
      request.addEventListener('error', allowInterop(completer.completeError));
                                                               ^
../../.pub-cache/hosted/pub.dev/float_column-2.0.1/lib/src/render_text.dart:320:19: Error: The getter 'inlinePlaceholderScales' isn't defined for the class 'TextPainter'.
 - 'TextPainter' is from 'package:flutter/src/painting/text_painter.dart' ('../../flutter/packages/flutter/lib/src/painting/text_painter.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'inlinePlaceholderScales'.
    if ((_painter.inlinePlaceholderScales?.length ?? 0) > i) {
                  ^^^^^^^^^^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/float_column-2.0.1/lib/src/render_text.dart:321:23: Error: The getter 'inlinePlaceholderScales' isn't defined for the class 'TextPainter'.
 - 'TextPainter' is from 'package:flutter/src/painting/text_painter.dart' ('../../flutter/packages/flutter/lib/src/painting/text_painter.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'inlinePlaceholderScales'.
      return _painter.inlinePlaceholderScales![i];
                      ^^^^^^^^^^^^^^^^^^^^^^^
Failed to compile application.

Example code (optional)

No response

Contact

efraespada@gmail.com

@YDA93
Copy link

YDA93 commented Aug 16, 2023

Issue appears in latest flutter stable version only Flutter Channel stable 3.13.0

Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
main.dart:1
Automatically signing iOS for device deployment using specified development team in Xcode project: 
Xcode build done.                                           82.2s
Failed to build iOS app
Could not build the precompiled application for the device.
Error (Xcode): ../../../.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.
extended_image.dart:976

Error launching application on iPhone 11 Pro Max.
Exited

@felipecastrosales
Copy link

Same here!

@YDA93
Copy link

YDA93 commented Aug 16, 2023

@zmtzawqlp Please have a look into this.

@mdddj
Copy link

mdddj commented Aug 17, 2023

+1

2 similar comments
@zhoujia456888
Copy link

+1

@im-x
Copy link

im-x commented Aug 17, 2023

+1

@geekdmm0xff
Copy link

Error (Xcode): ../../../../.pub-cache/hosted/pub.flutter-io.cn/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.

Could not build the application for the simulator.
Error launching application on iPhone 14.

@laiiihz
Copy link

laiiihz commented Aug 17, 2023

hi , you can temporary use my branch and i made a PR #604

  extended_image:
    git:
      url: https://github.com/laiiihz/extended_image
      ref: migrate-to-3.13

@ps6067966
Copy link

same issue.

@zmtzawqlp
Copy link
Member

8.1.0 is ready

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

Successfully merging a pull request may close this issue.

10 participants