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

Compatibility with Flutter 3.0 #7

Open
bounty1342 opened this issue May 28, 2022 · 2 comments
Open

Compatibility with Flutter 3.0 #7

bounty1342 opened this issue May 28, 2022 · 2 comments

Comments

@bounty1342
Copy link

: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
../…/src/resizeUtil.dart:87
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../flutter/packages/flutter/lib/src/widgets/binding.dart').
package:flutter/…/widgets/binding.dart:1
  double get textScaleFactor => WidgetsBinding.instance!.window.textScaleFactor;
@ricardormzglez
Copy link

I had the same error. I solved with this:
return Resize( builder: () => MaterialApp( ... );

@bounty1342
Copy link
Author

The issue is that now with flutter3.0 the field is not nullable.

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