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: header_bar.dart does a platform check prior to checking kIsWeb #88

Merged

Conversation

The-Funk
Copy link

@The-Funk The-Funk commented Nov 11, 2023

Due to how Platform checks are implemented in Flutter, attempting to check the system Platform from the context of a web application causes exceptions/crashes.

To fix this, we just need to check if kIsWeb prior to doing checks with Platform.isFoo()

…o checking if application is running in web
@The-Funk The-Funk changed the title fixes a bug in header_bar.dart where a platform check is done prior to checking if application is running in web fix: header_bar.dart does a platform check is done prior to checking kIsWeb Nov 11, 2023
@The-Funk The-Funk changed the title fix: header_bar.dart does a platform check is done prior to checking kIsWeb fix: header_bar.dart does a platform check prior to checking kIsWeb Nov 11, 2023
Copy link
Member

@prateekmedia prateekmedia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks.

@prateekmedia prateekmedia merged commit fac0f49 into gtk-flutter:main Dec 19, 2023
1 of 2 checks passed
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