Sagar MalhotraforSagar Malhotrasagar0-0.hashnode.net·Feb 22, 2023Navigation Drawer in Jetpack Compose: A Complete GuideWe are going to use the Jetpack Navigation component for Compose and create a Drawer with multiple destinations. I will be directly creating the composables and explaining all the important things line by line in the comments. Output: Design Depend...Discuss·11 likes·60 readsandroidWithSagar
Sagar MalhotraforSagar Malhotrasagar0-0.hashnode.net·Feb 6, 2023Flow, SharedFlow, StateFlow and LiveData - A complete GuidePreviously, we used to create one request and then wait for our whole request to get completed. And after all this wait, we get our data to do any calculation. Example: You order 3 burgers and wait for all of them to get ready. This will be not a goo...Discuss·10 likes·32 readsandroidWithSagar
Sagar MalhotraforSagar Malhotrasagar0-0.hashnode.net·Feb 7, 2023Sealed vs Enum Classes in KotlinKotlin is a statically typed programming language designed to improve the productivity and readability of code. It provides several features that simplify the development process, including sealed classes and enum classes. These two types of classes ...Discuss·5 likesandroidWithSagar
Sagar MalhotraforSagar Malhotrasagar0-0.hashnode.net·Apr 21, 2023Firebase Google & Phone Auth in Jetpack ComposeIn this article, we will explore how to implement Firebase authentication using Google and Phone Auth in Jetpack Compose and provide step-by-step guidance for developers to create a robust and secure authentication system for their android applicatio...Discuss·1 likeandroidWithSagar
Sagar MalhotraforSagar Malhotrasagar0-0.hashnode.net·Apr 15, 2023Pass Arguments to Destinations : Jetpack Compose NavigationIntroduction: In Jetpack Compose, you can navigate between different screens using the NavController class from the Navigation component. Passing arguments to the Destination will be like adding Query param or Path to a URL. To pass arguments to the ...DiscussAndroid
Sagar MalhotraforSagar Malhotrasagar0-0.hashnode.net·Mar 21, 2023GoogleMaps in Jetpack Compose: Marking the Device LocationIn this article, we will be using android-maps-compose library and implementing GoogleMaps in Jetpack compose. Additionally, we will be also using Android’s Places SDK to get your device's last known location and mark it on Map. There was no dedicate...DiscussandroidWithSagar
Sagar MalhotraforSagar Malhotrasagar0-0.hashnode.net·Mar 12, 2023BottomSheet in Jetpack Compose: Implementation & CustomizationBottom Sheet is a widely used UI element in Android apps that appears as a sheet sliding up from the bottom of the screen, partially covering the content below it. It is used to display contextual information or actions that are related to the curren...Discuss·1 likeandroidWithSagar
Sagar MalhotraforSagar Malhotrasagar0-0.hashnode.net·Mar 8, 2023TabRow in Jetpack Compose: Implementation & CustomizationIn this article, we will be implementing and then customizing the feature of “switching between different screens with tabs” in Jetpack compose. Final Output: The provided TabRow design is so boring and old-fashioned (without a search bar). So, we a...Discuss·34 readsandroidWithSagar
Sagar MalhotraforSagar Malhotrasagar0-0.hashnode.net·Mar 3, 2023Highlight your Selected Drawer Item: Jetpack ComposeIn this article, we will be implementing the one missing feature of our Drawer in Compose, and that is to highlight the selected item so that the user will know which Screen you are in. Output: Implementation: This article is an extension of the pre...DiscussandroidWithSagar
Sagar MalhotraforSagar Malhotrasagar0-0.hashnode.net·Feb 28, 2023ScrollToTop Feature in LazyColumn: Jetpack ComposeIn this article, we’ll demonstrate how to incorporate the ScrollToTop feature, a widely-used functionality in Android, into a Jetpack Compose app. Pre-requisites- Kotlin, Jetpack Compose, LazyLists Output: Creating: In my actual project, I was using...DiscussandroidWithSagar
Sagar MalhotraforSagar Malhotrasagar0-0.hashnode.net·Feb 22, 2023Navigation Drawer in Jetpack Compose: A Complete GuideWe are going to use the Jetpack Navigation component for Compose and create a Drawer with multiple destinations. I will be directly creating the composables and explaining all the important things line by line in the comments. Output: Design Depend...Discuss·11 likes·60 readsandroidWithSagar
Sagar MalhotraforSagar Malhotrasagar0-0.hashnode.net·Feb 8, 2023Inline Functions in KotlinKotlin, a statically-typed programming language, was designed to be an improved version of Java. One of the notable features of Kotlin is the inline functions, which can significantly improve the performance of the code by reducing the overhead of fu...DiscussandroidWithSagar
Sagar MalhotraforSagar Malhotrasagar0-0.hashnode.net·Feb 7, 2023Sealed vs Enum Classes in KotlinKotlin is a statically typed programming language designed to improve the productivity and readability of code. It provides several features that simplify the development process, including sealed classes and enum classes. These two types of classes ...Discuss·5 likesandroidWithSagar