-
Notifications
You must be signed in to change notification settings - Fork 768
Pros & Cons using Flex-Layout #674
Comments
Also having the same conversation with developers on the team. FlexLayout was used throughout by me, but now everyone is going through and moving them to CSS. One of the claims is that FlexLayout helps with cross-browser issues but to be honest I've not witnessed any and all the x-browser bugs are still open, so it seems like it doesn't really do anything in that regard. Another:
|
I love this question, because it gets at the core of what we're doing/planning in Flex Layout. I have good news and bad news for your concerns, and please let me know if you need more clarification. As OSS, we really try to make sure that our library is useful for everyone, but we understand that it's not going to be for everyone. Don't worry, our egos can handle that 😉.
Now to address some of the things Flex Layout offers that can't be matched in a CSS-only approach (or at least not easily).
I'd love to hear more from the community about these issues, we shape a lot of our design plan on community engagement/feedback (ie the CDK integration). If anyone has any further comments/concerns, please feel free to post them below. I'm also sure @ThomasBurleson might have some things to add, so I'll see if he wants to comment as well. |
I've a concern. Should we really trust this project? |
@matpag While it's true that Flex Layout is a small project, @ThomasBurleson are actively working on it with support from the rest of the Material team. So yes, you can trust us 😄. The reason for the perpetual beta stage of the project is because a lot of the functionality of the project has yet to be finalized. As you may have noticed over the past few weeks, we've introduced a ton of breaking changes between betas. Not to mention the changes we have in the pipeline (switching to the CDK layout engine for one), most of which are going to have to wait until the Ivy renderer has been completed (which will be well past v6). While the functionality of many of the core directives remains stable, we are still tweaking them and trying to improve them. And then there are the performance hits from using a directive-based layout library that we hope to resolve when the Ivy renderer comes out. We understand the frustration/turn-off of using a project still in beta, but it gives us the flexibility to improve the project at a faster pace for now while we work out what the "stable" version of the library will look like. We'll hopefully have more updates on this over the next few months as Ivy is finalized and we can settle on a design. |
Thanks for your reply :) It's all clear now 👍 |
Thanks to all for the great feedback and help. This really helped us planning and also to convince my co-workers and management to keep Flex-Layout and also do the major updates to Angular 5 or 6. |
The more I used it, the more I realized its better to just use css as long as you are judicious about your cascade. For devs without as much experience stying, flex-layout is pretty cool. Also, as with most of the libraries right now, there are some hiccups when rendering from the server. |
@intellix I agree that there are some Angular Flex simply structures where my components will be placed, (columns and rows). @patrickmichalina It does help me more than using css for flex. I do understand flex more, and I feel that sometimes flex via css doesn't quite do what I want. flex-layout will always do what I want it to do. |
Closing since it seems like this thread has served its purpose. When the new docs site goes live, I'll most likely pull some of the salient points from here and put it in one easy-to-find place. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
At the moment for the development within an Angular 4 environment with Angular 2 dependencies me and my coding team have some different opinions regarding the use of flex-layout.
While I am in favor of using it they think it is better to use custom Markup/CSS or another Framework.
Their main cons are:
Are there any comparisons regarding frontend performance available?
What is the expected behavior?
Flex-Layout makes the crossbrowser development easier and still offers best performance compared to other solutions, especially for people with less flexbox, html & css know-how. Good integration with Angular.
What is the current behavior?
Flex-Layout has still issues in general and the additional JS-Layer may reduce performance of complex applications.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 4, Flex-Layout Beta 10/11, All Browsers - especially targeted are IE 11, FF52.3esr.
Is there anything else we should know?
Give some feedback to the above mentioned cons. Thanks.
The text was updated successfully, but these errors were encountered: