Skip to content

Instantly share code, notes, and snippets.

@maffan91
Last active March 30, 2019 18:27
Show Gist options
  • Save maffan91/251c062bd45f97ef3b853efb589f9b43 to your computer and use it in GitHub Desktop.
Save maffan91/251c062bd45f97ef3b853efb589f9b43 to your computer and use it in GitHub Desktop.
Example Movie Card UI
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