From 4c995be0760295c4610d47375b8756536bb66029 Mon Sep 17 00:00:00 2001 From: DeadlockOfDeath <133504785+DeadlockOfDeath@users.noreply.github.com> Date: Wed, 29 Nov 2023 05:52:26 -0400 Subject: [PATCH] Wrap dotted border with IgnorePointer to not block child GestureDetector --- lib/dotted_border.dart | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/lib/dotted_border.dart b/lib/dotted_border.dart index 034739e..a4dee6c 100644 --- a/lib/dotted_border.dart +++ b/lib/dotted_border.dart @@ -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, + ), ), ), ),