Created
June 22, 2024 16:46
-
-
Save fredgrott/3bf1d0a46e70d03329fcb5c634be5993 to your computer and use it in GitHub Desktop.
color scheme light
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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