From 381819ae6fe3301515b4db50ea93854b3a3091bd Mon Sep 17 00:00:00 2001 From: reasje Date: Tue, 24 Oct 2023 13:50:46 +0330 Subject: [PATCH] fix: Go to send crypto on token tap --- .../tokens_balance_list/tokens_balance_list.dart | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/features/portfolio/subfeatures/tokens_balance_list/tokens_balance_list.dart b/lib/features/portfolio/subfeatures/tokens_balance_list/tokens_balance_list.dart index ee47cec4..7df39250 100644 --- a/lib/features/portfolio/subfeatures/tokens_balance_list/tokens_balance_list.dart +++ b/lib/features/portfolio/subfeatures/tokens_balance_list/tokens_balance_list.dart @@ -2,6 +2,7 @@ import 'package:datadashwallet/common/common.dart'; import 'package:datadashwallet/core/core.dart'; import 'package:datadashwallet/features/portfolio/portfolio.dart'; import 'package:datadashwallet/features/portfolio/subfeatures/token/add_token/add_token_page.dart'; +import '../token/send_token/send_crypto/send_crypto_page.dart'; import './utils.dart'; import 'package:flutter/material.dart'; import 'package:flutter_i18n/flutter_i18n.dart'; @@ -43,6 +44,14 @@ class TokensBalanceList extends HookConsumerWidget { ...TokensBalanceListUtils .generateTokensBalanceList( portfolioState.tokensList!, + onSelected: (token) => + Navigator.of(context).push( + route.featureDialog( + SendCryptoPage( + token: token, + ), + ), + ), ) ], )),