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
e6981244
Commit
e6981244
authored
Apr 20, 2016
by
Ian Hickson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename RowInkWell to TableRowInkWell
...so that people don't think it's for Row.
parent
80fabfd3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
data_table.dart
packages/flutter/lib/src/material/data_table.dart
+7
-7
ink_well.dart
packages/flutter/lib/src/material/ink_well.dart
+2
-2
debug.dart
packages/flutter/lib/src/widgets/debug.dart
+1
-1
No files found.
packages/flutter/lib/src/material/data_table.dart
View file @
e6981244
...
...
@@ -337,7 +337,7 @@ class DataTable extends StatelessWidget {
)
);
if
(
onRowTap
!=
null
)
{
contents
=
new
RowInkWell
(
contents
=
new
Table
RowInkWell
(
onTap:
onRowTap
,
child:
contents
);
...
...
@@ -443,7 +443,7 @@ class DataTable extends StatelessWidget {
child:
label
);
}
else
if
(
onSelectChanged
!=
null
)
{
label
=
new
RowInkWell
(
label
=
new
Table
RowInkWell
(
onTap:
onSelectChanged
,
child:
label
);
...
...
@@ -555,15 +555,15 @@ class DataTable extends StatelessWidget {
/// Must have an ancestor [Material] widget in which to cause ink
/// reactions and an ancestor [Table] widget to establish a row.
///
/// The RowInkWell must be in the same coordinate space (modulo
/// The
Table
RowInkWell must be in the same coordinate space (modulo
/// translations) as the [Table]. If it's rotated or scaled or
/// otherwise transformed, it will not be able to describe the
/// rectangle of the row in its own coordinate system as a [Rect], and
/// thus the splash will not occur. (In general, this is easy to
/// achieve: just put the RowInkWell as the direct child of the
/// achieve: just put the
Table
RowInkWell as the direct child of the
/// [Table], and put the other contents of the cell inside it.)
class
RowInkWell
extends
InkResponse
{
RowInkWell
({
class
Table
RowInkWell
extends
InkResponse
{
Table
RowInkWell
({
Key
key
,
Widget
child
,
GestureTapCallback
onTap
,
...
...
@@ -599,7 +599,7 @@ class RowInkWell extends InkResponse {
assert
(
cellParentData
.
y
!=
null
);
Rect
rect
=
table
.
getRowBox
(
cellParentData
.
y
);
// The rect is in the table's coordinate space. We need to change it to the
// RowInkWell's coordinate space.
//
Table
RowInkWell's coordinate space.
table
.
applyPaintTransform
(
cell
,
transform
);
Offset
offset
=
MatrixUtils
.
getAsTranslation
(
transform
);
if
(
offset
!=
null
)
...
...
packages/flutter/lib/src/material/ink_well.dart
View file @
e6981244
...
...
@@ -69,7 +69,7 @@ class InkResponse extends StatefulWidget {
///
/// This method is intended to be overridden by descendants that
/// specialize [InkResponse] for unusual cases. For example,
/// [RowInkWell] implements this method to return the rectangle
/// [
Table
RowInkWell] implements this method to return the rectangle
/// corresponding to the row that the widget is in.
///
/// The default behavior returns null, which is equivalent to
...
...
@@ -82,7 +82,7 @@ class InkResponse extends StatefulWidget {
///
/// This method is intended to be overridden by descendants that
/// specialize [InkResponse] for unusual cases. For example,
/// [RowInkWell] implements this method to verify that the widget is
/// [
Table
RowInkWell] implements this method to verify that the widget is
/// in a table.
bool
debugCheckContext
(
BuildContext
context
)
{
assert
(
debugCheckHasMaterial
(
context
));
...
...
packages/flutter/lib/src/widgets/debug.dart
View file @
e6981244
...
...
@@ -72,7 +72,7 @@ bool debugItemsHaveDuplicateKeys(Iterable<Widget> items) {
/// Asserts that the given context has a [Table] ancestor.
///
/// Used by [RowInkWell] to make sure that it is only used in an appropriate context.
/// Used by [
Table
RowInkWell] to make sure that it is only used in an appropriate context.
///
/// To invoke this function, use the following pattern, typically in the
/// relevant Widget's [build] method:
...
...
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