Skip to content

Instantly share code, notes, and snippets.

@dllewellyn
Created November 21, 2019 17:47
Show Gist options
  • Save dllewellyn/e80ec3d291384b929893d47bb4a15722 to your computer and use it in GitHub Desktop.
Save dllewellyn/e80ec3d291384b929893d47bb4a15722 to your computer and use it in GitHub Desktop.
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