Status Update
Comments
gr...@google.com <gr...@google.com> #2
Could we get an official response to this feature request? Is there an idea to support SafeArgs in navigation-compose one day? Not asking for any time frames. Maybe there is no plans for statically generated args for navigation-compose at all.
gr...@google.com <gr...@google.com> #3
Part 1-
Part 2-
Github repo-
gr...@google.com <gr...@google.com> #5
+1
ja...@gmail.com <ja...@gmail.com> #6
this library make it super easy if can you support this on the native way
gr...@google.com <gr...@google.com> #7
Here's a library that does just this:
gr...@google.com <gr...@google.com> #8
something similar to 'compose-destinations' should be officially available to the devs. Its a pain to manage all the parameters manually.
Currently, I am working with a custom NavType implementation with Gson.
se...@google.com <se...@google.com> #9
se...@google.com <se...@google.com> #10
Google team are there any news/priorities on this? Are you planning on improve the existing compose-navigation lib or this is going to not feasible😉?
ap...@google.com <ap...@google.com> #12
Re navigate
calls) from @Serializable
classes.
There's a lot of parts to this, so please bear with us. We'll make sure to write a public blog post explaining much of the reasoning and other alternatives we looked into when we're ready to make a public release.
na...@google.com <na...@google.com> #13
Branch: androidx-main
commit 5dc21cddd069edef368db19f15abc97388a429f2
Author: Clara Fok <clarafok@google.com>
Date: Wed Feb 21 09:59:02 2024
Implement routePattern generator for Serializable type T
Generate routePattern for type T where T is a concrete serializable class or object.
Args with default values are appended as query parameters, while args without are appended as path parameters.
Test: ./gradlew navigation:navigation-common:test
Bug: 188693139
Change-Id: Ie8527e46e31881747b3599a96d17a15019ea8305
M navigation/navigation-common/build.gradle
A navigation/navigation-common/src/main/java/androidx/navigation/serialization/RouteSerializer.kt
A navigation/navigation-common/src/test/java/androidx/navigation/serialization/RoutePatternTest.kt
M navigation/navigation-fragment/build.gradle
Description
Reproduction
Text
LazyColumn
(same length text inColumn
does not crash)See attached sample project. I use a larger font size there to speed up the reproduction (rendering 5k times 24sp is a lot faster than 50k times 14sp).
Stack trace