From a6fc65126e69642964193de1058140e524d73b21 Mon Sep 17 00:00:00 2001 From: Alfreedom <00tango.bromine@icloud.com> Date: Thu, 16 Nov 2023 12:28:51 +0100 Subject: [PATCH] get a wallet fix --- lib/pages/get_wallet_page.dart | 12 ++++++++++++ lib/widgets/miscellaneous/searchbar.dart | 1 - 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/pages/get_wallet_page.dart b/lib/pages/get_wallet_page.dart index 52b08481..e170ad32 100644 --- a/lib/pages/get_wallet_page.dart +++ b/lib/pages/get_wallet_page.dart @@ -1,3 +1,4 @@ +import 'dart:io'; import 'dart:math'; import 'package:flutter/material.dart'; @@ -48,6 +49,17 @@ class GetWalletPage extends StatelessWidget { return WalletsList( itemList: itemsToShow, + onTapWallet: (data) { + final url = Platform.isIOS + ? data.listing.appStore + : data.listing.playStore; + if ((url ?? '').isNotEmpty) { + urlUtils.instance.launchUrl( + Uri.parse(url!), + mode: LaunchMode.externalApplication, + ); + } + }, lastItem: AllWalletsItem( title: 'Explore all', onTap: () => urlUtils.instance.launchUrl( diff --git a/lib/widgets/miscellaneous/searchbar.dart b/lib/widgets/miscellaneous/searchbar.dart index 755a771f..f4bc8b5e 100644 --- a/lib/widgets/miscellaneous/searchbar.dart +++ b/lib/widgets/miscellaneous/searchbar.dart @@ -157,7 +157,6 @@ class _Web3ModalSearchBarState extends State textAlignVertical: TextAlignVertical.center, style: TextStyle( color: themeColors.foreground100, - height: 1.5, ), cursorColor: themeColors.accent100, enableSuggestions: false,