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

Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'. - 'DiagnosticsNode' is from #31962

Closed
calvinmuller opened this issue May 2, 2019 · 70 comments
Assignees
Labels
c: API break Backwards-incompatible API changes c: crash Stack traces logged to the console customer: crowd Affects or could affect many people, though not necessarily a specific customer. p: firebase_crashlytics The Firebase Crashlytics plugin p: firebase Firebase plugins package flutter/packages repository. See also p: labels.

Comments

@calvinmuller
Copy link

calvinmuller commented May 2, 2019

After upgrading to 1.5.9-pre.108 I seem to be getting this issue with 3 packages I use, should I take this up with the packages or is it something that you guys will fix?

Pacakges affected in my project:

multi_image_picker: ^4.2.0
flutter_sticky_header: ^0.3.4
cached_network_image: ^0.7.0

Steps to Reproduce

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_sticky_header/flutter_sticky_header.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: Page1(),
    );
  }
}

class Page1 extends StatelessWidget {
  final String title;

  const Page1({Key key, this.title = "Page 1"}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text(title),
        ),
        body: CustomScrollView(
          slivers: <Widget>[
            SliverStickyHeader(
              header: Text('Users'),
              sliver: SliverList(
                delegate: SliverChildBuilderDelegate(
                  (context, i) => Text(i.toString()),
                ),
              ),
            ),
          ],
        ));
  }
}

Added pubspec dependency

  flutter_sticky_header: ^0.3.4

attempt to build the project.

Logs

Compiler message:
file:///Users/calvinmuller/.pub-cache/hosted/pub.dartlang.org/flutter_sticky_header-0.3.4/lib/src/widgets/sticky_header_layout_builder.dart:147:16: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/calvinmuller/iStreet/Mobile/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
      context: context);
               ^
Compiler failed on /Users/calvinmuller/iStreet/Mobile/testwhite/lib/main.dart
Error launching application on iPhone X.

Compiler message:
file:///Users/calvinmuller/.pub-cache/hosted/pub.dartlang.org/cached_network_image-0.7.0/lib/src/cached_network_image_provider.dart:46:31: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable<DiagnosticsNode> Function()'.
 - 'StringBuffer' is from 'dart:core'.
 - 'Iterable' is from 'dart:core'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/calvinmuller/iStreet/Mobile/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'Iterable<DiagnosticsNode> Function()'.
        informationCollector: (StringBuffer information) {
                              ^
file:///Users/calvinmuller/.pub-cache/hosted/pub.dartlang.org/multi_image_picker-4.2.0/lib/src/asset_thumb_provider.dart:35:31: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable<DiagnosticsNode> Function()'.
 - 'StringBuffer' is from 'dart:core'.
 - 'Iterable' is from 'dart:core'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/calvinmuller/iStreet/Mobile/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'Iterable<DiagnosticsNode> Function()'.
        informationCollector: (StringBuffer information) {

[✓] Flutter (Channel master, v1.5.9-pre.108, on Mac OS X 10.14.4 18E226, locale en-ZA)
    • Flutter version 1.5.9-pre.108 at /Users/calvinmuller/iStreet/Mobile/flutter
    • Framework revision 15f187fce0 (89 minutes ago), 2019-05-01 20:39:37 -0700
    • Engine revision ce9e9ba7e4
    • Dart version 2.3.0 (build 2.3.0-dev.0.5 b6997deb3e)


@Zazo032
Copy link
Contributor

Zazo032 commented May 2, 2019

This might be related to Dart 2.3.0 version bump, here you can find a temporary workaround for cached_network_image (should also work for the other 2 packages): Baseflow/flutter_cached_network_image#171 (comment)

@calvinmuller
Copy link
Author

it feels sooo wrong - but for now it will have to do, given i've been building against master its way to difficult to go back now!

Thanks!

@vijayawoshe
Copy link

vijayawoshe commented May 2, 2019

For me 4 to 5 Plugins are failing
1.sentry
2. flutter_advanced_networkimage
3.cached_network_image_provider
4. fllushbar
5. flutter_svg etc

with the same errors.

Compiler message:
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.0/lib/src/picture_provider.dart:337:33: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable<DiagnosticsNode> Function()'.
 - 'StringBuffer' is from 'dart:core'.
 - 'Iterable' is from 'dart:core'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'Iterable<DiagnosticsNode> Function()'.
          informationCollector: (StringBuffer information) {
                                ^
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.0/lib/src/picture_provider.dart:432:31: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable<DiagnosticsNode> Function()'.
 - 'StringBuffer' is from 'dart:core'.
 - 'Iterable' is from 'dart:core'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'Iterable<DiagnosticsNode> Function()'.
        informationCollector: (StringBuffer information) {
                              ^
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.0/lib/src/picture_provider.dart:495:31: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable<DiagnosticsNode> Function()'.
 - 'StringBuffer' is from 'dart:core'.
 - 'Iterable' is from 'dart:core'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'Iterable<DiagnosticsNode> Function()'.
        informationCollector: (StringBuffer information) {
                              ^
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.0/lib/src/picture_provider.dart:559:31: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable<DiagnosticsNode> Function()'.
 - 'StringBuffer' is from 'dart:core'.
 - 'Iterable' is from 'dart:core'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'Iterable<DiagnosticsNode> Function()'.
        informationCollector: (StringBuffer information) {
                              ^
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_advanced_networkimage-0.4.15/lib/src/flutter_advanced_networksvg.dart:106:29: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable<DiagnosticsNode> Function()'.
 - 'StringBuffer' is from 'dart:core'.
 - 'Iterable' is from 'dart:core'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'Iterable<DiagnosticsNode> Function()'.
      informationCollector: (StringBuffer information) {
                            ^
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-1.5.0/lib/flare.dart:1023:18: Error: The argument type 'Int32List' can't be assigned to the parameter type 'Uint16List'.
 - 'Int32List' is from 'dart:typed_data'.
 - 'Uint16List' is from 'dart:typed_data'.
Try changing the type of the parameter, or casting the argument to 'Uint16List'.
        indices: _indices, textureCoordinates: _uvBuffer);
                 ^
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.0/lib/src/picture_stream.dart:252:16: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
      context: context,
               ^
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.0/lib/src/picture_stream.dart:297:18: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
        context: 'resolving a single-frame picture stream',
                 ^
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.0/lib/src/svg/parser_state.dart:395:35: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable<DiagnosticsNode> Function()'.
 - 'StringBuffer' is from 'dart:core'.
 - 'Iterable' is from 'dart:core'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'Iterable<DiagnosticsNode> Function()'.
            informationCollector: (StringBuffer buff) {
                                  ^
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.0/lib/src/svg/parser_state.dart:404:22: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
            context: 'in _Element.clipPath',
                     ^
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.0/lib/src/svg/parser_state.dart:777:31: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable<DiagnosticsNode> Function()'.
 - 'StringBuffer' is from 'dart:core'.
 - 'Iterable' is from 'dart:core'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'Iterable<DiagnosticsNode> Function()'.
        informationCollector: (StringBuffer buff) {
                              ^
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.0/lib/src/svg/parser_state.dart:788:18: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
        context: 'in parseSvgElement',
                 ^
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.0/lib/src/utilities/errors.dart:8:32: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
      context: 'in $methodName',
                               ^
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.0/lib/src/utilities/errors.dart:10:29: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable<DiagnosticsNode> Function()'.
 - 'StringBuffer' is from 'dart:core'.
 - 'Iterable' is from 'dart:core'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'Iterable<DiagnosticsNode> Function()'.
      informationCollector: (StringBuffer buff) {
                            ^
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flushbar-1.3.0/lib/flushbar.dart:528:15: Error: The method 'detach' isn't defined for the class 'FocusScopeNode'.
 - 'FocusScopeNode' is from 'package:flutter/src/widgets/focus_manager.dart' ('file:///C:/flutter/packages/flutter/lib/src/widgets/focus_manager.dart').
Try correcting the name to the name of an existing method, or defining a method named 'detach'.
    focusNode.detach();
              ^^^^^^
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_sticky_header-0.3.4/lib/src/widgets/sticky_header_layout_builder.dart:147:16: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
      context: context);
               ^
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_advanced_networkimage-0.4.15/lib/src/flutter_advanced_networkimage.dart:149:29: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable<DiagnosticsNode> Function()'.
 - 'StringBuffer' is from 'dart:core'.
 - 'Iterable' is from 'dart:core'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'Iterable<DiagnosticsNode> Function()'.
      informationCollector: (StringBuffer information) {
                            ^
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/cached_network_image-0.7.0/lib/src/cached_network_image_provider.dart:46:31: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable<DiagnosticsNode> Function()'.
 - 'StringBuffer' is from 'dart:core'.
 - 'Iterable' is from 'dart:core'.
 - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'Iterable<DiagnosticsNode> Function()'.
        informationCollector: (StringBuffer information) {
                              ^
Compiler failed on C:\Vijay\Workspace\Awoshe\development\Awoshe-Flutter\lib\main.dart
Finished with error: Gradle task assembleDebug failed with exit code 1

This issue has to be solved asap.

Thanks

@thanhhuan1990
Copy link

thanhhuan1990 commented May 2, 2019

I have gotting the same errors with 2 libs with same issue.

  1. flutter_svg
  2. flutter_image
[✓] Flutter (Channel master, v1.5.9-pre.114, on Mac OS X 10.14.4 18E226, locale en-US)
    • Flutter version 1.5.9-pre.114 at /Users/apple/Development/flutter
    • Framework revision f48cc4611a (19 minutes ago), 2019-05-02 08:02:11 -0700
    • Engine revision bc3bd709c7
    • Dart version 2.3.0 (build 2.3.0-dev.0.5 b6997deb3e)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/apple/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /Users/apple/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.2.1, Build version 10E1001
    • ios-deploy 1.9.4
    • CocoaPods version 1.7.0.beta.3

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 35.0.1
    • Dart plugin version 183.5901
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

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

This issue should be solved asap.
Thanks

@mklim
Copy link
Contributor

mklim commented May 2, 2019

The root cause is #30983. The change to context there is breaking. I think it should probably be reverted and relanded in a more gradual migration instead of an in-place breaking change? This also breaks firebase_crashlytics, which passes context over the MethodChannel directly under the asusmption that it's a String.

flutter/plugins CI is currently red based on this.

/cc @jacob314 @kroikie

@mklim mklim added p: firebase_crashlytics The Firebase Crashlytics plugin framework flutter/packages/flutter repository. See also f: labels. p: firebase Firebase plugins p: first party c: API break Backwards-incompatible API changes c: crash Stack traces logged to the console labels May 2, 2019
@mklim
Copy link
Contributor

mklim commented May 3, 2019

My mistake, the breaking change was intentional. https://groups.google.com/forum/#!topic/flutter-announce/hp1RNIgej38 #27327

This is unfortunately a difficult breaking change for plugins authors to deal with, since plugins users could be using stable (in which this is a String) or master, in which this is a DiagnosticsNode. Just migrating to the latest version will break users on older versions of Flutter.

I think plugins authors can work around this without breaking either new or old versions of Flutter for now by type checking and handling the property differently depending on what it is. That's not an ideal fix though.

@jacob314
Copy link
Contributor

jacob314 commented May 3, 2019

We can change the type of context from DiagnosticsNode to Object for a few months to allow for a gradual migration.
Based on analysis of all pub packages this change should break about 13 packages. I am happy to help anyone who needs to migrate their package to migrate it.

@jacob314
Copy link
Contributor

jacob314 commented May 3, 2019

flutter_svg has been fixed. Let me know if you are still having issues with it.

@jacob314
Copy link
Contributor

jacob314 commented May 3, 2019

Before making this breaking change we did some analysis of what packages could be impacted. Here is the full list of packages in the public ecosystem that use FlutterErrorDetails. Not all are impacted by the change as the context and informationCollector parameters are not required.

beacons-0.3.0
cool_ui-0.1.14
extended_nested_scroll_view-0.3.2
firebase_crashlytics-0.0.2
fish_redux-0.1.3
flutter_beacons-0.3.0+3
flutter_hooks-0.2.1
flutter_image-1.0.0
flutter_image_compress-0.3.0
flutter_sticky_header-0.3.4
flutter_svg-0.12.2
geolocation-0.2.1
gif_ani-0.0.2
iap-0.1.0
liquid_pull_to_refresh-1.1.0
ls_refresher-0.1.0
pdrpulm-1.0.2
printing-2.0.0
pull_to_refresh_notification-0.2.0
refresh_wow-0.0.7
reorderables-0.2.0
saka_image-0.0.5
streams_channel-0.2.2
tt_image-0.0.1
zefyr-0.5.0

@vijayawoshe
Copy link

So what is the temporary work around for now?

@mklim
Copy link
Contributor

mklim commented May 3, 2019

@vijayawoshe Users of a plugin broken by this can probably work around it quickest by switching to flutter channel stable instead of flutter channel master so that they avoid the breaking change.

The fix for plugins authors is to update their code to work on both stable and master. That'll probably mean using runtime type checking, unfortunately. You can see how firebase_crashlytics is adapting to this at flutter/plugins#1564.

@jacob314
Copy link
Contributor

jacob314 commented May 3, 2019

It depends. If you package is trying to act like it is part of the Flutter framework here is an overly clever workaround. Please promise me you will delete the code when this feature is in flutter Stable of you go this route instead of keeping a separate branch for Flutter stable and dev.

final bool _useDiagnosticsNode = FlutterError('text') is Diagnosticable;

dynamic safeContext(String context) {
  return _useDiagnosticsNode ? DiagnosticsNode.message(context) : context;
}

// Example usage
FlutterErrorDetails(context: safeContext('My context message'));

If you package isn't trying to act like it is part of package:flutter then you should consider whether FlutterError and FlutterErrorDetails are classes you should be using. You might be confusing your users more than helping them by making your errors look like they are coming from the framework instead of from your library. For example the documentation for FlutterError says it is an "Error class used to report Flutter-specific assertion failures and contract violations."

@khainhero
Copy link

I deleted the context's in the affected files. Should i uninstall and reinstall them back and then should i implement the ternary operator for the issues? (im just a normal end user whose affected by new master build)

@jacob314
Copy link
Contributor

jacob314 commented May 3, 2019

@khainhero I'm interested in understanding how you are using FlutterErrorDetails in your user code. What are you looking to accomplish using the class? In general this wasn't a class we expected users to use.

@khainhero
Copy link

@khainhero I'm interested in understanding how you are using FlutterErrorDetails in your user code. What are you looking to accomplish using the class? In general this wasn't a class we expected users to use.

huh, im not owner of these plugins. I am just normal person using these plugin and I decided to deleted it so i can run my own project because i couldnt compile my project.

@jacob314
Copy link
Contributor

jacob314 commented May 3, 2019

I would recommend you stick to the stable channel of Flutter as a normal user. Is there a reason you need to be on the dev channel?

Let me know which packages you depend on and I will work with the owners to make sure they migrate soon.

@khainhero
Copy link

khainhero commented May 3, 2019

Oh thanks for the response.
flutter_image_compress 0.4.0 (Diagnostic node issue with String datatype)
cached_network_image 0.7.0

just a quick question i want to throw in:

Should I stick to Stable Channel for releasing an app for alpha/beta testing? Thank you

@jacob314
Copy link
Contributor

jacob314 commented May 3, 2019

You should stick to stable channel. The stable channel builds should generally be much more robust than the master channel. The stable channel has had months of testing while the master channel has not as new channels are being added to the master channel. On the master channel you never know when a CL will be rolled back if it caused bugs so you can experience breaking changes in your code due to features being removed.

What sorts of stability bugs are you having with the stable channel?

@calvinmuller
Copy link
Author

if no-one used master - who would detect these issues? :)

@vijayawoshe
Copy link

I am using the master channel since 8 9 month for one important project. Everything was working fine uptil now. I helped flutter to post early issues as well. So to use master channel is fine in my opinion.

Of course with breaking change it happens sometimes
:-)

@Sh1d0w
Copy link

Sh1d0w commented May 3, 2019

I am using the master channel since 8 9 month for one important project. Everything was working fine uptil now. I helped flutter to post early issues as well. So to use master channel is fine in my opinion.

Of course with breaking change it happens sometimes
:-)

The problem is not that are you using the dev channel for production build. The problem is that plugin maintainers can support only against Stable channel, because as @jacob314 said dev channel frequently rolls back and forth breaking changes.

You should never use dev branch for production apps, of course you are free to switch and test new features, but if you want stability you should stick to Stable.

We (open source mantainers) are not working full time on the plugins so we can't guarantee they will work on anything other than stable. If you are using unstable build for production it is your fault. Not to mention that in the semantic versioning there is no way to support both Stable and Unstable channels when it comes to breaking changes.

@ghost
Copy link

ghost commented Jul 10, 2019

I have the same issue for latest version of flutter(1.7.8)

Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.

'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/xyz/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
context: '$runtimeType failed to load ${instructions.uri}'

channel : stable
version 1.7.8

Thanks

@ghost
Copy link

ghost commented Jul 10, 2019

Same issue for Flutter 1.7.8+hotfix.3

Compiler message:
file:///Users/xyz/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image-1.0.0/lib/network.dart:75:31: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.

'StringBuffer' is from 'dart:core'.
'Iterable' is from 'dart:core'.
'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/xyz/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
informationCollector: (StringBuffer information) {

on stable channel version
Flutter 1.7.8+hotfix.3

Thanks

@tvolkert
Copy link
Contributor

@puneetsdsharma65 see the messages above - you need to update to flutter_image 2.0.0

@nazmulgazi1989
Copy link

nazmulgazi1989 commented Jul 10, 2019

Compiler message:
.\pub-cache/hosted/pub.dartlang.org/cool_ui-0.1.15/lib/keyboards/keyboard_manager.dart:102:20: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.

  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' (.\flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
    context: 'during a platform message response callback',
    ^
    Compiler failed on .\Flutter\ItelMobileAgent\itel_agent\lib\main.dart
    Finished with error: Gradle task assembleDebug failed with exit code 1

How can I solve this?

@rajeshzmoke
Copy link

file:///Users/rajeshkumar/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/picture_stream.dart:256:16: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
- 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/rajeshkumar/Desktop/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
context: context,
^
file:///Users/rajeshkumar/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/picture_stream.dart:301:18: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
- 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/rajeshkumar/Desktop/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
context: 'resolving a single-frame picture stream',
^
file:///Users/rajeshkumar/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/svg/parser_state.dart:399:35: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.
- 'StringBuffer' is from 'dart:core'.
- 'Iterable' is from 'dart:core'.
- 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/rajeshkumar/Desktop/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
informationCollector: (StringBuffer buff) {
^
file:///Users/rajeshkumar/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/svg/parser_state.dart:408:22: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
- 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/rajeshkumar/Desktop/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
context: 'in _Element.clipPath',
^
file:///Users/rajeshkumar/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/svg/parser_state.dart:798:31: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.
- 'StringBuffer' is from 'dart:core'.
- 'Iterable' is from 'dart:core'.
- 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/rajeshkumar/Desktop/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
informationCollector: (StringBuffer buff) {
^
file:///Users/rajeshkumar/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/svg/parser_state.dart:809:18: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
- 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/rajeshkumar/Desktop/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
context: 'in parseSvgElement',
^
file:///Users/rajeshkumar/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/utilities/errors.dart:8:32: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
- 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/rajeshkumar/Desktop/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
context: 'in $methodName',
^
file:///Users/rajeshkumar/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/utilities/errors.dart:10:29: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.
- 'StringBuffer' is from 'dart:core'.
- 'Iterable' is from 'dart:core'.
- 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/rajeshkumar/Desktop/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
informationCollector: (StringBuffer buff) {

@jacob314
Copy link
Contributor

Sorry for the inconvenience. You need to upgrade to flutter_svg version 0.13.0 or newer which contains the fix. https://pub.dev/packages/flutter_svg

@jacob314
Copy link
Contributor

cool_ui-0.1.15
I've sent out a pull request to update cool_ui to be compatible with flutter 1.7. Im-Kevin/cool_ui#20

@kyleorin
Copy link

kyleorin commented Jul 10, 2019

@puneetsdsharma65 see the messages above - you need to update to flutter_image 2.0.0

@tvolkert how can I update though? just updated to v1.7.8+hotfix.3 and got this error message.

@tvolkert
Copy link
Contributor

@CosmoInSpace flutter_image isn't shipped with the flutter SDK - it's an independent package. You update your pubspec.yaml to pull in the new version.

@kyleorin
Copy link

@CosmoInSpace flutter_image isn't shipped with the flutter SDK - it's an independent package. You update your pubspec.yaml to pull in the new version.

Cheers thanks @tvolkert

@andrewsdv
Copy link

@puneetsdsharma65 see the messages above - you need to update to flutter_image 2.0.0

@tvolkert how can I update though? just updated to v1.7.8+hotfix.3 and got this error message.

The same to me. How to solve this issue??

@andrewsdv
Copy link

@puneetsdsharma65 see the messages above - you need to update to flutter_image 2.0.0

@tvolkert how can I update though? just updated to v1.7.8+hotfix.3 and got this error message.

Ah, just noticed that flutter_svg has newer version (v0.13.0). And upgrading to this version fixes the issue. Haven't noticed the newer version because it was hidden under ellipses here https://github.com/dnfield/flutter_svg/releases. Strange that GitHub hides the latest versions. What for?? It's weird..

@tvolkert
Copy link
Contributor

@andrewsdv the version is picked up from Pub, not Github -- https://pub.dev/packages/flutter_svg

@gondaimgano
Copy link

Guys I am completely stuck after upgrading to the 1.7.8+hotfix.3 I have been unable to compile in iOS. I have tried downgrading back to 1.5 but the error is still there. I have tried creating a new project and just once it managed to compile to the simulator. After that its been giving me nightmares. Please please. When is this issue going to be resolved. We are dealing with tight timelines for my clients projects. I am now at an advanced stage of the project. Please I need a resolution to this. This is severe.

@samfrank
Copy link

My fix for this was to update the flutter_svg to 0.13.0

@CarrieUp
Copy link

CarrieUp commented Aug 3, 2019

Same issue for Flutter 1.7.8+hotfix.4
even I upgrade flutter_image to ^2.0.0 and flutter_image_compress to ^0.4.0

Compiler message:
file:///T:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-0.4.0/lib/flutter_image_compress.dart:188:16: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.

  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///T:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
    context: 'image load failed ',
    ^
    file:///T:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-0.4.0/lib/flutter_image_compress.dart:196:32: Error: No named parameter with the name 'onError'.
    stream.addListener(listener, onError: errorListener);
    ^^^^^^^
    file:///T:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-0.4.0/lib/flutter_image_compress.dart:198:27: Error: The argument type 'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
  • 'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' ('file:///T:/flutter/packages/flutter/lib/src/painting/image_stream.dart').
  • 'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///T:/flutter/packages/flutter/lib/src/painting/image_stream.dart').
    Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
    stream.removeListener(listener);
    ^
    Compiler terminated unexpectedly.

FAILURE: Build failed with an exception.

  • Where:
    Script 'T:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 638

  • What went wrong:
    Execution failed for task ':app:compileflutterBuildStagingReleaseArm'.

Process 'command 'T:\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 24s
Running Gradle task 'assembleStagingRelease'...
Running Gradle task 'assembleStagingRelease'... Done 25.9s
Gradle task assembleStagingRelease failed with exit code 1

@tvolkert
Copy link
Contributor

tvolkert commented Aug 3, 2019

@CarrieUp have you tried updating your dependency on flutter_image_compress? It looks like it's up to version 0.6.3, and you're using 0.4.0.

@CarrieUp
Copy link

CarrieUp commented Aug 4, 2019

@CarrieUp have you tried updating your dependency on flutter_image_compress? It looks like it's up to version 0.6.3, and you're using 0.4.0.

@tvolkert thank you so much, I solve the problem by your suggestion: upgrading dependency on flutter_image_compress version to 0.6.3

@kawynsean
Copy link

Running into the same issue as well. Looks like I just need to update my dependencies. New to this so thanks for any help!

Compiler message:

Compiler message:
file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.2.1+1/lib/src/config.dart:4:31: Error: Type 'core.Config' not found.
abstract class Config extends core.Config {
^^^^^^^^^^^
file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.2.1+1/lib/src/widget_factory.dart:19:14: Error: Type 'core.Config' not found.
set config(core.Config config) {
^^^^^^^^^^^
file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/svg.dart:158:18: Error: The argument type 'String' can't be assigned to the
parameter type 'DiagnosticsNode'.

  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
    context: 'picture failed to precache',
    ^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/picture_provider.dart:335:20: Error: The argument type 'String' can't be
    assigned to the parameter type 'DiagnosticsNode'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
    context: 'while resolving a picture',
    ^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/picture_provider.dart:337:33: Error: The argument type 'Null
    Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.
  • 'StringBuffer' is from 'dart:core'.
  • 'Iterable' is from 'dart:core'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
    informationCollector: (StringBuffer information) {
    ^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/picture_provider.dart:432:31: Error: The argument type 'Null
    Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.
  • 'StringBuffer' is from 'dart:core'.
  • 'Iterable' is from 'dart:core'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
    informationCollector: (StringBuffer information) {
    ^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/picture_provider.dart:495:31: Error: The argument type 'Null
    Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.
  • 'StringBuffer' is from 'dart:core'.
  • 'Iterable' is from 'dart:core'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
    informationCollector: (StringBuffer information) {
    ^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/picture_provider.dart:559:31: Error: The argument type 'Null
    Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.
  • 'StringBuffer' is from 'dart:core'.
  • 'Iterable' is from 'dart:core'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
    informationCollector: (StringBuffer information) {
    ^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/picture_stream.dart:256:16: Error: The argument type 'String' can't be
    assigned to the parameter type 'DiagnosticsNode'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
    context: context,
    ^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/picture_stream.dart:301:18: Error: The argument type 'String' can't be
    assigned to the parameter type 'DiagnosticsNode'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
    context: 'resolving a single-frame picture stream',
    ^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/svg/parser_state.dart:399:35: Error: The argument type 'Null
    Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.
  • 'StringBuffer' is from 'dart:core'.
  • 'Iterable' is from 'dart:core'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
    informationCollector: (StringBuffer buff) {
    ^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/svg/parser_state.dart:408:22: Error: The argument type 'String' can't be
    assigned to the parameter type 'DiagnosticsNode'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
    context: 'in _Element.clipPath',
    ^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/svg/parser_state.dart:798:31: Error: The argument type 'Null
    Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.
  • 'StringBuffer' is from 'dart:core'.
  • 'Iterable' is from 'dart:core'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
    informationCollector: (StringBuffer buff) {
    ^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/svg/parser_state.dart:809:18: Error: The argument type 'String' can't be
    assigned to the parameter type 'DiagnosticsNode'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
    context: 'in parseSvgElement',
    ^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_advanced_networkimage-0.4.15/lib/src/flutter_advanced_networkimage.dart:149:29: Error: The
    argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.
  • 'StringBuffer' is from 'dart:core'.
  • 'Iterable' is from 'dart:core'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
    informationCollector: (StringBuffer information) {
    ^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_advanced_networkimage-0.4.15/lib/src/flutter_advanced_networksvg.dart:106:29: Error: The argument
    type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.
  • 'StringBuffer' is from 'dart:core'.
  • 'Iterable' is from 'dart:core'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
    informationCollector: (StringBuffer information) {
    ^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-1.5.3/lib/flare.dart:1028:18: Error: The argument type 'Int32List' can't be assigned to the
    parameter type 'Uint16List'.
  • 'Int32List' is from 'dart:typed_data'.
  • 'Uint16List' is from 'dart:typed_data'.
    Try changing the type of the parameter, or casting the argument to 'Uint16List'.
    indices: _indices, textureCoordinates: _uvBuffer);
    ^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/utilities/errors.dart:8:32: Error: The argument type 'String' can't be
    assigned to the parameter type 'DiagnosticsNode'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
    context: 'in $methodName',
    ^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.12.4+1/lib/src/utilities/errors.dart:10:29: Error: The argument type 'Null
    Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.
  • 'StringBuffer' is from 'dart:core'.
  • 'Iterable' is from 'dart:core'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
    informationCollector: (StringBuffer buff) {
    ^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.2.1+1/lib/src/html_widget.dart:39:11: Error: No named parameter with the name
    'wf'.
    wf: wf,
    ^^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.2.1+1/lib/src/html_widget.dart:54:13: Error: Getter not found: 'wf'.
    return (wf ?? extended.WidgetFactory())..config = this;
    ^^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.2.1+1/lib/src/html_widget.dart:54:13: Error: The getter 'wf' isn't defined for
    the class 'HtmlWidget'.
  • 'HtmlWidget' is from 'package:flutter_widget_from_html/src/html_widget.dart'
    ('file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.2.1+1/lib/src/html_widget.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'wf'.
    return (wf ?? extended.WidgetFactory())..config = this;
    ^^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.2.1+1/lib/src/widget_factory.dart:19:19: Error: 'Config' isn't a type.
    set config(core.Config config) {
    ^^^^^^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.2.1+1/lib/src/widget_factory.dart:20:11: Error: Superclass has no setter named
    'config'.
    super.config = config;
    ^^^^^^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.2.1+1/lib/src/widget_factory.dart:36:21: Error: The getter 'onTapUrl' isn't
    defined for the class 'Config'.
  • 'Config' is from 'package:flutter_widget_from_html/src/config.dart'
    ('file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.2.1+1/lib/src/config.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'onTapUrl'.
    () => _config.onTapUrl != null
    ^^^^^^^^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.2.1+1/lib/src/widget_factory.dart:37:21: Error: The method 'onTapUrl' isn't
    defined for the class 'Config'.
  • 'Config' is from 'package:flutter_widget_from_html/src/config.dart'
    ('file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.2.1+1/lib/src/config.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'onTapUrl'.
    ? _config.onTapUrl(url)
    ^^^^^^^^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_advanced_networkimage-0.4.15/lib/src/transition_to_image.dart:254:33: Error: The argument type
    'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
  • 'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/painting/image_stream.dart').
  • 'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/painting/image_stream.dart').
    Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
    _imageStream.removeListener(_updateImage);
    ^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_advanced_networkimage-0.4.15/lib/src/transition_to_image.dart:303:49: Error: The argument type
    'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
  • 'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/painting/image_stream.dart').
  • 'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/painting/image_stream.dart').
    Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
    return oldImageStream?.removeListener(_updateImage);
    ^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_advanced_networkimage-0.4.15/lib/src/transition_to_image.dart:325:38: Error: The argument type
    'void Function(ImageInfo, bool)' can't be assigned to the parameter type 'ImageStreamListener'.
  • 'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/painting/image_stream.dart').
  • 'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///Users/kawynfurstoss/code/flutter/packages/flutter/lib/src/painting/image_stream.dart').
    Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
    oldImageStream?.removeListener(_updateImage);
    ^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_advanced_networkimage-0.4.15/lib/src/transition_to_image.dart:326:46: Error: No named parameter
    with the name 'onError'.
    _imageStream.addListener(_updateImage, onError: _catchBadImage);
    ^^^^^^^
    file:///Users/kawynfurstoss/code/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_widget_from_html-0.2.1+1/lib/src/widget_factory.dart:13:7: Error: The superclass, 'WidgetFactory',
    has no unnamed constructor that takes no arguments.
    class WidgetFactory extends core.WidgetFactory {
    ^

@tvolkert
Copy link
Contributor

@kawynsean your problem is originating from package:flutter_widget_from_html - I'd start by trying to update your dependency on that package.

@Christophe235
Copy link

My fix for this was to update the flutter_svg to 0.13.0

Yes.... This was all I needed!
Thanks @samfrank!

@kroikie
Copy link

kroikie commented Oct 13, 2019

@calvinmuller

This issue has been moved to firebase/flutterfire#385. Any further collaboration will be done there.

stuartmorgan pushed a commit to stuartmorgan/packages that referenced this issue May 12, 2021
* Update analysis options
* Clean up analysis errors
* Update/fix broken API calls

flutter/flutter#31962
@flutterq

This comment was marked as spam.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 30, 2021
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: API break Backwards-incompatible API changes c: crash Stack traces logged to the console customer: crowd Affects or could affect many people, though not necessarily a specific customer. p: firebase_crashlytics The Firebase Crashlytics plugin p: firebase Firebase plugins package flutter/packages repository. See also p: labels.
Projects
None yet
Development

No branches or pull requests