Skip to content

Instantly share code, notes, and snippets.

@felangel felangel/main.dart
Created Dec 27, 2018

Embed
What would you like to do?
[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
You can’t perform that action at this time.