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

AndreeWille/flutter-dark-mode-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors