Repository navigation
Fix Android toast animations and shadow rendering - #10
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed?
WRAP_CONTENToverlay window.Why?
After moving Android toasts into activity-scoped
WindowManageroverlays, the host window and ComposeAnimatedVisibilityboth contributed motion. Because the bottom overlay wasWRAP_CONTENT, collapsing and expanding its layout made fade, scale, spring, pop, and reveal frequently resemble the same slide animation. Window-level animations also varied between emulators and physical devices. Shadow blur was clipped at the compact window boundary.This change gives ToastKit a stable animation canvas while retaining the overlay architecture required to draw above dialogs, sheets, and detached LayoutKit tab bars.
How was it tested?
Automated checks:
composer test— 194 tests, 389 assertions passed../gradlew :app:compileDebugKotlinin the generated LayoutKit playground Android project.php artisan native:plugin:validate /Users/efekpoguavictory/plugins/toastkit.git diff --check.Manual/runtime checks:
Platforms tested
Breaking changes?
None. The PHP API, payload contract, animation names, directions, positions, timing configuration, and event behavior remain compatible.
Checklist