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 in new Flutter 3 #107

Closed
skylastn opened this issue Jun 12, 2022 · 8 comments
Closed

Error in new Flutter 3 #107

skylastn opened this issue Jun 12, 2022 · 8 comments

Comments

@skylastn
Copy link

../../../../System/flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-3.0.2/lib/flare_render_box.dart:167:26: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.

  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../../../System/flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance?.cancelFrameCallbackWithId(_frameCallbackID);
    ^
    ../../../../System/flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-3.0.2/lib/flare_render_box.dart:170:28: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.
  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../../../System/flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance?.scheduleFrameCallback(_beginFrame) ?? -1;
    ^
    ../../../../System/flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-3.0.2/lib/flare_render_box.dart:272:26: Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null.
  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../../../System/flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance?.cancelFrameCallbackWithId(_frameCallbackID);
@MuhammadMahrash
Copy link

Same issue

@marcos930807
Copy link
Owner

marcos930807 commented Jun 16, 2022

This a a flare issue, for the moment it is safe to ignore is more like a warning. When they fixed i will update de version of dependency.

@salahmusamac
Copy link

@marcos930807
use this
dependency_overrides:
flare_flutter :
git:
url: https://github.com/mdpe-ir/Flare-Flutter
path: flare_flutter
ref: stable

@tungvt80
Copy link

tungvt80 commented Jul 3, 2022

Nok work . When they fixed i will update de version of dependency.

@tripany
Copy link

tripany commented Jul 7, 2022

@marcos930807

Flare is not maintained anymore. You have to migrate to Rive 2 instead.

See https://github.com/2d-inc/Flare-Flutter

@marcos930807
Copy link
Owner

@marcos930807

Flare is not maintained anymore. You have to migrate to Rive 2 instead.

See https://github.com/2d-inc/Flare-Flutter

There is no easy migration from flare to Rive. Rive 2 is not fully backguard compatible, i do not have time to recreate al animation in rive2. So by now i will be using dependency override for the flare package pointing to a PR with the Fix.

@Ruslanbek0809
Copy link

Ruslanbek0809 commented Aug 23, 2022

If you still get issue using dependency override put it like this:

dependency_overrides:
  flare_flutter :
    git:
      url: https://github.com/mdpe-ir/Flare-Flutter
      path: flare_flutter
      ref: stable

It should work without a problem.

@marcos930807
Copy link
Owner

The version 3.0 is out with new Rive runtime for animation a some other changes. Now the problem is gone.

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

7 participants