Last active
January 24, 2019 21:11
-
-
Save shubie/b05c0206b197ea35fbd48a651a9b4fea to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| cryptoPortfolioItem(IconData icon, String name, double amount, double rate, | |
| String percentage) => | |
| Card( | |
| elevation: 1.0, | |
| child: InkWell( | |
| onTap: () => print("tapped"), | |
| child: Container( | |
| padding: EdgeInsets.only(top: 15.0, bottom: 15.0, right: 15.0), | |
| decoration: BoxDecoration( | |
| color: Colors.white, | |
| borderRadius: BorderRadius.circular(22.0)), | |
| child: Row( | |
| mainAxisAlignment: MainAxisAlignment.start, | |
| children: <Widget>[ | |
| Padding( | |
| padding: EdgeInsets.only(left: 10.0, right: 15.0), | |
| child: Icon(icon, color: Colors.grey), | |
| ), | |
| Expanded( | |
| child: Column( | |
| crossAxisAlignment: CrossAxisAlignment.start, | |
| children: <Widget>[ | |
| Row( | |
| mainAxisAlignment: MainAxisAlignment.spaceBetween, | |
| children: <Widget>[ | |
| Text( | |
| name, | |
| style: TextStyle( | |
| fontSize: 18.0, fontWeight: FontWeight.bold), | |
| ), | |
| Text("\$$amount", | |
| style: TextStyle( | |
| fontSize: 16.0, | |
| fontWeight: FontWeight.bold)) | |
| ], | |
| ), | |
| Row( | |
| mainAxisAlignment: MainAxisAlignment.spaceBetween, | |
| children: <Widget>[ | |
| Text("$rate BTC", | |
| style: TextStyle( | |
| fontSize: 13.0, | |
| fontWeight: FontWeight.normal)), | |
| Text("+ \$$percentage", | |
| style: TextStyle( | |
| fontSize: 14.0, | |
| color: Colors.red[500], | |
| )) | |
| ], | |
| ) | |
| ], | |
| ), | |
| flex: 3, | |
| ), | |
| ], | |
| ), | |
| ), | |
| ), | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment