@@ -137,6 +137,7 @@ class ExpansionTile extends StatefulWidget {
137
137
this .controlAffinity,
138
138
this .controller,
139
139
this .dense,
140
+ this .splashColor,
140
141
this .visualDensity,
141
142
this .minTileHeight,
142
143
this .enableFeedback = true ,
@@ -402,6 +403,25 @@ class ExpansionTile extends StatefulWidget {
402
403
/// {@macro flutter.material.ListTile.dense}
403
404
final bool ? dense;
404
405
406
+ /// The splash color of the ink response when the tile is tapped.
407
+ ///
408
+ /// This color is passed directly to the underlying [ListTile] 's
409
+ /// `splashColor` property, which controls the ink ripple (splash)
410
+ /// animation when the tile is tapped. Internally, [ListTile] uses
411
+ /// an [InkWell] (which handles the actual splash effect), and so the
412
+ /// provided color will apply to that ripple.
413
+ ///
414
+ /// If null, the splash color will default to the current theme’s
415
+ /// `ThemeData.splashColor` .
416
+ ///
417
+ /// See also:
418
+ ///
419
+ /// * [ListTile.splashColor] , which sets the ink splash for the tile.
420
+ /// * [InkWell.splashColor] , which determines the color of the ripple
421
+ /// effect in Material widgets.
422
+ /// * [ThemeData.splashColor] , which provides a fallback color.
423
+ final Color ? splashColor;
424
+
405
425
/// Defines how compact the expansion tile's layout will be.
406
426
///
407
427
/// {@macro flutter.material.themedata.visualDensity}
@@ -593,6 +613,7 @@ class _ExpansionTileState extends State<ExpansionTile> {
593
613
enabled: widget.enabled,
594
614
onTap: _tileController.isExpanded ? _tileController.collapse : _tileController.expand,
595
615
dense: widget.dense,
616
+ splashColor: widget.splashColor,
596
617
visualDensity: widget.visualDensity,
597
618
enableFeedback: widget.enableFeedback,
598
619
contentPadding: widget.tilePadding ?? _expansionTileTheme.tilePadding,
0 commit comments