Last updated:
0 purchases
material you colours
material_you_colours #
Should be fairly straightforward to use - example is below
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<ThemeData?> theme) =>
MaterialApp(
title: 'My App',
theme: theme.data ?? ThemeData.fallback(),
home: const MyHomePage(title: 'My App'),
));
}
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.