material_theme_builder 1.0.4 copy "material_theme_builder: ^1.0.4" to clipboard
material_theme_builder: ^1.0.4 copied to clipboard

Simple Flutter interface for the Material Theme Builder.

Material Theme Builder for Flutter #

Simple Flutter interface for the Material Theme Builder. Check out the original builder online at https://material-foundation.github.io/material-theme-builder/.

Features #

  • Create tonal palettes from a single colour
  • Create ColorScheme from 3 to 5 colours (primary, secondary, tertiary, error, neutral)

Getting started #

  1. Add the package to your pubspec.yaml: flutter pub add material_theme_builder

  2. Use the package:

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: MaterialThemeBuilder(
          primary: Colors.blue,
          secondary: Colors.purple,
          tertiary: Colors.lightBlue
        ).toScheme()
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}
4
likes
110
pub points
77%
popularity

Publisher

unverified uploader

Simple Flutter interface for the Material Theme Builder.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Unlicense (LICENSE)

Dependencies

flutter, material_color_utilities

More

Packages that depend on material_theme_builder