Link: Set cursor to pointer
This commit is contained in:
parent
1ba7bd9153
commit
ef58387144
1 changed files with 9 additions and 6 deletions
|
@ -8,11 +8,14 @@ class Link extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
child: Text(uri,
|
||||
style: const TextStyle(decoration: TextDecoration.underline)),
|
||||
onTap: () {
|
||||
launch(uri);
|
||||
});
|
||||
return MouseRegion(
|
||||
cursor: SystemMouseCursors.click,
|
||||
child: GestureDetector(
|
||||
child: Text(uri,
|
||||
style: const TextStyle(decoration: TextDecoration.underline)),
|
||||
onTap: () {
|
||||
launch(uri);
|
||||
}),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue