Skip to content

Instantly share code, notes, and snippets.

@SashaKryzh
SashaKryzh / app_colors_extension.dart
Last active December 5, 2024 01:53
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`,