@@ -104,35 +104,35 @@ const Color _kDialogColor = CupertinoDynamicColor.withBrightness(
104
104
// Translucent light gray that is painted on top of the blurred backdrop as the
105
105
// background color of a pressed button.
106
106
// Eyeballed from iOS 13 beta simulator.
107
- const Color _kPressedColor = CupertinoDynamicColor .withBrightness (
107
+ const Color _kDialogPressedColor = CupertinoDynamicColor .withBrightness (
108
108
color: Color (0xFFE1E1E1 ),
109
109
darkColor: Color (0xFF2E2E2E ),
110
110
);
111
111
112
- const Color _kActionSheetCancelPressedColor = CupertinoDynamicColor .withBrightness (
113
- color: Color (0xFFECECEC ),
114
- darkColor: Color (0xFF49494B ),
115
- );
112
+ // Translucent light gray that is painted on top of the blurred backdrop as the
113
+ // background color of a pressed button.
114
+ // Eyeballed from iOS 17 simulator.
115
+ const Color _kActionSheetPressedColor = Color (0xCAE0E0E0 );
116
+
117
+ const Color _kActionSheetCancelColor = Color (0xFFFFFFFF );
118
+ const Color _kActionSheetCancelPressedColor = Color (0xFFECECEC );
116
119
117
120
// Translucent, very light gray that is painted on top of the blurred backdrop
118
121
// as the action sheet's background color.
119
122
// TODO(LongCatIsLooong): https://github.com/flutter/flutter/issues/39272. Use
120
123
// System Materials once we have them.
121
- // Extracted from https://developer.apple.com/design/resources/.
122
- const Color _kActionSheetBackgroundColor = CupertinoDynamicColor .withBrightness (
123
- color: Color (0xC7F9F9F9 ),
124
- darkColor: Color (0xC7252525 ),
125
- );
124
+ // Eyeballed from iOS 17 simulator.
125
+ const Color _kActionSheetBackgroundColor = Color (0xC8FCFCFC );
126
126
127
127
// The gray color used for text that appears in the title area.
128
- // Extracted from https://developer.apple.com/design/resources/ .
129
- const Color _kActionSheetContentTextColor = Color (0xFF8F8F8F );
128
+ // Eyeballed from iOS 17 simulator .
129
+ const Color _kActionSheetContentTextColor = Color (0x851D1D1D );
130
130
131
131
// Translucent gray that is painted on top of the blurred backdrop in the gap
132
132
// areas between the content section and actions section, as well as between
133
133
// buttons.
134
- // Eye-balled from iOS 13 beta simulator.
135
- const Color _kActionSheetButtonDividerColor = _kActionSheetContentTextColor ;
134
+ // Eyeballed from iOS 17 simulator.
135
+ const Color _kActionSheetButtonDividerColor = Color ( 0xD4C9C9C9 ) ;
136
136
137
137
// The alert dialog layout policy changes depending on whether the user is using
138
138
// a "regular" font size vs a "large" font size. This is a spectrum. There are
@@ -1115,19 +1115,19 @@ class _ActionSheetButtonBackgroundState extends State<_ActionSheetButtonBackgrou
1115
1115
BorderRadius ? borderRadius;
1116
1116
if (! widget.isCancel) {
1117
1117
backgroundColor = isBeingPressed
1118
- ? _kPressedColor
1119
- : CupertinoDynamicColor . resolve ( _kActionSheetBackgroundColor, context) ;
1118
+ ? _kActionSheetPressedColor
1119
+ : _kActionSheetBackgroundColor;
1120
1120
} else {
1121
1121
backgroundColor = isBeingPressed
1122
- ? _kActionSheetCancelPressedColor
1123
- : CupertinoColors .secondarySystemGroupedBackground ;
1122
+ ? _kActionSheetCancelPressedColor
1123
+ : _kActionSheetCancelColor ;
1124
1124
borderRadius = const BorderRadius .all (Radius .circular (_kCornerRadius));
1125
1125
}
1126
1126
return MetaData (
1127
1127
metaData: this ,
1128
1128
child: Container (
1129
1129
decoration: BoxDecoration (
1130
- color: backgroundColor,
1130
+ color: CupertinoDynamicColor . resolve ( backgroundColor, context) ,
1131
1131
borderRadius: borderRadius,
1132
1132
),
1133
1133
child: widget.child,
@@ -2269,7 +2269,7 @@ class _CupertinoDialogActionsRenderWidget extends MultiChildRenderObjectWidget {
2269
2269
: _kCupertinoDialogWidth,
2270
2270
dividerThickness: _dividerThickness,
2271
2271
dialogColor: CupertinoDynamicColor .resolve (_kDialogColor, context),
2272
- dialogPressedColor: CupertinoDynamicColor .resolve (_kPressedColor , context),
2272
+ dialogPressedColor: CupertinoDynamicColor .resolve (_kDialogPressedColor , context),
2273
2273
dividerColor: CupertinoDynamicColor .resolve (CupertinoColors .separator, context),
2274
2274
hasCancelButton: _hasCancelButton,
2275
2275
);
@@ -2283,7 +2283,7 @@ class _CupertinoDialogActionsRenderWidget extends MultiChildRenderObjectWidget {
2283
2283
: _kCupertinoDialogWidth
2284
2284
..dividerThickness = _dividerThickness
2285
2285
..dialogColor = CupertinoDynamicColor .resolve (_kDialogColor, context)
2286
- ..dialogPressedColor = CupertinoDynamicColor .resolve (_kPressedColor , context)
2286
+ ..dialogPressedColor = CupertinoDynamicColor .resolve (_kDialogPressedColor , context)
2287
2287
..dividerColor = CupertinoDynamicColor .resolve (CupertinoColors .separator, context)
2288
2288
..hasCancelButton = _hasCancelButton;
2289
2289
}
0 commit comments