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

Responsive widget #1193

Merged
merged 10 commits into from
Jan 13, 2022
Merged

Responsive widget #1193

merged 10 commits into from
Jan 13, 2022

Conversation

hecrj
Copy link
Member

@hecrj hecrj commented Jan 12, 2022

This PR introduces a widget that is aware of its dimensions: Responsive.

A Responsive widget takes a view closure that produces its contents. This view closure will be provided with the current Size of the Responsive widget and, therefore, can be used to build the contents of the widget in a responsive way!

A Responsive widget will always try to fill all the available space of its parent.

Responsive widget

Closes #1120.

@hecrj hecrj added the feature New feature or request label Jan 12, 2022
@hecrj hecrj added this to the 0.4.0 milestone Jan 12, 2022
@hecrj hecrj merged commit 15a13a7 into master Jan 13, 2022
@hecrj hecrj deleted the responsive-widget branch January 13, 2022 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get bounds of a container?
1 participant