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

Fix some warnings and replace deprecated items #131

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

Abestanis
Copy link
Collaborator

The MR is build on top of #130.

This fixes some warnings that have popped up in the new Flutter version.

There are some problematic areas:

  • textScaleFactor is deprecated in favour of textScaler to support non-linear scaling:
    Except for a few instances I did not do anything with this warning, because it is not a simple replacement. We rely on the the textscale factor in some places for layout. Replacing the factor with the text-scaler will require us to provide the font size of the text that we are trying to account for. I left this for a future merge request.
  • ColorScheme background and onBackground are deprecated in favour of surface and onSurface. Unfortunately we were already using different colors for surface and onSurface, but background was the same color as secondaryContainer, so I added onSecondaryContainer with the old onBackground color and used that throughout the app.

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

Successfully merging this pull request may close these issues.

None yet

1 participant