Photo by Joseph Barrientos on Unsplash

Navigating in Compose is easy

Navigating in Jetpack Compose is pretty simple as you may already know. You just declare a NavHost with all your destinations and a NavHostController that will remember the navigation state and will let you controll your navigation.

For example:

We’ve just created a navController using rememberNavController() so that navigation…

Photo by Matt Hardy on Unsplash

Hi, today I come to you with a quick tip on how to update your StateFlows safely in Kotlin.

Recently a new version of Kotlin Coroutines library was released with a few new extensions functions to help you with StateFlow updates. It all started with this issue:

Let’s see what…

https://unsplash.com/

See the original article on my website:
https://patrykkosieradzki.com/livedata-vs-sharedflow-and-stateflow-in-mvvm-and-mvi-architecture/

If you’re a Polish speaker then you can listen to a podcast I created, based on this article:

Last year kotlinx.coroutines library introduced two new Flow types, SharedFlow and StateFlow, which also have their mutable types — MutableSharedFlow and MutableStateFlow.

Android…

See the original article on my website:
https://patrykkosieradzki.com/best-git-practices-for-managing-your-project/

Having troubles managing git history in your project? You should read this.

In this article we’ll talk about best git practices for managing your project. Follow these rules to keep your project well-documented and to avoid future problems with your project’s git tree.

Creating new branches

Main branches

At the core, the development model is greatly inspired by existing…

Patryk Kosieradzki

Senior Android Developer, ProAndroidDev writer, “AndroidTalks” podcast owner

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store