Skip to content

Commit

Permalink
Fix disabled-looking buttons in catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
moffatman committed Oct 4, 2024
1 parent 8a01268 commit 2b1a0b6
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lib/widgets/post_spans.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
)
);
}
Expand Down

0 comments on commit 2b1a0b6

Please sign in to comment.