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 after upgrading Flutter 3.0 #297

Closed
kjessie00 opened this issue May 16, 2022 · 3 comments
Closed

error after upgrading Flutter 3.0 #297

kjessie00 opened this issue May 16, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@kjessie00
Copy link

Not directly but from your dependency package "visibility_detector-0.2.2", which has been fixed and upgraded to 0.3.3 recently.

../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/visibility_detector-0.2.2/lib/src/visibility_detector_layer.dart:126:28: Warning: Operand of null-aware operation '?.' has type 'RendererBinding' which excludes null.

  • 'RendererBinding' is from 'package:flutter/src/rendering/binding.dart' ('../../Development/flutter/packages/flutter/lib/src/rendering/binding.dart').
    assert(RendererBinding.instance?.renderView != null);
    ^
    ../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/visibility_detector-0.2.2/lib/src/visibility_detector_layer.dart:127:50: Warning: Operand of null-aware operation '!' has type 'RendererBinding' which excludes null.
  • 'RendererBinding' is from 'package:flutter/src/rendering/binding.dart' ('../../Development/flutter/packages/flutter/lib/src/rendering/binding.dart').
    var clipRect = Offset.zero & RendererBinding.instance!.renderView.size;
    ^
    ../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/visibility_detector-0.2.2/lib/src/visibility_detector_layer.dart:170:26: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../Development/flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance!.addPostFrameCallback((timeStamp) {
    ^
    ../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/visibility_detector-0.2.2/lib/src/visibility_detector_layer.dart:193:22: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
  • 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../../Development/flutter/packages/flutter/lib/src/scheduler/binding.dart').
    SchedulerBinding.instance!
@kjessie00 kjessie00 added the bug Something isn't working label May 16, 2022
@ethael
Copy link

ethael commented May 16, 2022

+1 for this problem

@SergeShkurko
Copy link
Member

Dublicate of #298

@yossefEl
Copy link

yossefEl commented May 30, 2022

I know this is not the best practice but it works for me until the next update.
I simply opened the auto animated package project folder located in : {{flutter_folder}}/.pub-cache/hosted/pub.dartlang.org/auto_animated-3.0.1/
and I updated the pubspec.yaml by changing the visibility_detector version:
to: visibility_detector: ^0.3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants