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

App cannot build on older Flutter verrsion - Throws Error: Member not found: 'MediaQuery.sizeOf #76

Closed
mdhanis31 opened this issue Oct 20, 2023 · 2 comments · Fixed by #81
Assignees
Labels
bug Something isn't working

Comments

@mdhanis31
Copy link

Could not build the application for the simulator.
Error (Xcode): ../../.pub-cache/hosted/pub.dev/wolt_modal_sheet-0.1.3/lib/src/content/components/paginating_group/main_content_animated_builder.dart:51:36: Error: Member not found: 'MediaQuery.sizeOf'.

@ulusoyca
Copy link
Collaborator

ulusoyca commented Oct 20, 2023

Hi @mdhanis31 this API is added recently to Flutter (3.10). If you are not using higher versions of Flutter you wont be able to get this working. Please use the previous version of the WoltModalSheet library meanwhile.

@TahaTesser This is something we should revert because this API is prevents using the package with the older versions of Flutter. Ping @yunusemrebakir maybe a hotfix?

@ulusoyca ulusoyca added the bug Something isn't working label Oct 20, 2023
@TahaTesser TahaTesser changed the title Error launching application on iPhone 14 Pro Max. App cannot build on older Flutter verrsion - Throws Error: Member not found: 'MediaQuery.sizeOf Oct 20, 2023
@ulusoyca
Copy link
Collaborator

@mdhanis31 We just released 0.1.4 that should fix your issue if your Flutter version is at least has the version released in last 1 year

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants