-
Notifications
You must be signed in to change notification settings - Fork 483
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
NEW FEATURES: Drop Zone, Layout Builder, Window Background Blur #4441
base: main
Are you sure you want to change the base?
Conversation
Could you check it please? |
дай боб проверят 🙏🙏🙏🙏 |
I would love these features added to Flet @FeodorFitsner @ndonkoHenri |
No worries, we are looking into this PR and will provide the feedback. |
Wow! It's very good improvements! I'm looking forward to this features will release in next flet version |
Can you give an example of how |
While I like the added functionality in this PR I'd like to see it split into 3 separate PRs for DropZone, LayoutBuilder and acrylic affect. So we can discuss and merge them separately. Now I'm locked into "all or nothing". Can you do that please? |
I don't know. Right now I don't have time on that. Maybe some ppl can separate this repo. Maybe later I will be able to do it. At the moment I am adding everything to one repository to quickly update the flet functionality to my requirements. For this reason I did not make separate repositories. |
In my case, when I make the application small, I can automatically hide elements that do not fit the small window size. For example, you have a side menu, and the main viewer of the application. Make it, for example, 500 pixels wide - the left menu is hidden. No need to use cv anymore. Plus, the widget size can be calculated when the application starts. I think the code is not needed here. This functionality has long been available in other frameworks. As in flutter by default. Previously, to calculate the size of an element that was added using |
OK, got it. No worries. Thanks for the notes about LayoutBuilder. |
Sure, I can attempt it shortly. Would love to see this pushed.
Thanks a lot @FeodorFitsner. |
Description
New Feature: Layout Builder
Allows to know size,position of widget.
New Feature: DropZone
DropZone - widget that must have child widget (ft.Container as example) to drop files inside of it.
New Feature: WIndow Bacgkround Blur
Adding nice transparency effect to your Flet App.
Motivation
Such functionality should be by default in Flet. Such as DropZone, or LayoutBuilder, for building more complex interfaces. Acrylic - to make it look beautiful ;)
Knows Problem
LayoutBuilder may not be built correctly. In terms of, not fully optimized. But you at least have a working example of LayoutBuilder, maybe you should improve it. Because my knowledge of Dart is not good.
Test Code DropZone
Test Code Window Blur
Test Code LayoutBuilder
Type of change
Checklist
Screenshots
Additional details
Link to these features:
https://pub.dev/packages/desktop_drop
https://pub.dev/packages/flutter_acrylic
https://api.flutter.dev/flutter/widgets/LayoutBuilder-class.html
Summary by Sourcery
Add DropZone, LayoutBuilder, and Window background blur effect controls.
New Features: