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

Version conflicts with Flutter 3.x #18

Closed
zodako opened this issue Jun 1, 2022 · 4 comments
Closed

Version conflicts with Flutter 3.x #18

zodako opened this issue Jun 1, 2022 · 4 comments

Comments

@zodako
Copy link

zodako commented Jun 1, 2022

Hey there,

I am using mvc_application 8.12.0. I did an update for my app to Flutter 3. After solving some issues, I can not resolve these last three errors, mostly because I think those are dependencies in mvc_application. Do someone know any solution?

~/flutter/.pub-cache/hosted/pub.dartlang.org/l10n_translator-3.0.1/lib/src/l10n.dart:382:42: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.

  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('~/flutter/packages/flutter/lib/src/widgets/binding.dart').
    final systemLocales = WidgetsBinding.instance!.window.locales;
    ^
    ~/flutter/.pub-cache/hosted/pub.dartlang.org/mvc_application-8.12.0/lib/src/view/app_navigator.dart:405:34: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('~/flutter/packages/flutter/lib/src/widgets/binding.dart').
    String path = WidgetsBinding.instance!.window.defaultRouteName;
    ^
    ~/flutter/.pub-cache/hosted/pub.dartlang.org/mvc_application-8.12.0/lib/src/view/app.dart:188:34: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
  • 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('~/flutter/packages/flutter/lib/src/widgets/binding.dart').
    _window ??= WidgetsBinding.instance!.window;

Flutter Doctor (essential part)
[√] Flutter (Channel stable, 3.0.1, on Microsoft Windows [Version 10.0.19043.1706], locale de-DE)

Thanks for help me! :)

@Andrious
Copy link
Member

Andrious commented Jun 1, 2022

Hello there!

It would seem Flutter has changed some things allowing the 'null operator' (!) to no longer be necessary.
Allow me to look into it this morning.

Note, they are not errors, I believe, but Warnings. With that, your app should still be able to run...only with warnings.
Regardless, I will look into these Warnings.

Greg

@zodako
Copy link
Author

zodako commented Jun 2, 2022

Hello Greg,

of course you are right, it is only a warning and not an error, the app builds and starts perfectly :)

Thanks for looking into it!

Bernhard

@Andrious
Copy link
Member

Latest update have addressed the warning messages.

@zodako
Copy link
Author

zodako commented Jul 4, 2022

Thanks a lot! :)

@Andrious Andrious closed this as completed Jul 4, 2022
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

2 participants