Skip to content

Instantly share code, notes, and snippets.

@fredgrott
Created June 22, 2024 16:46
Show Gist options
  • Save fredgrott/3bf1d0a46e70d03329fcb5c634be5993 to your computer and use it in GitHub Desktop.
Save fredgrott/3bf1d0a46e70d03329fcb5c634be5993 to your computer and use it in GitHub Desktop.
color scheme light
// Copyright 2024 Fredrick Allan Grott. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// ignore_for_file: avoid_redundant_argument_values
import 'package:flutter/material.dart';
//TODO: Re-do when contrastLevel of ColorScheme lands in beta
ColorScheme colorSchemeLight(Color seedColor) {
return ColorScheme.fromSeed(
brightness: Brightness.light,
seedColor: seedColor,
dynamicSchemeVariant: DynamicSchemeVariant.fidelity,
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment