mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-14 09:14:05 +01:00
CWA-220 | blocked possibility to edit address of current wallet in the exchange page; changed displaying subaddress when label is empty
This commit is contained in:
@@ -304,9 +304,6 @@ class ReceivePageState extends State<ReceivePage> {
|
||||
final isCurrent =
|
||||
walletStore.subaddress.address == subaddress.address;
|
||||
|
||||
String shortAddress = subaddress.address;
|
||||
shortAddress = shortAddress.replaceRange(8, shortAddress.length - 8, '...');
|
||||
|
||||
final content = Observer(
|
||||
builder: (_) {
|
||||
final isShortAddressShow = subaddressListStore.isShortAddressShow[index];
|
||||
@@ -315,7 +312,7 @@ class ReceivePageState extends State<ReceivePage> {
|
||||
? 'Primary subaddress'
|
||||
: subaddress.label.isNotEmpty
|
||||
? subaddress.label
|
||||
: isShortAddressShow ? shortAddress : subaddress.address;
|
||||
: subaddress.address;
|
||||
|
||||
return InkWell(
|
||||
onTap: () => walletStore.setSubaddress(subaddress),
|
||||
@@ -335,6 +332,8 @@ class ReceivePageState extends State<ReceivePage> {
|
||||
),
|
||||
child: Text(
|
||||
label,
|
||||
maxLines: isShortAddressShow ? 1 : 10,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.bold,
|
||||
|
||||
Reference in New Issue
Block a user