Created
October 5, 2023 02:40
-
-
Save easylive1989/ebafeb42141b188f892bf8d284b4b525 to your computer and use it in GitHub Desktop.
2023鐵人賽_D21_1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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