An open API service indexing awesome lists of open source software.

https://github.com/mause/material_you_colours


https://github.com/mause/material_you_colours

Last synced: 17 days ago
JSON representation

Awesome Lists containing this project

README

          

# material_you_colours

Should be fairly straightforward to use - example is below

```dart
import 'package:flutter/flutter.dart';
import 'package:material_you_colours/material_you_colours.dart'
show getMaterialYouThemeData;

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

@override
Widget build(BuildContext context) {
return FutureBuilder(
future: getMaterialYouThemeData(),
builder: (BuildContext context, AsyncSnapshot theme) =>
MaterialApp(
title: 'My App',
theme: theme.data ?? ThemeData.fallback(),
home: const MyHomePage(title: 'My App'),
));
}
}
```