-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Advanced layout strategies (grid, floating text, etc.) #34
Comments
I like to mention elm-ui for inspiration – as an alternative to CSS concepts. |
A, kindly ignore. I just saw that elm-ui is already on your radar. :) |
EDIT: Stretch has become unmaintained, but has a well maintained fork in Taffy (https://github.com/DioxusLabs/taffy) |
@hecrj I've been looking into what it would take to implement Taffy's layout modes (Flexbox and CSS Grid) as an Iced widget. I have a working prototype of a Grid widget at https://github.com/nicoburns/iced_taffy (checkout the Based on the experience of making this prototype I have a bit of a laundry list of changes to Iced that I'd like in order to make such an integration easier and more efficient:
There are other things I'd potentially like in future such as:
But I believe the above (particularly the Would you be open to PR's that made these changes? |
Update: Just saw #52 and wanted to add that:
|
@hecrj how is this going ? I'd like to implement a dynamic rows and columns layout, what is the right way to do at the moment please? |
Hi @videni Did you manage to achieve this? I also need to implement this in my project |
@sauntheninja2 , I integrated taffy for the grid feature, it works as expected, but still in early age, demo only , it is lack of critical features:
if you like , here is the gist about the naive implemention |
Currently,
iced_native
only supports flexbox items. For instance, it is not possible to create a grid of items or make text float around an image.We will need to enhance the layouting engine to support different strategies and improve the way we measure text to lay it out in a more flexible way.
The text was updated successfully, but these errors were encountered: