Skip to content

Instantly share code, notes, and snippets.

@felangel
Created December 27, 2018 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felangel/6f2bbcf1e9d662608b4a1749d7890461 to your computer and use it in GitHub Desktop.
Save felangel/6f2bbcf1e9d662608b4a1749d7890461 to your computer and use it in GitHub Desktop.
[flutter_infinite_list] post widget
class PostWidget extends StatelessWidget {
final Post post;
const PostWidget({Key key, @required this.post}) : super(key: key);
@override
Widget build(BuildContext context) {
return ListTile(
leading: Text(
post.id.toString(),
style: TextStyle(fontSize: 10.0),
),
title: Text('${post.title}'),
isThreeLine: true,
subtitle: Text(post.body),
dense: true,
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment