Skip to content

Instantly share code, notes, and snippets.

View kriticalflare's full-sized avatar
🔺
The world only makes sense when you force it to

Krithik Suvarna kriticalflare

🔺
The world only makes sense when you force it to
View GitHub Profile
import 'dart:math';
import 'package:flutter/material.dart';
MaterialColor generateMaterialColor(Color color) {
return MaterialColor(color.value, {
50: tintColor(color, 0.5),
100: tintColor(color, 0.4),
200: tintColor(color, 0.3),
300: tintColor(color, 0.2),
400: tintColor(color, 0.1),