Search packages, repositories and app categories

dynamic_color cover
Package detailsv2.1.0

dynamic_color

A Flutter package to create Material color schemes based on a platform's implementation of dynamic color.

AndroidmacOSWindowsLinux
30-day downloads
274K
Likes
638
Pub points
150

Install package

flutter pub add dynamic_color

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The dynamic_color package enables Flutter applications to generate Material color schemes that adapt to the platform's dynamic color implementation, such as Android's dynamic color or macOS's system appearance. It ensures consistent and visually cohesive themes across light and dark modes by leveraging system-level color preferences. This package simplifies theme creation by automatically adjusting colors based on user settings, enhancing accessibility and user experience. It integrates seamlessly with Flutter’s theme system and supports multiple platforms including Android, macOS, Windows, and Linux.

Use cases

  • Adaptive theming in cross-platform apps
  • Implementing system-driven light and dark mode
  • Creating accessible UIs with dynamic color schemes
  • Enhancing visual consistency with platform design guidelines
  • Automating theme generation based on user preferences

Key features

  • Generates Material color schemes from dynamic color sources
  • Supports Android, macOS, Windows, and Linux
  • Integrates with Flutter’s ThemeData system
  • Automatically adapts to system appearance
  • Enables smooth transitions between light and dark modes

Suitable for

  • Developers building platform-native Flutter apps
  • Teams prioritizing accessibility and UX
  • Apps requiring automatic theme adaptation
  • Projects using Material Design 3
  • Cross-platform applications targeting modern OS features

Considerations

  • Requires Flutter SDK 3.7 or higher
  • May need additional configuration for custom themes
  • Depends on platform-specific dynamic color APIs
  • Not compatible with older Flutter versions
  • Limited customization without deeper theme integration

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Material Design pub packages

This repo contains the source code for packages originally developed by the Material Flutter team.

Package Pub Issues Pull requests Example
dynamic_color pub package GitHub issues by-label GitHub pull requests by-label Example
dynamic_color_testing pub package

Issues

Please file bug reports and suggest enhancements here.

Contributing

If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide.

If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages.

Publishing

dart pub publish from the root directory of a package, for admins of the publisher material.io.

Other Material Design packages

The following packages' source code exists in other repositories.

Package Pub Issues Pull requests
animations pub package GitHub issues by-label GitHub pull requests by-label
google_fonts pub package GitHub issues by-label GitHub pull requests by-label
material_color_utilities pub package GitHub issues GitHub pull requests
material_symbols_icons pub package GitHub issues GitHub pull requests

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package