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

ResponsiveSizer triggers rebuild on IOS when app is sent to background #44

Closed
pamafe1976 opened this issue Jun 2, 2024 · 2 comments
Closed

Comments

@pamafe1976
Copy link

On IOS, When using ResponsiveSizer as parent of GetMaterialApp, a rebuild is triggered after the app has gone to background. This causes all type of build error for components down the tree.

Why is this rebuild necesary?
It does not happen in Android.

Regards

@CoderUni
Copy link
Owner

CoderUni commented Jun 3, 2024

Could you show me your code with ResponsiveSizer and GetMaterialApp?

Try wrapping the Home page with ResponsiveSizer instead of GetMaterialApp as well. That might fix the issue.

GetMaterialApp(
    home: ResponsiveSizer( //Home page here )
)

@pamafe1976
Copy link
Author

pamafe1976 commented Jun 3, 2024

This problem is not caused by ResponsiveSizer, since any access to context in the build seems to trigger a build when app goes to background in IOS.

I have created an issue in flutter #149555

This may end up being a flutter bug or normal platform behavior.

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