Skip to content

Commit bb8901d

Browse files
committed
NNBD example
1 parent 48bc239 commit bb8901d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/lib/home_page.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
 (0)