mirror of
https://github.com/git-touch/git-touch
synced 2024-12-20 12:13:31 +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),
|
padding: EdgeInsets.all(0),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
if (onTap != null) onTap();
|
if (onTap != null) onTap();
|
||||||
theme.push(context, url);
|
if (url != null) theme.push(context, url);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
default:
|
default:
|
||||||
@ -77,7 +77,7 @@ class Link extends StatelessWidget {
|
|||||||
child: child,
|
child: child,
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
if (onTap != null) onTap();
|
if (onTap != null) onTap();
|
||||||
theme.push(context, url);
|
if (url != null) theme.push(context, url);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user