tx history improved layout (wip)

This commit is contained in:
Robert Malikowski
2026-06-24 11:00:51 +02:00
parent cda9d09ead
commit 7c7ddf8205
3 changed files with 19 additions and 7 deletions
@@ -5,6 +5,7 @@ import 'dart:io' show Platform;
import 'package:cake_wallet/.secrets.g.dart' as secrets;
import 'package:cake_wallet/bitcoin/bitcoin.dart';
import 'package:cake_wallet/core/key_service.dart';
import 'package:cake_wallet/view_model/dashboard/date_section_item.dart';
import "package:cw_core/balance_card_style_settings.dart";
import 'package:cake_wallet/core/trade_monitor.dart';
import 'package:cake_wallet/entities/auto_generate_subaddress_status.dart';
@@ -715,6 +716,11 @@ abstract class DashboardViewModelBase with Store {
return formattedItemsList(_items);
}
static const shortHistoryLength = 3;
@computed
List<ActionListItem> get itemsShort => items.where((item)=>item is! DateSectionItem).take(3).toList();
@observable
WalletBase<Balance, TransactionHistoryBase<TransactionInfo>, TransactionInfo> wallet;