Navigation Mistake In Jetpack Compose

  Рет қаралды 1,579

Daniel Atitienei

Daniel Atitienei

Ай бұрын

In this video, you'll learn about how to not make an often encountered navigation mistake in Jetpack Compose
Let's connect 🤗:
/ daniel-atitienei
Blog: / daniel.atitienei
Do you like my content? Here you can buy me a coffee ☕:
www.buymeacoffee.com/danielat...

Пікірлер: 18
@neerajverma9226
@neerajverma9226 Күн бұрын
Can you explain proper way to use type-safe navs under Nested Navigation?
@vengateshm2122
@vengateshm2122 29 күн бұрын
Useful tip.
@daniel.atitienei
@daniel.atitienei 29 күн бұрын
Glad it was helpful!
@vengateshm2122
@vengateshm2122 29 күн бұрын
@@daniel.atitienei Same can be used while navigating to other screen also.
@muhammadhassaan1990
@muhammadhassaan1990 26 күн бұрын
in this case, why you won’t use navigateUp() instead of popBackStack() for Back button?
@muhammadhassaan1990
@muhammadhassaan1990 26 күн бұрын
simple solution, isn’t it ?
@raja_uma1r
@raja_uma1r 24 күн бұрын
Then you won't be watching this video if he did that! Lol
@daniel.atitienei
@daniel.atitienei 24 күн бұрын
Didn't know about that 😅
@SunAndMoon-zc9vd
@SunAndMoon-zc9vd 11 күн бұрын
It is nice to see the solution, but I would also have liked to hear more about what exactly lines 105 and on mean :)
@daniel.atitienei
@daniel.atitienei 11 күн бұрын
When you press on the back button the app lifecycle changes. That line checks if the app lifecycle is RESUMED. RESUMED means that the app is now focused and the user can interact with the app.
@vijaya5171
@vijaya5171 28 күн бұрын
How does it differ from launchSingleTop in navigation from screen 1 to screen 2 if we press screen 1 button multiple times?
@daniel.atitienei
@daniel.atitienei 27 күн бұрын
I think it will open only once the screen 2, but if you navigate back by pressing multiple times it should have the same behaviour.
@adagabranca
@adagabranca 17 күн бұрын
I'm pretty sure navigation has something called popUpTo and popUpToInclusive that resolves the matter no ?
@daniel.atitienei
@daniel.atitienei 15 күн бұрын
No because that is used when you navigate to a next screen to remove the previous one from back stack.
Shared Element Transition In Jetpack Compose
12:44
Daniel Atitienei
Рет қаралды 522
DON'T Do This Jetpack Compose Mistake 😅
1:00
Philipp Lackner
Рет қаралды 41 М.
Why You Should Always Help Others ❤️
00:40
Alan Chikin Chow
Рет қаралды 8 МЛН
WHY IS A CAR MORE EXPENSIVE THAN A GIRL?
00:37
Levsob
Рет қаралды 16 МЛН
狼来了的故事你们听过吗?#天使 #小丑 #超人不会飞
00:42
超人不会飞
Рет қаралды 62 МЛН
Super sport🤯
00:15
Lexa_Merin
Рет қаралды 20 МЛН
You might not need useEffect() ...
21:45
Academind
Рет қаралды 145 М.
What's new in Android development tools
43:40
Android Developers
Рет қаралды 24 М.
How to Implement a Shared Element Transition In Jetpack Compose
16:56
Philipp Lackner
Рет қаралды 12 М.
How To Start Your Freelance Programming Career
7:34
Daniel Atitienei
Рет қаралды 581
Building a scalable, modularized, testable app from scratch
21:31
Android Developers
Рет қаралды 156 М.
Type-Safe Navigation with the OFFICIAL Compose Navigation Library
10:03
Learn Expo Router - Complete Tutorial
23:23
Cosden Solutions
Рет қаралды 49 М.
The (almost) perfect Neovim setup for Node.js
20:37
Dreams of Code
Рет қаралды 67 М.
Anaconda (Conda) for Python - What & Why?
26:10
Academind
Рет қаралды 216 М.
Will new In Sha Allah🤲🏼
0:17
ARGEN
Рет қаралды 21 МЛН
Огромная семья 😳
0:25
Фильмы I Сериалы
Рет қаралды 2,5 МЛН
Car $0 vs $1000000
0:24
Anh Tóc Đỏ TV
Рет қаралды 6 МЛН
Smart girl 😱🤢 LeoNata family #shorts
0:23
LeoNata Family
Рет қаралды 5 МЛН
Как правильно есть роллы 🤔
0:58
BLACK OCEAN
Рет қаралды 11 МЛН