From 852602430ca5acb94af8836ce7ce8af8c360ee20 Mon Sep 17 00:00:00 2001 From: Moe Date: Mon, 30 May 2022 13:52:41 +0700 Subject: [PATCH] Add curly braces --- lib/components/about_us_body.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/components/about_us_body.dart b/lib/components/about_us_body.dart index 5dadf24..38269d5 100644 --- a/lib/components/about_us_body.dart +++ b/lib/components/about_us_body.dart @@ -88,8 +88,9 @@ class _AboutUsBodyState extends State { ), 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 { 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.',