Skip to content

Commit

Permalink
The shape of the InkWell hover can match the shape of the DataRow2 de…
Browse files Browse the repository at this point in the history
…coration
  • Loading branch information
Charly Boudringhin authored and Charly Boudringhin committed Mar 13, 2024
1 parent 2e204cf commit 626be6f
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 626be6f

Please sign in to comment.