Skip to content

Commit b907acd

Browse files
authored
Add the cupertino system colors mint, cyan, and brown (#118971)
1 parent 48cd95d commit b907acd

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

packages/flutter/lib/src/cupertino/colors.dart

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,21 @@ class CupertinoColors {
144144
darkHighContrastColor: Color.fromARGB(255, 48, 219, 91),
145145
);
146146

147+
/// A mint color that can adapt to the given [BuildContext].
148+
///
149+
/// See also:
150+
///
151+
/// * [UIColor.systemMint](https://developer.apple.com/documentation/uikit/uicolor/3852741-systemmint),
152+
/// the `UIKit` equivalent.
153+
static const CupertinoDynamicColor systemMint =
154+
CupertinoDynamicColor.withBrightnessAndContrast(
155+
debugLabel: 'systemMint',
156+
color: Color.fromARGB(255, 0, 199, 190),
157+
darkColor: Color.fromARGB(255, 99, 230, 226),
158+
highContrastColor: Color.fromARGB(255, 12, 129, 123),
159+
darkHighContrastColor: Color.fromARGB(255, 102, 212, 207),
160+
);
161+
147162
/// An indigo color that can adapt to the given [BuildContext].
148163
///
149164
/// See also:
@@ -186,6 +201,21 @@ class CupertinoColors {
186201
darkHighContrastColor: Color.fromARGB(255, 255, 100, 130),
187202
);
188203

204+
/// A brown color that can adapt to the given [BuildContext].
205+
///
206+
/// See also:
207+
///
208+
/// * [UIColor.systemBrown](https://developer.apple.com/documentation/uikit/uicolor/3173142-systembrown),
209+
/// the `UIKit` equivalent.
210+
static const CupertinoDynamicColor systemBrown =
211+
CupertinoDynamicColor.withBrightnessAndContrast(
212+
debugLabel: 'systemBrown',
213+
color: Color.fromARGB(255, 162, 132, 94),
214+
darkColor: Color.fromARGB(255, 172, 142, 104),
215+
highContrastColor: Color.fromARGB(255, 127, 101, 69),
216+
darkHighContrastColor: Color.fromARGB(255, 181, 148, 105),
217+
);
218+
189219
/// A purple color that can adapt to the given [BuildContext].
190220
///
191221
/// See also:
@@ -228,6 +258,21 @@ class CupertinoColors {
228258
darkHighContrastColor: Color.fromARGB(255, 112, 215, 255),
229259
);
230260

261+
/// A cyan color that can adapt to the given [BuildContext].
262+
///
263+
/// See also:
264+
///
265+
/// * [UIColor.systemCyan](https://developer.apple.com/documentation/uikit/uicolor/3852740-systemcyan),
266+
/// the `UIKit` equivalent.
267+
static const CupertinoDynamicColor systemCyan =
268+
CupertinoDynamicColor.withBrightnessAndContrast(
269+
debugLabel: 'systemCyan',
270+
color: Color.fromARGB(255, 50, 173, 230),
271+
darkColor: Color.fromARGB(255, 100, 210, 255),
272+
highContrastColor: Color.fromARGB(255, 0, 113, 164),
273+
darkHighContrastColor: Color.fromARGB(255, 112, 215, 255),
274+
);
275+
231276
/// A yellow color that can adapt to the given [BuildContext].
232277
///
233278
/// See also:

0 commit comments

Comments
 (0)