Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The shape of the InkWell hover can match the shape of the DataRow2 decoration #268

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/src/data_table_2.dart
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ class DataTable2 extends DataTable {

Widget _buildDataCell(
{required BuildContext context,
required Decoration? decoration,
required EdgeInsetsGeometry padding,
required double? specificRowHeight,
required Widget label,
Expand Down Expand Up @@ -556,6 +557,9 @@ class DataTable2 extends DataTable {
onRowSecondaryTapDown != null) {
// row level
label = TableRowInkWell(
borderRadius: decoration is BoxDecoration
? (decoration.borderRadius as BorderRadius?) ?? BorderRadius.zero
: BorderRadius.zero,
onTap: onRowTap ?? onSelectChanged,
onDoubleTap: onRowDoubleTap,
onLongPress: onRowLongPress,
Expand Down Expand Up @@ -862,6 +866,7 @@ class DataTable2 extends DataTable {
final DataCell cell = row.cells[dataColumnIndex];

var c = _buildDataCell(
decoration: row is DataRow2 ? row.decoration : null,
context: context,
padding: padding,
specificRowHeight:
Expand Down
Loading