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

Allow taking screenshot after loadAppFonts(), before pump() #81

Merged
merged 4 commits into from
Nov 28, 2024

Conversation

passsy
Copy link
Owner

@passsy passsy commented Nov 28, 2024

The Banner widget reacts to font changes by marking the element as dirty. This caused capturing a screenshot to throw due to an assertion.

Before this never happened, because markNeedsPaint was always followed dirctly by a paint during pump().

I removed the assertions because the function works great without this check

@passsy passsy changed the title Allow taking screenshot after loadAppFonts(), before pump Allow taking screenshot after loadAppFonts(), before pump() Nov 28, 2024
@passsy
Copy link
Owner Author

passsy commented Nov 28, 2024

// cc @NickPeters97 @robiness

@passsy passsy merged commit f220020 into main Nov 28, 2024
6 checks passed
@passsy passsy deleted the screenshot-fix branch November 28, 2024 18:40
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.

1 participant