Skip to content

Instantly share code, notes, and snippets.

@dllewellyn
Created November 20, 2019 18:11
Show Gist options
  • Save dllewellyn/0c9cfc503b67e3fdb78c0e7cd8faac4b to your computer and use it in GitHub Desktop.
Save dllewellyn/0c9cfc503b67e3fdb78c0e7cd8faac4b 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: [
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