Skip to content

Instantly share code, notes, and snippets.

@easylive1989
Created October 5, 2023 02:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save easylive1989/ebafeb42141b188f892bf8d284b4b525 to your computer and use it in GitHub Desktop.
Save easylive1989/ebafeb42141b188f892bf8d284b4b525 to your computer and use it in GitHub Desktop.
2023鐵人賽_D21_1
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
main() {
runApp(
const MaterialApp(
home: Scaffold(body: TermAndCondition()),
),
);
}
class TermAndCondition extends StatelessWidget {
const TermAndCondition({super.key});
@override
Widget build(BuildContext context) {
return GestureDetector(
onTap: () {
launchUrl(Uri.parse("https://www.google.com"));
},
child: const Center(
child: Text(
'Terms & Conditions',
style: TextStyle(
color: Colors.blue,
decoration: TextDecoration.underline,
),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment