https://github.com/marcus-software/ms_material_color
A Flutter lib to simplify creation of MaterialColor with shaders
https://github.com/marcus-software/ms_material_color
dart flutter material material-colors material-theme sha
Last synced: 1 day ago
JSON representation
A Flutter lib to simplify creation of MaterialColor with shaders
- Host: GitHub
- URL: https://github.com/marcus-software/ms_material_color
- Owner: Marcus-Software
- License: mit
- Created: 2020-02-02T20:00:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-25T12:59:41.000Z (about 4 years ago)
- Last Synced: 2025-08-28T03:25:27.949Z (about 1 month ago)
- Topics: dart, flutter, material, material-colors, material-theme, sha
- Language: Dart
- Size: 104 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pub.dartlang.org/packages/ms_material_color)
# Overview
A Flutter lib to simplify creation of MaterialColor with shaders
## Whats MS_Material_Color do
Create a MsMaterialColor and gerenate 10 shader of base color
## Usage
Just import lib and use:
```dart
import 'package:ms_material_color/ms_material_color.dart';//.. more flutter code here.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Color Demo',
debugShowCheckedModeBanner: false,
theme: ThemeData(primarySwatch: MsMaterialColor(0xffffd700)),
home: MyHomePage(title: 'MS MaterialColor Demo Home Page'),
);
}
//.. more flutter code here too, maybe not.
```