Move Brightness definition to dart:ui (#27479) (flutter/engine#7678)

This commit is contained in:
Matt Carroll
2019-02-04 13:29:53 -08:00
committed by GitHub
parent 224125c359
commit 3f7789cebe

View File

@@ -924,6 +924,21 @@ class AccessibilityFeatures {
int get hashCode => _index.hashCode;
}
/// Describes the contrast of a theme or color palette.
enum Brightness {
/// The color is dark and will require a light text color to achieve readable
/// contrast.
///
/// For example, the color might be dark grey, requiring white text.
dark,
/// The color is light and will require a dark text color to achieve readable
/// contrast.
///
/// For example, the color might be bright white, requiring black text.
light,
}
/// The [Window] singleton. This object exposes the size of the display, the
/// core scheduler API, the input event callback, the graphics drawing API, and
/// other such core services.