From e69812441f0b4c988dd294b4f1abb71ee1521105 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Tue, 19 Apr 2016 23:35:23 -0700 Subject: [PATCH] Rename RowInkWell to TableRowInkWell ...so that people don't think it's for Row. --- packages/flutter/lib/src/material/data_table.dart | 14 +++++++------- packages/flutter/lib/src/material/ink_well.dart | 4 ++-- packages/flutter/lib/src/widgets/debug.dart | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/flutter/lib/src/material/data_table.dart b/packages/flutter/lib/src/material/data_table.dart index cdd3f1d07f..b670d54e5d 100644 --- a/packages/flutter/lib/src/material/data_table.dart +++ b/packages/flutter/lib/src/material/data_table.dart @@ -337,7 +337,7 @@ class DataTable extends StatelessWidget { ) ); if (onRowTap != null) { - contents = new RowInkWell( + contents = new TableRowInkWell( onTap: onRowTap, child: contents ); @@ -443,7 +443,7 @@ class DataTable extends StatelessWidget { child: label ); } else if (onSelectChanged != null) { - label = new RowInkWell( + label = new TableRowInkWell( 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 TableRowInkWell 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 TableRowInkWell as the direct child of the /// [Table], and put the other contents of the cell inside it.) -class RowInkWell extends InkResponse { - RowInkWell({ +class TableRowInkWell extends InkResponse { + TableRowInkWell({ 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. + // TableRowInkWell's coordinate space. table.applyPaintTransform(cell, transform); Offset offset = MatrixUtils.getAsTranslation(transform); if (offset != null) diff --git a/packages/flutter/lib/src/material/ink_well.dart b/packages/flutter/lib/src/material/ink_well.dart index 476dfe0504..669b8f5011 100644 --- a/packages/flutter/lib/src/material/ink_well.dart +++ b/packages/flutter/lib/src/material/ink_well.dart @@ -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 + /// [TableRowInkWell] 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 + /// [TableRowInkWell] implements this method to verify that the widget is /// in a table. bool debugCheckContext(BuildContext context) { assert(debugCheckHasMaterial(context)); diff --git a/packages/flutter/lib/src/widgets/debug.dart b/packages/flutter/lib/src/widgets/debug.dart index 0f42832859..3701a607d1 100644 --- a/packages/flutter/lib/src/widgets/debug.dart +++ b/packages/flutter/lib/src/widgets/debug.dart @@ -72,7 +72,7 @@ bool debugItemsHaveDuplicateKeys(Iterable 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 [TableRowInkWell] 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: