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

This commit is contained in:
Matt Carroll
2019-02-04 19:29:47 -08:00
committed by GitHub
parent 8d5e18e676
commit 9b053dd0d7

View File

@@ -9,6 +9,8 @@ import 'package:flutter/foundation.dart';
import 'system_channels.dart';
export 'dart:ui' show Brightness;
/// Specifies a particular device orientation.
///
/// To determine which values correspond to which orientations, first position
@@ -78,21 +80,6 @@ enum SystemUiOverlay {
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.
///
/// Used by [SystemChrome.setSystemUIOverlayStyle].