Fudge
11/15/2020, 3:42 PMcompose-navigation
, it seems like the api is quite akward to use. It requires predefining routes with Strings, and then specifying those Strings again when you want to navigate to those routes. And then passing parameters into the routes is a whole world of complication. What will you do when you need to pass real objects? Serialization?
Why not a solution that looks like this, in the way Flutter did it?
onClick = { navigate { TheOtherComposable(obj1, obj2) } }
Ian Lake
11/15/2020, 3:48 PMFudge
11/15/2020, 4:14 PMnavigate {}
.Ian Lake
11/15/2020, 4:21 PMKshitij Patil
11/15/2020, 4:36 PMval route: String
get() = this.label
.replace(" ", "")
.toLowerCase(Locale.ROOT)
of course my labels are always gonna be in English so I did this. If you've localized strings, please don't do this as routes are always going to be EnglishIan Lake
11/15/2020, 6:35 PM