material_theme_builder

Last updated:

0 purchases

material_theme_builder Image
material_theme_builder Images
Add to Cart

Description:

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 #


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


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'),
);
}
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.