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

Not working with last flutter stable version: Flutter 1.20.0 • channel stable #205

Closed
hazzo opened this issue Aug 5, 2020 · 7 comments

Comments

@hazzo
Copy link

hazzo commented Aug 5, 2020

Hi I created a project from scratch and added the package to my pubspec.yaml.
The project it's outputting this errors.

../../../.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.51.0/lib/src/platform_app.dart:67:23: Error: Type 'ActionFactory' not found.
  final Map<LocalKey, ActionFactory> actions;
                      ^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.51.0/lib/src/platform_app.dart:96:21: Error: Type 'ActionFactory' not found.
      Map<LocalKey, ActionFactory> actions,
                    ^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.51.0/lib/src/platform_app.dart:152:21: Error: Type 'ActionFactory' not found.
      Map<LocalKey, ActionFactory> actions,
                    ^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.51.0/lib/src/platform_app.dart:219:23: Error: Type 'ActionFactory' not found.
  final Map<LocalKey, ActionFactory> actions;
                      ^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.51.0/lib/src/platform_app.dart:67:23: Error: 'ActionFactory' isn't a type.
  final Map<LocalKey, ActionFactory> actions;
                      ^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.51.0/lib/src/platform_app.dart:96:21: Error: 'ActionFactory' isn't a type.
      Map<LocalKey, ActionFactory> actions,
                    ^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.51.0/lib/src/platform_app.dart:152:21: Error: 'ActionFactory' isn't a type.
      Map<LocalKey, ActionFactory> actions,
                    ^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.51.0/lib/src/platform_app.dart:219:23: Error: 'ActionFactory' isn't a type.
  final Map<LocalKey, ActionFactory> actions;
                      ^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.51.0/lib/src/platform_app.dart:312:30: Error: The argument type 'Map<LocalKey, invalid-type>' can't be assigned to the parameter type 'Map<Type, Action<Intent>>'.
 - 'Map' is from 'dart:core'.
 - 'LocalKey' is from 'package:flutter/src/foundation/key.dart' ('../flutter/packages/flutter/lib/src/foundation/key.dart').
 - 'Type' is from 'dart:core'.
 - 'Action' is from 'package:flutter/src/widgets/actions.dart' ('../flutter/packages/flutter/lib/src/widgets/actions.dart').
 - 'Intent' is from 'package:flutter/src/widgets/actions.dart' ('../flutter/packages/flutter/lib/src/widgets/actions.dart').
      actions: data?.actions ?? actions,
                             ^
../../../.pub-cache/hosted/pub.dartlang.org/flutter_platform_widgets-0.51.0/lib/src/platform_app.dart:363:30: Error: The argument type 'Map<LocalKey, invalid-type>' can't be assigned to the parameter type 'Map<Type, Action<Intent>>'.
 - 'Map' is from 'dart:core'.
 - 'LocalKey' is from 'package:flutter/src/foundation/key.dart' ('../flutter/packages/flutter/lib/src/foundation/key.dart').
 - 'Type' is from 'dart:core'.
 - 'Action' is from 'package:flutter/src/widgets/actions.dart' ('../flutter/packages/flutter/lib/src/widgets/actions.dart').
 - 'Intent' is from 'package:flutter/src/widgets/actions.dart' ('../flutter/packages/flutter/lib/src/widgets/actions.dart').
      actions: data?.actions ?? actions,
                             ^

The current flutter version that I'm using.

Flutter 1.20.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 840c9205b3 (13 hours ago) • 2020-08-04 20:55:12 -0700
Engine • revision c8e3b94853
Tools • Dart 2.9.0

Thanks!

@Aulig
Copy link

Aulig commented Aug 5, 2020

Yup, same issue here after upgrading flutter.

@aqwert
Copy link
Collaborator

aqwert commented Aug 5, 2020

I am putting out a release now You can point to the Beta branch if required until then

@hazzo
Copy link
Author

hazzo commented Aug 5, 2020

Great thanks @aqwert!

@aqwert
Copy link
Collaborator

aqwert commented Aug 5, 2020

Downside of this package is that it needs to match the exact version of flutter. They made a breaking change between v1.17 and v1.20 which I need to make sure is kept up to date. There will always be a few hours where they release flutter before I can release an update.

@VictorUvarov
Copy link

Thanks @aqwert for being so fast to update the package. I didn't know that the versions had to be in sync.

@aqwert
Copy link
Collaborator

aqwert commented Aug 5, 2020

I have updated pub with version 0.60.1. This should work for you now.

This version only works for flutter v1.20 an up. pub.dev have not updated their static analysis so it thinks it is still targeting flutter 1.17.5. Should still work if you are on flutter v1.20

@aqwert aqwert closed this as completed Aug 5, 2020
@agordeev
Copy link

agordeev commented Aug 7, 2020

@aqwert you're the best, thank you!

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

No branches or pull requests

5 participants