Add curly braces

This commit is contained in:
Moe Poi ~ 2022-05-30 13:52:41 +07:00
parent d8cb2a64b1
commit 852602430c

View file

@ -88,8 +88,9 @@ class _AboutUsBodyState extends State<AboutUsBody> {
), ),
onPressed: () async { onPressed: () async {
if (!await launchUrl( if (!await launchUrl(
Uri.parse('mailto:nekoya@chocola.dev'))) Uri.parse('mailto:nekoya@chocola.dev'))) {
throw 'Could not launch'; throw 'Could not launch';
}
}, },
), ),
), ),
@ -98,8 +99,9 @@ class _AboutUsBodyState extends State<AboutUsBody> {
flex: 1, flex: 1,
child: GestureDetector( child: GestureDetector(
onTap: () async { onTap: () async {
if (!await launchUrl(Uri.parse('https://nekoya.moe.team'))) if (!await launchUrl(Uri.parse('https://nekoya.moe.team'))) {
throw 'Could not launch'; throw 'Could not launch';
}
}, },
child: const Text( child: const Text(
'© 2021-2022 Nekoya Co. Ltd.', '© 2021-2022 Nekoya Co. Ltd.',