flex_seed_scheme 3.3.0 copy "flex_seed_scheme: ^3.3.0" to clipboard
flex_seed_scheme: ^3.3.0 copied to clipboard

A more flexible and powerful version of Flutter's ColorScheme.fromSeed. Use multiple seed colors, custom chroma and tone mapping.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'home/views/pages/home_page.dart';
import 'theme/controllers/theme_controller.dart';
import 'theme/model/app_theme.dart';

void main() {
  // Create a ThemeController.
  final ThemeController controller = ThemeController();
  runApp(MyApp(controller: controller));
}

class MyApp extends StatelessWidget {
  const MyApp({super.key, required this.controller});

  final ThemeController controller;

  @override
  Widget build(BuildContext context) {
    return ListenableBuilder(
      listenable: controller,
      builder: (BuildContext context, Widget? child) {
        return MaterialApp(
          debugShowCheckedModeBanner: false,
          title: 'SeedColorScheme.fromSeeds',
          themeMode: controller.themeMode,
          theme: AppTheme.light(controller),
          darkTheme: AppTheme.dark(controller),
          highContrastTheme: AppTheme.highContrastLight(controller),
          highContrastDarkTheme: AppTheme.highContrastDark(controller),
          home: HomePage(controller: controller),
        );
      },
    );
  }
}
79
likes
0
points
328k
downloads

Publisher

verified publisherrydmike.com

Weekly Downloads

A more flexible and powerful version of Flutter's ColorScheme.fromSeed. Use multiple seed colors, custom chroma and tone mapping.

Repository (GitHub)
View/report issues

Topics

#theme #colorscheme #material3 #color #materialdesign

Documentation

Documentation

License

unknown (license)

Dependencies

collection, flutter, meta

More

Packages that depend on flex_seed_scheme