Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Chandrasekar Kuppusamy committed Apr 20, 2019
1 parent 7831045 commit b8b4195
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- [ListView](#listview)
- [Simple](#simple)
- [Divider](#divider)
- [Card](#card)

- [Text](#text)
- [Icon](#icon)
Expand Down Expand Up @@ -499,6 +500,20 @@ ListView.separated(
Divider(),
itemCount: names.length),
```

### Card

<a href="https://imgur.com/PHyWdS8"><img src="https://i.imgur.com/PHyWdS8.jpg" title="source: imgur.com" /></a>

```dart
ListView.builder(
itemCount: names.length,
itemBuilder: (BuildContext context, int position) {
var name = names[position];
return Card(margin: EdgeInsets.fromLTRB(8, 4, 8, 4),child: ListTile(title: Text(name)));
})
```

## Text
<a href="https://imgur.com/yZPgBPy"><img src="https://imgur.com/yZPgBPy.png" title="source: imgur.com"></a>

Expand Down

0 comments on commit b8b4195

Please sign in to comment.