Unverified Commit 81297970 authored by Taha Tesser's avatar Taha Tesser Committed by GitHub

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)
parent 6ee7e24b
...@@ -194,6 +194,8 @@ class DataRow { ...@@ -194,6 +194,8 @@ class DataRow {
/// [InkWell] is visible (when pressed, hovered and focused), it is /// [InkWell] is visible (when pressed, hovered and focused), it is
/// recommended to use a translucent color. /// recommended to use a translucent color.
/// ///
/// If [onSelectChanged] or [onLongPress] is null, the row's [InkWell] will be disabled.
///
/// ```dart /// ```dart
/// DataRow( /// DataRow(
/// color: MaterialStateProperty.resolveWith<Color?>((Set<MaterialState> states) { /// color: MaterialStateProperty.resolveWith<Color?>((Set<MaterialState> states) {
...@@ -513,6 +515,9 @@ class DataTable extends StatelessWidget { ...@@ -513,6 +515,9 @@ class DataTable extends StatelessWidget {
/// row. To make sure that the row's [InkWell] is visible (when pressed, /// row. To make sure that the row's [InkWell] is visible (when pressed,
/// hovered and focused), it is recommended to use a translucent background /// hovered and focused), it is recommended to use a translucent background
/// color. /// color.
///
/// If [DataRow.onSelectChanged] or [DataRow.onLongPress] is null, the row's
/// [InkWell] will be disabled.
/// {@endtemplate} /// {@endtemplate}
/// ///
/// If null, [DataTableThemeData.dataRowColor] is used. By default, the /// If null, [DataTableThemeData.dataRowColor] is used. By default, the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment