Init
This commit is contained in:
commit
1ba7bd9153
96 changed files with 2985 additions and 0 deletions
18
lib/widgets/components/link.dart
Normal file
18
lib/widgets/components/link.dart
Normal file
|
@ -0,0 +1,18 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
class Link extends StatelessWidget {
|
||||
const Link({Key? key, required this.uri}) : super(key: key);
|
||||
|
||||
final String uri;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
child: Text(uri,
|
||||
style: const TextStyle(decoration: TextDecoration.underline)),
|
||||
onTap: () {
|
||||
launch(uri);
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue