Btw, is there anyone here that has or is planning ...
# compose
n
Btw, is there anyone here that has or is planning to use Compose in a production app ? Sorry if it's something that has already been asked/asked regularly
👍 1
z
There are lots of us, yes.
3
n
Ok good to know, I'm currently switching a screen to Compose for a production app and wanted to check the number of "No don't do that !!" but on the compose channel I assume I won't get that much warnings... And it actually works so well I don't think I'll get that many issues
z
The best approach is to try it, test it (including making sure accessibility works), and if it meets all your needs for that particular case, then you’re good.
👍 1
y
I am currently writing an app meant for production but I dont think I will actually replace it with the old XML version until Compose is out of beta.
Although my main problem is the animation stuff on Compose. Other than that I dont have any major problems.
z
What were the problems?
y
This simple
Copy code
AnimatedVisibility
for example
z
So you found a bug? Did you file it?
👀 1
y
It is not as smooth as the one I have using XML by just setting
animateLayoutChanges
to true
z
ah
y
Uh, idk why I didnt think of that. I will now. The visible to invisible animation is doesnt show up properly if I do it too fast.
Also Compose Navigation doesnt support animations yet. I know I can add animations but they are not supported by the navigation library itself yet.
👍 1
z
What about using regular navigation, but using compose in your individual screens? I don’t expect a lot of apps will completely redo their navigation just to start adopting compose.
🤔 1
y
Yeah that's a better way if you want to push your app into production faster. But I am not in much of a rush really and want to fully commit to Compose since I am already fully rewriting my launcher with Compose. It has already made my work much much easier since for a launcher I need to let the user customize everything and it was such a pain using XML. Also I've seen ways to animate compose navigation transitions using fade animations and third party libraries, so if I really have to add animations before they officially support it, I will just use those instead of using the old system.
👍 1
c
We use it in prod! Small screen without much traffic, but we're experimenting and will be releasing full pages in compose soon since we haven't seen anything negative!