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)
This commit is contained in:
Taha Tesser 2024-02-16 08:56:59 +02:00 committed by GitHub
parent 6ee7e24bfe
commit 8129797045
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<Color?>((Set<MaterialState> 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