From e5b0b38b5074914db1d3f557aa87dccbd0d8f0dd Mon Sep 17 00:00:00 2001 From: Inex Code Date: Thu, 11 Apr 2024 13:13:38 +0300 Subject: [PATCH] refactor(ui): Remove unnecessary GestureDetector from the service_page --- lib/ui/pages/services/service_page.dart | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/lib/ui/pages/services/service_page.dart b/lib/ui/pages/services/service_page.dart index aa1ac9b6..42f75fe1 100644 --- a/lib/ui/pages/services/service_page.dart +++ b/lib/ui/pages/services/service_page.dart @@ -64,24 +64,22 @@ class _ServicePageState extends State { ServiceStatusCard(status: service.status), const SizedBox(height: 16), if (service.url != null) - GestureDetector( + ListTile( + iconColor: Theme.of(context).colorScheme.onBackground, + onTap: () => launchURL(service.url), onLongPress: () { PlatformAdapter.setClipboard(service.url!); getIt() .showSnackBar('basis.copied_to_clipboard'.tr()); }, - child: ListTile( - iconColor: Theme.of(context).colorScheme.onBackground, - onTap: () => launchURL(service.url), - leading: const Icon(Icons.open_in_browser), - title: Text( - 'service_page.open_in_browser'.tr(), - style: Theme.of(context).textTheme.titleMedium, - ), - subtitle: Text( - service.url!.replaceAll('https://', ''), - style: Theme.of(context).textTheme.bodyMedium, - ), + leading: const Icon(Icons.open_in_browser), + title: Text( + 'service_page.open_in_browser'.tr(), + style: Theme.of(context).textTheme.titleMedium, + ), + subtitle: Text( + service.url!.replaceAll('https://', ''), + style: Theme.of(context).textTheme.bodyMedium, ), ), const SizedBox(height: 8),