compose-router
flexbox-layout
compose-router | flexbox-layout | |
---|---|---|
7 | 6 | |
638 | 18,153 | |
- | -0.0% | |
0.0 | 0.0 | |
almost 2 years ago | about 1 year ago | |
Kotlin | Kotlin | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
compose-router
-
ViewModel: for UI business, not UI operations 😮
Compose router
-
compose-router VS compose-navigation-reimagined - a user suggested alternative
2 projects | 4 Feb 2022
- Am I the only one that feels Compose is a step backward?
-
Can we replace the need for Fragment with Jetpack Compose?
Many complain about Compose Navigation, with good reason, but there are alternatives out there, I use this one https://github.com/zsoltk/compose-router.
-
Android Jetpack Compose (Conditional Navigation)
I found this library to be a great replacement https://github.com/zsoltk/compose-router. The example contains a login logout state which is exactly what you are asking for.
-
Navigator Compose - A navigation library for Jetpack Compose
One thing I dislike about navigation component is the way it handle args. You don't need an arguments parameter because your destination is basically a composable function which can accept parameters (as it is a function). See compose-router.
-
A Jetpack Compose By Any Other Name Jake Wharton
The Badoo devs are working on this in both badoo/RIBs and also https://github.com/zsoltk/compose-router
flexbox-layout
- How do you make your grid recyclerview items fit with different screen sizes?
-
Animations and Performance in Nested RecyclerViews
In order to properly encapsulate the reaction view logic, we created a class that extends RecyclerView and has a bind method that takes in the list of reactions and updates the RecyclerView’s adapter with that list. Given that we had to support a multi-line layout, we initially looked into using GridLayoutManager to achieve this but ended up finding an open-source library by Google named flexbox-layout that provides a LayoutManager that supports laying out items in multiple flex-rows, which is exactly what we needed. Using these ingredients, we were able to get a simple version of our layout up and running. What’s next was adding custom animations and improving performance.
-
Am I the only one that feels Compose is a step backward?
You could use FlexBoxLayout, though that's for the old system.
-
Is it obligatory to use sp?
I would highly recommend using sp for text sizes as users can change the font size in their settings. So if someone has bad vision and large text, your app would be disregarding scaling the text up. This does make it more difficult to create layouts that work for all text sizes, but there are patterns such as a constraint layout flow or flex box which will make everything in one row if the content fits our stack on top of each other if it doesn't fit in a single row.
- New to iOS dev, how do I create something similar to flexbox layout (from Android) in SwiftUI?
-
Example where Flow widget in ConstraintLayout shines
This blog doesn't really mention the actual case Flow tries to solve. It is more akin to FlexBoxLayout where it can wrap the row/column if the child widget's size exceeds the size of the container.
What are some alternatives?
navigator - A small navigation library for Android to ease the use of fragment transactions & handling backstack (also available for Jetpack Compose).
android-flowlayout - Linear layout, that wrap its content to the next line if there is no space in the current line.
compose-navigation-reimagined - 🌈 Type-safe navigation library for Jetpack Compose
android-gridlayout - A backwards compatible implementation of GridLayout for Android
voyager - 🛸 A pragmatic navigation library for Jetpack Compose
MultiLineRadioGroup - Multi Line Radio Group is a Radio Group layout to show radio buttons in more than one line.
compose-destinations - Annotation processing library for type-safe Jetpack Compose navigation with no boilerplate.
FlowLayout - Android implementation of FlowLayout. Layout arranges its children in multiple rows depending on their width.
event-emitter - [ACTIVE] The event emitter allows you to register multiple observers, but enqueue events while there are no observers.
android-linear-layout-manager - Linear Layout Manager which supports WRAP_CONTENT
DragLinearLayout - Android LinearLayout with drag and drop to reorder.
SmartRefreshLayout - 🔥下拉刷新、上拉加载、二级刷新、淘宝二楼、RefreshLayout、OverScroll,Android智能下拉刷新框架,支持越界回弹、越界拖动,具有极强的扩展性,集成了几十种炫酷的Header和 Footer。