dynamic_theming 1.0.1 copy "dynamic_theming: ^1.0.1" to clipboard
dynamic_theming: ^1.0.1 copied to clipboard

PlatformAndroid

A Flutter package for automatic theme switching based on light sensor (lux).

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
    
0
likes
150
points
147
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for automatic theme switching based on light sensor (lux).

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, light_sensor, provider, shared_preferences

More

Packages that depend on dynamic_theming