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

[IMPORTANT] auto_route needs fix for work on Flutter 3.0.0 #1065

Closed
kitsuniru opened this issue May 11, 2022 · 3 comments
Closed

[IMPORTANT] auto_route needs fix for work on Flutter 3.0.0 #1065

kitsuniru opened this issue May 11, 2022 · 3 comments

Comments

@kitsuniru
Copy link

Steps to Reproduce

Just update your flutter to latest 3.0.0 release

Actual results

auto_route-4.0.0/lib/src/router/widgets/auto_route_navigator.dart:47:22: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
 - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('/D:/flutter/packages/flutter/lib/src/widgets/binding.dart').
      WidgetsBinding.instance?.addPostFrameCallback((_) {
@yeras-is
Copy link

I think dart fix --apply could fix it, could you pls update package as soon as possible?

@MaximilianFlechtner
Copy link
Contributor

#1066 I fixed this

@Milad-Akarie
Copy link
Owner

AutoRoute version 4.0.1 fixes this.

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

4 participants