Skip to content

Commit

Permalink
Wrap dotted border with IgnorePointer to not block child GestureDetector
Browse files Browse the repository at this point in the history
  • Loading branch information
DeadlockOfDeath authored and ajilo297 committed Jun 19, 2024
1 parent 9f516b8 commit 4c995be
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions lib/dotted_border.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,19 @@ class DottedBorder extends StatelessWidget {
child: child,
),
Positioned.fill(
child: CustomPaint(
painter: DashedPainter(
padding: borderPadding,
strokeWidth: strokeWidth,
radius: radius,
color: color,
gradient: gradient,
borderType: borderType,
dashPattern: dashPattern,
customPath: customPath,
strokeCap: strokeCap,
child: IgnorePointer(
child: CustomPaint(
painter: DashedPainter(
padding: borderPadding,
strokeWidth: strokeWidth,
radius: radius,
color: color,
gradient: gradient,
borderType: borderType,
dashPattern: dashPattern,
customPath: customPath,
strokeCap: strokeCap,
),
),
),
),
Expand Down

0 comments on commit 4c995be

Please sign in to comment.