From 4b0dae95911fe681f9339adc08c72ceb09b22a12 Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Fri, 27 Dec 2019 10:24:15 +0800 Subject: [PATCH] fix: do not wait tap callback --- lib/widgets/link.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/widgets/link.dart b/lib/widgets/link.dart index 9a03690..5a8c104 100644 --- a/lib/widgets/link.dart +++ b/lib/widgets/link.dart @@ -26,9 +26,7 @@ class Link extends StatelessWidget { splashColor: theme.theme == AppThemeType.cupertino ? Colors.transparent : null, onTap: () async { - if (onTap != null) { - await onTap(); - } + if (onTap != null) onTap(); theme.push(context, url); }, ),