Skip to content

Instantly share code, notes, and snippets.

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