Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Flutter dark mode example app

This App shows how to implement a settings screen where the user can choose whether to use dark mode, light mode or system mode and persist it in SharedPreferences.

Description

This app uses the ChangeNotifier and the provider package in order to notify the Material App Widget about theme changes.

Run the app

Either connect a device, start ios simulator or start a Android emulator. Afterwards run this command from the root of the project flutter run or flutter run -d <device_id>from the root of the project.

About

Choose between dark mode, light mode and system mode and store the selected theme in SharedPreferences

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages