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