Last active
March 30, 2019 18:27
-
-
Save maffan91/251c062bd45f97ef3b853efb589f9b43 to your computer and use it in GitHub Desktop.
Example Movie Card UI
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
import 'package:dismissable_listview/models/movie.dart'; | |
import 'package:flutter/material.dart'; | |
class MovieCard extends StatelessWidget { | |
final Movie movie; | |
MovieCard({this.movie}); | |
@override | |
Widget build(BuildContext context) { | |
return Card( | |
child: Column( | |
children: <Widget>[ | |
ListTile( | |
leading: CircleAvatar( | |
backgroundImage: NetworkImage(movie.imageUrl), | |
), | |
title: Text(movie.title), | |
subtitle: Text(movie.genre), | |
trailing: Text(movie.year), | |
) | |
], | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment