Skip to content

Commit d33d428

Browse files
committed
fix(notification): handle url launch callback on icon contents
1 parent cec174f commit d33d428

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/utils/html/html_muncher.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,13 @@ final class _Muncher with LoggerMixin {
811811
WidgetSpan(
812812
child: MouseRegion(
813813
cursor: SystemMouseCursors.click,
814-
child: GestureDetector(onTap: () async => context.dispatchAsUrl(url), child: content),
814+
child: GestureDetector(
815+
onTap: () async {
816+
await context.dispatchAsUrl(url);
817+
options.onUrlLaunched?.call();
818+
},
819+
child: content,
820+
),
815821
),
816822
),
817823
...ret,

0 commit comments

Comments
 (0)