-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
zstack
view to compose views on top of each other (#737)
Adds a new `zstack` Xilem view (along with an accompanied Masonry widget). The view is inspired by the [ZStack view in SwiftUI](https://developer.apple.com/documentation/swiftui/zstack), which composes the child view on top of each other. This pull-request is still work-in-progress. - [x] It doesn't allow for changing the layout when BoxConstraints of the children are different. (top-left, top-right, bottom-left, bottom-right, center). - [x] I want to update `http_cat` to put copyright on top of image like seen below. <img width="500" alt="Screenshot 2024-11-10 at 17 46 45" src="https://github.com/user-attachments/assets/004d5779-142e-45a2-92d2-bdd5ddd9e2d1">
- Loading branch information
1 parent
cb58d7b
commit 84dce88
Showing
16 changed files
with
872 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
3 changes: 3 additions & 0 deletions
3
.../screenshots/masonry__widget__zstack__tests__zstack_alignment_bottom_center.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...screenshots/masonry__widget__zstack__tests__zstack_alignment_bottom_leading.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...creenshots/masonry__widget__zstack__tests__zstack_alignment_bottom_trailing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
.../screenshots/masonry__widget__zstack__tests__zstack_alignment_center_center.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...screenshots/masonry__widget__zstack__tests__zstack_alignment_center_leading.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...creenshots/masonry__widget__zstack__tests__zstack_alignment_center_trailing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...widget/screenshots/masonry__widget__zstack__tests__zstack_alignment_default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...get/screenshots/masonry__widget__zstack__tests__zstack_alignment_top_center.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...et/screenshots/masonry__widget__zstack__tests__zstack_alignment_top_leading.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...t/screenshots/masonry__widget__zstack__tests__zstack_alignment_top_trailing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
.../screenshots/masonry__widget__zstack__tests__zstack_alignments_self_aligned.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.