Skip to content

Instantly share code, notes, and snippets.

@SashaKryzh
SashaKryzh / app_colors_extension.dart
Last active May 6, 2025 10:22
Flutter ThemeExtension for custom app colors.
import 'package:flutter/material.dart';
/// `ThemeExtension` template for custom colors.
///
/// For example purposes, it has all required fields from the default Material `ColorScheme`.
/// But you can add, rename and delete any fields your need.
///
/// ### Motivation
///
/// At the beginning, you may not know if your colors will fit into the Material `ColorScheme`,