Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
b907acdd
Unverified
Commit
b907acdd
authored
Jan 25, 2023
by
Simon Friis Vindum
Committed by
GitHub
Jan 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the cupertino system colors mint, cyan, and brown (#118971)
parent
48cd95dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
colors.dart
packages/flutter/lib/src/cupertino/colors.dart
+45
-0
No files found.
packages/flutter/lib/src/cupertino/colors.dart
View file @
b907acdd
...
...
@@ -144,6 +144,21 @@ class CupertinoColors {
darkHighContrastColor:
Color
.
fromARGB
(
255
,
48
,
219
,
91
),
);
/// A mint color that can adapt to the given [BuildContext].
///
/// See also:
///
/// * [UIColor.systemMint](https://developer.apple.com/documentation/uikit/uicolor/3852741-systemmint),
/// the `UIKit` equivalent.
static
const
CupertinoDynamicColor
systemMint
=
CupertinoDynamicColor
.
withBrightnessAndContrast
(
debugLabel:
'systemMint'
,
color:
Color
.
fromARGB
(
255
,
0
,
199
,
190
),
darkColor:
Color
.
fromARGB
(
255
,
99
,
230
,
226
),
highContrastColor:
Color
.
fromARGB
(
255
,
12
,
129
,
123
),
darkHighContrastColor:
Color
.
fromARGB
(
255
,
102
,
212
,
207
),
);
/// An indigo color that can adapt to the given [BuildContext].
///
/// See also:
...
...
@@ -186,6 +201,21 @@ class CupertinoColors {
darkHighContrastColor:
Color
.
fromARGB
(
255
,
255
,
100
,
130
),
);
/// A brown color that can adapt to the given [BuildContext].
///
/// See also:
///
/// * [UIColor.systemBrown](https://developer.apple.com/documentation/uikit/uicolor/3173142-systembrown),
/// the `UIKit` equivalent.
static
const
CupertinoDynamicColor
systemBrown
=
CupertinoDynamicColor
.
withBrightnessAndContrast
(
debugLabel:
'systemBrown'
,
color:
Color
.
fromARGB
(
255
,
162
,
132
,
94
),
darkColor:
Color
.
fromARGB
(
255
,
172
,
142
,
104
),
highContrastColor:
Color
.
fromARGB
(
255
,
127
,
101
,
69
),
darkHighContrastColor:
Color
.
fromARGB
(
255
,
181
,
148
,
105
),
);
/// A purple color that can adapt to the given [BuildContext].
///
/// See also:
...
...
@@ -228,6 +258,21 @@ class CupertinoColors {
darkHighContrastColor:
Color
.
fromARGB
(
255
,
112
,
215
,
255
),
);
/// A cyan color that can adapt to the given [BuildContext].
///
/// See also:
///
/// * [UIColor.systemCyan](https://developer.apple.com/documentation/uikit/uicolor/3852740-systemcyan),
/// the `UIKit` equivalent.
static
const
CupertinoDynamicColor
systemCyan
=
CupertinoDynamicColor
.
withBrightnessAndContrast
(
debugLabel:
'systemCyan'
,
color:
Color
.
fromARGB
(
255
,
50
,
173
,
230
),
darkColor:
Color
.
fromARGB
(
255
,
100
,
210
,
255
),
highContrastColor:
Color
.
fromARGB
(
255
,
0
,
113
,
164
),
darkHighContrastColor:
Color
.
fromARGB
(
255
,
112
,
215
,
255
),
);
/// A yellow color that can adapt to the given [BuildContext].
///
/// See also:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment