From 2b1a0b630eba27549f0d44d33081bf6c6769ce80 Mon Sep 17 00:00:00 2001 From: Callum Moffat Date: Wed, 4 Sep 2024 01:05:06 -0400 Subject: [PATCH] Fix disabled-looking buttons in catalog --- lib/widgets/post_spans.dart | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/widgets/post_spans.dart b/lib/widgets/post_spans.dart index 55d185b74..019a19c34 100644 --- a/lib/widgets/post_spans.dart +++ b/lib/widgets/post_spans.dart @@ -1387,15 +1387,18 @@ class PostLinkSpan extends PostSpan { ) ); } - final onTap = options.ignorePointer ? null : () { + onTap() { openBrowser(context, cleanedUri!); - }; + } return WidgetSpan( alignment: PlaceholderAlignment.middle, - child: CupertinoButton( - padding: EdgeInsets.zero, - onPressed: onTap, - child: tapChild + child: IgnorePointer( + ignoring: options.ignorePointer, + child: CupertinoButton( + padding: EdgeInsets.zero, + onPressed: onTap, + child: tapChild + ) ) ); }