dynamic_theming

A Flutter package for dynamic theming based on light sensor readings. This package automatically switches between light and dark themes depending on the surrounding light level. It supports automatic theme switching for different platforms and offers integration with SharedPreferences for persistent theme storage.

Features

  • Dynamic Theme Switching: Automatically toggles between light and dark themes based on light sensor data.
  • Persistent Theme: Stores the selected theme using SharedPreferences so that the theme persists across app sessions.
  • Cross-Platform Support: Compatible with Android, iOS, Web, Linux, Windows, and macOS.
  • Customizable: Easily customize the themes and light/dark settings.

Installation

  1. Add the following dependency to your pubspec.yaml file:

    dependencies:
      dynamic_theming: ^1.0.0
    

Libraries

dynamic_theming