-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
c: API breakBackwards-incompatible API changesBackwards-incompatible API changesc: crashStack traces logged to the consoleStack traces logged to the consolecustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.p: firebaseFirebase pluginsFirebase pluginsp: firebase_crashlyticsThe Firebase Crashlytics pluginThe Firebase Crashlytics pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
Description
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)
khainhero, chris-wickens, Zazo032, SaltumDis, mklim and 27 more
Metadata
Metadata
Assignees
Labels
c: API breakBackwards-incompatible API changesBackwards-incompatible API changesc: crashStack traces logged to the consoleStack traces logged to the consolecustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.p: firebaseFirebase pluginsFirebase pluginsp: firebase_crashlyticsThe Firebase Crashlytics pluginThe Firebase Crashlytics pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.