Skip to content

Commit 8129797

Browse files
authored
Update DataTable docs for disabled DataRow ink well (flutter#143450)
fixes [[`DataTable`] Data row does not respond to `MaterialState.hovered`](flutter#138968)
1 parent 6ee7e24 commit 8129797

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/flutter/lib/src/material/data_table.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ class DataRow {
194194
/// [InkWell] is visible (when pressed, hovered and focused), it is
195195
/// recommended to use a translucent color.
196196
///
197+
/// If [onSelectChanged] or [onLongPress] is null, the row's [InkWell] will be disabled.
198+
///
197199
/// ```dart
198200
/// DataRow(
199201
/// color: MaterialStateProperty.resolveWith<Color?>((Set<MaterialState> states) {
@@ -513,6 +515,9 @@ class DataTable extends StatelessWidget {
513515
/// row. To make sure that the row's [InkWell] is visible (when pressed,
514516
/// hovered and focused), it is recommended to use a translucent background
515517
/// color.
518+
///
519+
/// If [DataRow.onSelectChanged] or [DataRow.onLongPress] is null, the row's
520+
/// [InkWell] will be disabled.
516521
/// {@endtemplate}
517522
///
518523
/// If null, [DataTableThemeData.dataRowColor] is used. By default, the

0 commit comments

Comments
 (0)