File tree 1 file changed +5
-0
lines changed
packages/flutter/lib/src/material 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,8 @@ class DataRow {
194
194
/// [InkWell] is visible (when pressed, hovered and focused), it is
195
195
/// recommended to use a translucent color.
196
196
///
197
+ /// If [onSelectChanged] or [onLongPress] is null, the row's [InkWell] will be disabled.
198
+ ///
197
199
/// ```dart
198
200
/// DataRow(
199
201
/// color: MaterialStateProperty.resolveWith<Color?>((Set<MaterialState> states) {
@@ -513,6 +515,9 @@ class DataTable extends StatelessWidget {
513
515
/// row. To make sure that the row's [InkWell] is visible (when pressed,
514
516
/// hovered and focused), it is recommended to use a translucent background
515
517
/// color.
518
+ ///
519
+ /// If [DataRow.onSelectChanged] or [DataRow.onLongPress] is null, the row's
520
+ /// [InkWell] will be disabled.
516
521
/// {@endtemplate}
517
522
///
518
523
/// If null, [DataTableThemeData.dataRowColor] is used. By default, the
You can’t perform that action at this time.
0 commit comments