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

adding missing argument 'devicePixelRatio' to FixedScrollMetrics decl… #4

Open
wants to merge 1 commit into
base: 0.5.1
Choose a base branch
from

Conversation

nilekell
Copy link

…arations

When I cloned the main branch and attempted to build the example with 'flutter run', I could not build as I was getting the error:

'The named parameter 'devicePixelRatio' is required, but there's no corresponding argument. Try adding the required argument.'

…arations

When I cloned the main branch and attempted to build the example with 'flutter run', I could not build as I was getting the error:

'The named parameter 'devicePixelRatio' is required, but there's no corresponding argument.
Try adding the required argument.'
@Kkangnu
Copy link

Kkangnu commented Aug 16, 2023

How about a code?
‘devicePixelRatio: metrics.devicePixelRatio,’

@badger3512
Copy link

You can also use:
devicePixelRatio: WidgetsBinding.instance.platformDispatcher.implicitView!.devicePixelRatio

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.

3 participants