1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-20 04:05:26 +01:00

fix: link url null

This commit is contained in:
Rongjian Zhang 2020-01-01 20:05:32 +08:00
parent 4b895c3a18
commit d2ae236356

View File

@ -69,7 +69,7 @@ class Link extends StatelessWidget {
padding: EdgeInsets.all(0),
onPressed: () async {
if (onTap != null) onTap();
theme.push(context, url);
if (url != null) theme.push(context, url);
},
);
default:
@ -77,7 +77,7 @@ class Link extends StatelessWidget {
child: child,
onTap: () async {
if (onTap != null) onTap();
theme.push(context, url);
if (url != null) theme.push(context, url);
},
);
}