2d-inc / Flare-Flutter

Load and get full control of your Rive files in a Flutter project using this library.
https://rive.app/
MIT License
2.55k stars 469 forks source link

Compatibility with Flutter 1.5 and Dart 2.2.0 #94

Closed abd3llatif closed 5 years ago

abd3llatif commented 5 years ago

`file:///Users/USER/.pub-cache/hosted/pub.dartlang.org/flare_flutter-1.5.0/lib/flare.dart:1028:18: Error: The argument type 'Int32List' can't be assigned to the parameter type 'Uint16List'.

umberto-sonnino commented 5 years ago

Hey @AbdoXLabs the problem you're seeing has been reported a few times already, and it's related to some breaking changes in the Flutter API. We're currently providing our users with some different branches that should accomodate everyone's needs. From what I'm seeing on your error report, you should be able to use either the master or dev branch to fix your issue.

abd3llatif commented 5 years ago

Thank you @umberto-sonnino for your answer ! Can you give me an example of how I can I use the master or dev branch. I tried this in my pubspec.yaml but it doesn't work: flare_flutter: git: url: 'https://github.com/2d-inc/Flare-Flutter.git' path: 'flare_flutter'

It gives me this error : Invalid description in the "flare_flutter" pubspec on the "flare_dart" dependency: "../flare_dart" is a relative path, but this isn't a local pubspec.

umberto-sonnino commented 5 years ago

You should follow our README's directions. In your pubspec.yaml:

flare_flutter:
  git: 
    url: git://github.com/2d-inc/Flare-Flutter.git
    ref: dev
    path: flare_flutter

This'll target the dev branch. You can find more details on flutter.dev

umberto-sonnino commented 5 years ago

I will also close this issue since the problem as been fixed. Please refer to the README for details.