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

Update to latest Dart version, fix deprecations. #219

Merged
merged 9 commits into from
May 26, 2023

Conversation

gspencergoog
Copy link
Contributor

Description

This updates the Dart version in the pubspecs to 3.0, reformats the code, and fixes any analyzer errors that occured with that. This largely replaces #216, which I started with.

This also fixes deprecation warnings for using the singleton flutter window (ui.window). Where possible, it uses the PlatformDispatcher property requested, but for devicePixelRatio, it uses the PlatformDispatcher.instance.implicitView, defaulting to 1.0 if the implicit view isn't built. This is because most usages didn't have access to a context to fetch the current view from. We might want to reorganize things to make this possible in the future.

Related Issues

Tests

  • Updated generate test where relevant.

@gspencergoog gspencergoog changed the title Update to latest Dart version, fix deprecation errors. Update to latest Dart version, fix deprecations. May 25, 2023
@gspencergoog gspencergoog force-pushed the update_dart branch 3 times, most recently from 9e1740e to daf60fc Compare May 25, 2023 19:55
@gspencergoog gspencergoog force-pushed the update_dart branch 4 times, most recently from 28bf1d2 to 1a44a6d Compare May 25, 2023 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants