Leveraging fold operator in Kotlin flow to optimize Room DB upsertsHey everyone, today we will look into an interesting topic to optimize room DB upserts using fold in Kotlin flow. The case? We are working on a chat application where we fetch a list of chats in pages from the network and upsert it into DB as it is a...2ISNov 21, 2023 · 6 min readtusharpingale.hashnode.dev
Creating custom shapes with paths in jetpack composeIn Jetpack compose, we can clip our view with shapes such as Rounded rectangles, circles, etc. But what if we need to have our own shapes? Here comes to our rescue Paths. Let us take the below example of a chat message box. From the above image, as...Jul 31, 2022 · 5 min readtusharpingale.hashnode.dev
Building your own custom layout with jetpack composeIn jetpack compose there are different layouts such as Row, Column, and Box. When we need to align items in a horizontal fashion we use Row. For vertical alignment of items we use Columns and for stacking items one above the other we use the Box layo...1JJun 25, 2022 · 7 min readtusharpingale.hashnode.dev