File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
sample_app/lib/login_screen Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -59,11 +59,11 @@ class _LoginUserListItem extends StatelessWidget {
5959 return ListTile (
6060 onTap: onTap,
6161 leading: CircleAvatar (
62- backgroundImage: switch (credentials.user.imageUrl ) {
63- final String imageUrl => CachedNetworkImageProvider (imageUrl ),
62+ backgroundImage: switch (credentials.user.image ) {
63+ final String image => CachedNetworkImageProvider (image ),
6464 _ => null ,
6565 },
66- child: switch (credentials.user.imageUrl ) {
66+ child: switch (credentials.user.image ) {
6767 String _ => null ,
6868 _ => _LoginUserListItemPlaceholder (credentials),
6969 },
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class UserCredentials {
1212 user: const User (
1313 id: 'luke_skywalker' ,
1414 name: 'Luke Skywalker' ,
15- imageUrl :
15+ image :
1616 'https://vignette.wikia.nocookie.net/starwars/images/2/20/LukeTLJ.jpg' ,
1717 ),
1818 token: DemoAppConfig .current.tokenForUser ('luke_skywalker' ),
@@ -22,7 +22,7 @@ class UserCredentials {
2222 user: const User (
2323 id: 'martin' ,
2424 name: 'Martin' ,
25- imageUrl :
25+ image :
2626 'https://getstream.io/static/2796a305dd07651fcceb4721a94f4505/802d2/martin-mitrevski.webp' ,
2727 ),
2828 token: DemoAppConfig .current.tokenForUser ('martin' ),
@@ -32,7 +32,7 @@ class UserCredentials {
3232 user: const User (
3333 id: 'tommaso' ,
3434 name: 'Tommaso' ,
35- imageUrl :
35+ image :
3636 'https://getstream.io/static/712bb5c0bd5ed8d3fa6e5842f6cfbeed/c59de/tommaso.webp' ,
3737 ),
3838 token: DemoAppConfig .current.tokenForUser ('tommaso' ),
@@ -42,7 +42,7 @@ class UserCredentials {
4242 user: const User (
4343 id: 'thierry' ,
4444 name: 'Thierry' ,
45- imageUrl :
45+ image :
4646 'https://getstream.io/static/237f45f28690696ad8fff92726f45106/c59de/thierry.webp' ,
4747 ),
4848 token: DemoAppConfig .current.tokenForUser ('thierry' ),
@@ -52,7 +52,7 @@ class UserCredentials {
5252 user: const User (
5353 id: 'marcelo' ,
5454 name: 'Marcelo' ,
55- imageUrl :
55+ image :
5656 'https://getstream.io/static/aaf5fb17dcfd0a3dd885f62bd21b325a/802d2/marcelo-pires.webp' ,
5757 ),
5858 token: DemoAppConfig .current.tokenForUser ('marcelo' ),
You can’t perform that action at this time.
0 commit comments