Flutter: Create a simple splash screen for Android

The Android system takes some decent amount of time to initialize the app’s processes. In case of an app created with Flutter there is additional initialization work involved for the Flutter engine to start. So the following two events occur before the user can the first screen of the app: …

Flutter: How to Build Intro Slider for your App

Create a new Flutter project Create a new stateful widget MyApp in main.dart Create a new stateful widget IntroSlider Create a new Widget EachPage Create an Indicator widget for the PageView Create a new Futter project, remove the existing code of the MyApp widget, and create a new stateless widget …

The problem that ViewModel solves

Let me start with the truth – “ViewModel is a choice , not a compulsion” . You can use any architecture that works for you , and probably you have one ( if you don’t then please have one as bloating your UI components is the worst practice ) . …

Leaking memory from ViewModel

In this post we are going to explore some of the problems that can be solved by using LiveData .  A ViewModel must never reference a view, Lifecycle, or any class that may hold a reference to the activity context.  A ViewModel lives longer than an Activity or a Fragment …

Android alert dialog using Kotlin

During the flow of any app we often need to prompt the user to make some decision e.g. Deleting a file , posting comment etc . Below is the most simple way to show a promt . Here we are using AlertDialog to show a single button dialog , we …

Create a list with RecyclerView in Kotlin

Lists are the most common ways of representing collections of similar data . Thus a RecyclerView is a widget that we Android developers have to deal with very frequently . Following are the steps involved in implementing a RecyclerView . In this tutorial we shall implement the recyclerview using Kotlin. …