File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ class HomePage extends StatelessWidget {
5858 final items = state.content! ;
5959
6060 return RefreshIndicator (
61+ onRefresh: bloc.refresh,
6162 child: ListView .separated (
6263 physics: AlwaysScrollableScrollPhysics (),
6364 itemCount: items.length,
@@ -66,11 +67,11 @@ class HomePage extends StatelessWidget {
6667
6768 return ListTile (
6869 leading: CircleAvatar (
69- child: Text (comment.name[0 ]),
7070 backgroundColor:
7171 Colors .primaries[index % Colors .primaries.length],
7272 maxRadius: 32 ,
7373 minRadius: 32 ,
74+ child: Text (comment.name[0 ]),
7475 ),
7576 title: Text (comment.name),
7677 subtitle: Text (comment.email),
@@ -87,7 +88,6 @@ class HomePage extends StatelessWidget {
8788 },
8889 separatorBuilder: (context, index) => const Divider (),
8990 ),
90- onRefresh: bloc.refresh,
9191 );
9292 },
9393 );
You can’t perform that action at this time.
0 commit comments