Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
3f37d86f
Unverified
Commit
3f37d86f
authored
Jan 23, 2021
by
Shi-Hao Hong
Committed by
GitHub
Jan 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document TableRowInkWell and DataTable interactions better (#73018)
parent
9817cabf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
data_table.dart
packages/flutter/lib/src/material/data_table.dart
+13
-0
No files found.
packages/flutter/lib/src/material/data_table.dart
View file @
3f37d86f
...
...
@@ -133,6 +133,10 @@ class DataRow {
/// A row whose [onSelectChanged] callback is null is ignored for
/// the purposes of determining the state of the "all" checkbox,
/// and its checkbox is disabled.
///
/// If a [DataCell] in the row has its [DataCell.onTap] callback defined,
/// that callback behavior overrides the gesture behavior of the row for
/// that particular cell.
final
ValueChanged
<
bool
?>?
onSelectChanged
;
/// Whether the row is selected.
...
...
@@ -240,6 +244,9 @@ class DataCell {
/// If non-null, tapping the cell will call this callback. If
/// null, tapping the cell will attempt to select the row (if
/// [DataRow.onSelectChanged] is provided).
///
/// To define a tap behavior for the entire row, see
/// [DataRow.onSelectChanged].
final
VoidCallback
?
onTap
;
bool
get
_debugInteractive
=>
onTap
!=
null
;
...
...
@@ -1028,6 +1035,12 @@ class DataTable extends StatelessWidget {
/// thus the splash will not occur. (In general, this is easy to
/// achieve: just put the [TableRowInkWell] as the direct child of the
/// [Table], and put the other contents of the cell inside it.)
///
/// See also:
///
/// * [DataTable], which makes use of [TableRowInkWell] when
/// [DataRow.onSelectChanged] is defined and [DataCell.onTap]
/// is not.
class
TableRowInkWell
extends
InkResponse
{
/// Creates an ink well for a table row.
const
TableRowInkWell
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment