mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-01 12:04:21 +01:00
Update icons (#3055)
* Update action icons * Update buy arrow * Add iconSize option to action
This commit is contained in:
@@ -6,8 +6,9 @@ class BalanceCardAction {
|
||||
final String label;
|
||||
final IconData icon;
|
||||
final VoidCallback onTap;
|
||||
final double? iconSize;
|
||||
|
||||
const BalanceCardAction({required this.label, required this.icon, required this.onTap});
|
||||
const BalanceCardAction({required this.label, required this.icon, required this.onTap, this.iconSize = 16});
|
||||
}
|
||||
|
||||
class BalanceCard extends StatelessWidget {
|
||||
@@ -299,7 +300,7 @@ class BalanceCard extends StatelessWidget {
|
||||
style: TextStyle(color: design.colors.textColor, fontSize: 16),
|
||||
),
|
||||
),
|
||||
Icon(action.icon, color: design.colors.textColorSecondary),
|
||||
Icon(action.icon, color: design.colors.textColorSecondary, size: action.iconSize),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
@@ -170,7 +170,8 @@ class _CardsViewState extends State<CardsView> {
|
||||
? [
|
||||
BalanceCardAction(
|
||||
label: S.current.buy,
|
||||
icon: Icons.arrow_forward,
|
||||
icon: Icons.arrow_forward_ios_rounded,
|
||||
iconSize: 12,
|
||||
onTap: () => Navigator.of(context).pushNamed(Routes.buySellPage),
|
||||
)
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user