Created
November 21, 2019 17:47
-
-
Save dllewellyn/e80ec3d291384b929893d47bb4a15722 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AccountListItem extends StatelessWidget { | |
final AccountData accountData; | |
const AccountListItem({Key key, this.accountData}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Container( | |
padding: const EdgeInsets.all(16.0), | |
child: Row( | |
crossAxisAlignment: CrossAxisAlignment.start, | |
children: [ | |
SvgPicture.network(urlImageForCurrency(accountData.currencyValue)), // Added | |
AccountTitle(supportedCurrency: accountData.currencyValue), | |
Spacer(), | |
BalanceWidget( | |
balance: accountData.balance, | |
) | |
], | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment