Flutter Custom flutter material colors import 'dart:ui'; import 'package:flutter/material.dart'; MaterialColor createMaterialColor(Color color) { List strengths = <double>[.05]; Map<int, Color> swatch = {}; final int r = color.red, g