This tutorial is an update to one of my previous post- Change flutter Application Theme dynamically using “bloc” which i wrote somethings ago, but since then, the flutter_bloc and the way we approach dynamic theming has changed. Therefore this tutorial is set to address the modern theming method and how to use hydrated_bloc to change and persist theme settings across app restart.

What we are creating

In this tutorial we are going to recreate the home page of my “ Dart tutorial app” with little adjustment. By the end of this tutorial we should have an app that looks like this

What is Software testing and why is it important?

Software testing is the process of evaluating the functionality of a software application with the intention to find whether the developed software met the specified requirements or not and to identify the defects to ensure that the product is defect free in order to produce the quality product. Software testing can be done in two ways:

  • Manual testing
  • Automated testing

Automated testing is the process of using automation tools to find the defects.

Automated tests help ensure that your app performs correctly before you publish it, while retaining your feature and bug fix velocity.

Flutter automated testing falls into three…

This is a simple flutter app that demonstrate how to validate user input and also handle focus node for the input fields for better user experience.


The app will have three text field to collect the username, email and password ,if the input are invalid as determined by our preset rules, we would simply display Invalid username, Invalid email address and Invalid password respectively as shown below.

Post app is a simple android application to display list of post from jsonplaceholder posts api using android architecture components. This article is my presentation note for the first meet-up for ALC 4.0 phase II android track in Osun state. This article is meant to give an introduction to working with some of the android architecture components.

Photo by Kristina Tripkovic on Unsplash


The app is going to be built using:

  • Kotlin as the programming language
  • Retrofit to connect to the post api
  • Kotlin coroutine for background processes
  • Data binding to bind views to data source
  • LiveDate and ViewModel
  • Navigation component

The application would have a…

For a More recent version of this article please check here

In this tutorial, we’re going to be implementing an app which allows user to change the theme of the app from light to dark or vice versa with the bloc and flutter_bloc package, we are going to use shared_preferences to persist the chosen theme and load it on the next app launch. At the end of the tutorial, our app should look like this.

If you don’t want to mess with resolving gradle problem, connecting to Internet, spending time synchronizing, building and troubleshooting gradle, please stay with your android studio 2.3 .

Meanwhile if you are someone that love to explore and get updated on new release of android studio, then you can follow this steps to open older android studio project on your new Android studio 3.0

firstly, understand the version of gradle that is required for each version of Android plug-in for gradle

Also download gradle-3.3 and unzip it your gradle directory

  1. Open the project : you may get error that…

Michael Adeyemo

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