flutter 更改主题
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教程: (YouTube tutorial:)
In case you prefer tutorial videos over written tutorials, check out this YouTube video:
如果您更喜欢教程视频而不是书面教程,请观看以下YouTube视频:
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.
让我们从创建一个名