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:
parent
6ee7e24bfe
commit
8129797045
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user