flutter_dynamic_theme_engine 1.0.0 copy "flutter_dynamic_theme_engine: ^1.0.0" to clipboard
flutter_dynamic_theme_engine: ^1.0.0 copied to clipboard

Dynamic multi-theme palette engine for Flutter generating accessible themes from seed colors with HSL math and animated transitions.

flutter_dynamic_theme_engine #

pub package Build Status License: MIT Flutter

A dynamic multi-theme palette engine for Flutter. Generates accessible light and dark Material 3 themes on the fly from user seed colors with HSL color math and smooth animated transitions.


🌟 Key Features #

  • 🎨 HSL Material Color Generator: Programmatically generates 10-shade Material Color swatches from any seed hex color.
  • WCAG 2.1 Contrast Checker: Utility to check text-on-background contrast compliance.
  • 🌓 Dynamic Theme Builder: Reactive widget wrapper animating theme switches smoothly across the widget tree.

📦 Installation #

Add flutter_dynamic_theme_engine to your pubspec.yaml:

dependencies:
  flutter_dynamic_theme_engine: ^1.0.0

🚀 Quick Start #

final themeNotifier = DynamicThemeNotifier();

// In main.dart
DynamicThemeBuilder(
  notifier: themeNotifier,
  builder: (context, lightTheme, darkTheme, themeMode) {
    return MaterialApp(
      theme: lightTheme,
      darkTheme: darkTheme,
      themeMode: themeMode,
      home: const HomeScreen(),
    );
  },
);

// Switch seed color dynamically anywhere
themeNotifier.setSeedColor(Colors.teal);

📄 License #

MIT License - Developed with ❤️ by Olamilekan Adeyemi (@lekthedeveloper).

0
likes
150
points
22
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Dynamic multi-theme palette engine for Flutter generating accessible themes from seed colors with HSL math and animated transitions.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_dynamic_theme_engine