Nowadays, almost every app has an option to change its theme. Usually, these apps have three theme options: light, dark and system default. In this article, we will be focusing on the third option, i.e. system default.

YouTube tutorial:

In case you prefer tutorial videos over written tutorials, check out this YouTube video:

Coming soon…

Let’s begin!

Let’s start off by creating a new Flutter app, called auto_theme_app. I am using VS Code for this tutorial, but you can use any other IDE (like Android Studio) or even the terminal.

To create a new Flutter project in VS Code, press Ctrl + Shift

Adit Luhadia

A student and entusiastic Flutter developer from India.

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