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:
parent
4b895c3a18
commit
d2ae236356
@ -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);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user