fix: do not wait tap callback

This commit is contained in:
Rongjian Zhang 2019-12-27 10:24:15 +08:00
parent 15d8414f36
commit 4b0dae9591
1 changed files with 1 additions and 3 deletions

View File

@ -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);
},
),