From c8847c6d283de747af373fb0b8a13cd7b44cde1f Mon Sep 17 00:00:00 2001 From: yekta Date: Tue, 5 Mar 2024 20:35:31 +0300 Subject: [PATCH] Fix share card logo --- lib/ui/receive/share_card.dart | 47 ++++++++++++++++------------------ 1 file changed, 22 insertions(+), 25 deletions(-) diff --git a/lib/ui/receive/share_card.dart b/lib/ui/receive/share_card.dart index 490f77c..b1d433c 100644 --- a/lib/ui/receive/share_card.dart +++ b/lib/ui/receive/share_card.dart @@ -1,6 +1,7 @@ import 'dart:io'; import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; +import 'package:kalium_wallet_flutter/app_icons.dart'; import 'package:kalium_wallet_flutter/appstate_container.dart'; import 'package:kalium_wallet_flutter/ui/widgets/auto_resize_text.dart'; import 'package:qr_flutter/qr_flutter.dart'; @@ -82,33 +83,29 @@ class _AppShareCardState extends State { // Logo Container( width: 97, - child: RichText( - maxLines: 1, - text: TextSpan( - children: [ - // Currency Icon - TextSpan( - text: "\u{e801} ", - style: TextStyle( - color: - StateContainer.of(context).curTheme.primary, - fontFamily: "AppIcons", - fontWeight: FontWeight.w500, - fontSize: 14.8, - ), + child: Row( + mainAxisAlignment: MainAxisAlignment.start, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + // Currency Icon + Container( + margin: EdgeInsets.only(right: 5.5, bottom: 1.5), + child: Icon( + AppIcons.bananologo, + size: 24, + color: StateContainer.of(context).curTheme.primary, ), - TextSpan( - text: "BANANO", - style: TextStyle( - fontFamily: 'NeueHansKendrick', - color: - StateContainer.of(context).curTheme.primary, - fontWeight: FontWeight.w500, - fontSize: 14.8, - ), + ), + Text( + "BANANO", + style: TextStyle( + fontFamily: 'NeueHansKendrick', + color: StateContainer.of(context).curTheme.primary, + fontWeight: FontWeight.w500, + fontSize: 14.8, ), - ], - ), + ), + ], ), ), // Address