diff --git a/packages/flutter/lib/src/material/data_table.dart b/packages/flutter/lib/src/material/data_table.dart index e1add45528..7ff504e28b 100644 --- a/packages/flutter/lib/src/material/data_table.dart +++ b/packages/flutter/lib/src/material/data_table.dart @@ -194,6 +194,8 @@ class DataRow { /// [InkWell] is visible (when pressed, hovered and focused), it is /// recommended to use a translucent color. /// + /// If [onSelectChanged] or [onLongPress] is null, the row's [InkWell] will be disabled. + /// /// ```dart /// DataRow( /// color: MaterialStateProperty.resolveWith((Set states) { @@ -513,6 +515,9 @@ class DataTable extends StatelessWidget { /// row. To make sure that the row's [InkWell] is visible (when pressed, /// hovered and focused), it is recommended to use a translucent background /// color. + /// + /// If [DataRow.onSelectChanged] or [DataRow.onLongPress] is null, the row's + /// [InkWell] will be disabled. /// {@endtemplate} /// /// If null, [DataTableThemeData.dataRowColor] is used. By default, the