Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am dllewellyn on github.
  • I am danllewellyn (https://keybase.io/danllewellyn) on keybase.
  • I have a public key ASDXhNSlsT_BHMHZEokarlh5ZjtNPDjysj-y6V4vNSBmuQo

To claim this, I am signing this object:

void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
class AllUserDetails {
final List<AccountData> accounts;
AllUserDetails({this.accounts});
}
class AccountData {
final String key;
final SupportedCurrency currencyValue;
final double balance;
class AccountTitle extends StatelessWidget {
final SupportedCurrency supportedCurrency;
const AccountTitle({@required this.supportedCurrency});
@override
Widget build(BuildContext context) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
class BalanceWidget extends StatelessWidget {
final double balance;
const BalanceWidget({Key key, this.balance}) : super(key: key);
@override
Widget build(BuildContext context) {
return Text(balance.toString());
}
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 (
String urlImageForCurrency(SupportedCurrency currency) {
return "https://coinbaseliveexchange.appspot.com/currencies/image/" +
currency.id;
}
name: crypto_currency_wallet
description: A new Flutter application.
version: 1.0.0+1
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
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(
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps: