From 8129797045789cab5947356d69bcc42204de455a Mon Sep 17 00:00:00 2001 From: Taha Tesser Date: Fri, 16 Feb 2024 08:56:59 +0200 Subject: [PATCH] Update `DataTable` docs for disabled `DataRow` ink well (#143450) fixes [[`DataTable`] Data row does not respond to `MaterialState.hovered`](https://github.com/flutter/flutter/issues/138968) --- packages/flutter/lib/src/material/data_table.dart | 5 +++++ 1 file changed, 5 insertions(+) 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