@@ -21,6 +21,7 @@ class PlatformInkWell extends StatelessWidget {
2121 this .customBorder,
2222 this .focusColor,
2323 this .hoverColor,
24+ this .pressColor,
2425 this .highlightColor,
2526 this .overlayColor,
2627 this .splashColor,
@@ -173,6 +174,19 @@ class PlatformInkWell extends StatelessWidget {
173174 /// * [splashFactory] , which defines the appearance of the splash.
174175 final Color ? hoverColor;
175176
177+ /// The color of the ink response when the parent widget is pressed.
178+ ///
179+ /// See also:
180+ ///
181+ /// * [highlightShape] , the shape of the focus, hover, and pressed
182+ /// highlights.
183+ /// * [highlightColor] , the color of the pressed highlight.
184+ /// * [focusColor] , the color of the focus highlight.
185+ /// * [hoverColor] , the color of the hover highlight.
186+ /// * [splashColor] , the color of the splash.
187+ /// * [splashFactory] , which defines the appearance of the splash.
188+ final Color ? pressColor;
189+
176190 /// The highlight color of the ink response when pressed. If this property is
177191 /// null then the highlight color of the theme, [ThemeData.highlightColor] ,
178192 /// will be used.
@@ -311,6 +325,7 @@ class PlatformInkWell extends StatelessWidget {
311325 mouseCursor: mouseCursor,
312326 focusColor: focusColor,
313327 hoverColor: hoverColor,
328+ pressColor: pressColor ?? highlightColor,
314329 borderRadius: borderRadius,
315330 customBorder: customBorder,
316331 excludeFromSemantics: excludeFromSemantics,
0 commit comments