@@ -158,31 +158,31 @@ class ChatUi extends StatelessWidget {
158
158
child: Row (
159
159
children: < Widget > [
160
160
OnlinePersonAction (
161
- personImagePath: 'assets/img/1.jpg' ,
161
+ personImagePath: avatars[ 0 ] ,
162
162
actColor: Colors .greenAccent,
163
163
),
164
164
OnlinePersonAction (
165
- personImagePath: 'assets/img/backdrop.png' ,
165
+ personImagePath: avatars[ 1 ] ,
166
166
actColor: Colors .yellowAccent,
167
167
),
168
168
OnlinePersonAction (
169
- personImagePath: 'assets/img/avatar.png' ,
169
+ personImagePath: avatars[ 2 ] ,
170
170
actColor: Colors .redAccent,
171
171
),
172
172
OnlinePersonAction (
173
- personImagePath: 'assets/img/5.jpg' ,
173
+ personImagePath: avatars[ 3 ] ,
174
174
actColor: Colors .yellowAccent,
175
175
),
176
176
OnlinePersonAction (
177
- personImagePath: 'assets/img/6.jpg' ,
177
+ personImagePath: avatars[ 4 ] ,
178
178
actColor: Colors .greenAccent,
179
179
),
180
180
OnlinePersonAction (
181
- personImagePath: 'assets/img/7.jpg' ,
181
+ personImagePath: avatars[ 5 ] ,
182
182
actColor: Colors .greenAccent,
183
183
),
184
184
OnlinePersonAction (
185
- personImagePath: 'assets/img/1.jpg' ,
185
+ personImagePath: avatars[ 6 ] ,
186
186
actColor: Colors .greenAccent,
187
187
),
188
188
],
@@ -258,7 +258,7 @@ class OnlinePersonAction extends StatelessWidget {
258
258
decoration: BoxDecoration (
259
259
borderRadius: BorderRadius .circular (50.0 ),
260
260
image: DecorationImage (
261
- image: AssetImage (personImagePath),
261
+ image: CachedNetworkImageProvider (personImagePath),
262
262
fit: BoxFit .cover
263
263
),
264
264
),
0 commit comments