Skip to content

Commit

Permalink
refactor(flutter_infinite_list): remove unnecessary Material widget (
Browse files Browse the repository at this point in the history
…#4338)

Co-authored-by: Felix Angelov <felix@shorebird.dev>
  • Loading branch information
Uniyo-Ltd and felangel authored Jan 17, 2025
1 parent 7eacca9 commit c2bf0af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ class PostListItem extends StatelessWidget {
@override
Widget build(BuildContext context) {
final textTheme = Theme.of(context).textTheme;
return Material(
child: ListTile(
leading: Text('${post.id}', style: textTheme.bodySmall),
title: Text(post.title),
isThreeLine: true,
subtitle: Text(post.body),
dense: true,
),
return ListTile(
leading: Text('${post.id}', style: textTheme.bodySmall),
title: Text(post.title),
isThreeLine: true,
subtitle: Text(post.body),
dense: true,
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extension on WidgetTester {
MaterialApp(
home: BlocProvider.value(
value: postBloc,
child: PostsList(),
child: Scaffold(body: PostsList()),
),
),
);
Expand Down

0 comments on commit c2bf0af

Please sign in to comment.