Unverified Commit 9b053dd0 authored by Matt Carroll's avatar Matt Carroll Committed by GitHub

Move Brightness to dart:ui in the engine (#27479). (#27481)

parent 8d5e18e6
...@@ -9,6 +9,8 @@ import 'package:flutter/foundation.dart'; ...@@ -9,6 +9,8 @@ import 'package:flutter/foundation.dart';
import 'system_channels.dart'; import 'system_channels.dart';
export 'dart:ui' show Brightness;
/// Specifies a particular device orientation. /// Specifies a particular device orientation.
/// ///
/// To determine which values correspond to which orientations, first position /// To determine which values correspond to which orientations, first position
...@@ -78,21 +80,6 @@ enum SystemUiOverlay { ...@@ -78,21 +80,6 @@ enum SystemUiOverlay {
bottom, bottom,
} }
/// Describes the contrast needs of a color.
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,
}
/// Specifies a preference for the style of the system overlays. /// Specifies a preference for the style of the system overlays.
/// ///
/// Used by [SystemChrome.setSystemUIOverlayStyle]. /// Used by [SystemChrome.setSystemUIOverlayStyle].
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment