CAKE-158 | made account tile slidable; added onEdit function to account tile; added ability to edit wallet account name; added isFirstAddress parameter to wallet_address_list_view_model.dart and made first address in the address list not editable (receive page); wrapped wallet account name in the wallet menu title by observer; added _moneroTransactionsChangeReaction to dashboard_view_model.dart

This commit is contained in:
OleksandrSobol
2020-11-17 20:16:58 +02:00
parent f704bdc864
commit 23abacd252
11 changed files with 97 additions and 11 deletions
@@ -6,6 +6,7 @@ import 'package:cake_wallet/view_model/wallet_address_list/wallet_address_list_i
class AddressCell extends StatelessWidget {
factory AddressCell.fromItem(WalletAddressListItem item,
{@required bool isCurrent,
@required bool isFirstAddress,
@required Color backgroundColor,
@required Color textColor,
Function(String) onTap,
@@ -14,6 +15,7 @@ class AddressCell extends StatelessWidget {
address: item.address,
name: item.name,
isCurrent: isCurrent,
isFirstAddress: isFirstAddress,
backgroundColor: backgroundColor,
textColor: textColor,
onTap: onTap,
@@ -23,6 +25,7 @@ class AddressCell extends StatelessWidget {
{@required this.address,
@required this.name,
@required this.isCurrent,
@required this.isFirstAddress,
@required this.backgroundColor,
@required this.textColor,
this.onTap,
@@ -31,6 +34,7 @@ class AddressCell extends StatelessWidget {
final String address;
final String name;
final bool isCurrent;
final bool isFirstAddress;
final Color backgroundColor;
final Color textColor;
final Function(String) onTap;
@@ -56,7 +60,7 @@ class AddressCell extends StatelessWidget {
),
));
return isCurrent
return (isCurrent || isFirstAddress)
? cell
: Slidable(
key: Key(address),