:drunk: Media offline error builder
This commit is contained in:
BIN
assets/images/media-offline.png
Normal file
BIN
assets/images/media-offline.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 307 KiB |
@@ -51,9 +51,13 @@ class UniversalImage extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
errorWidget: (context, url, error) {
|
errorWidget: (context, url, error) {
|
||||||
return const Center(
|
return Image.asset(
|
||||||
child: Icon(Icons.broken_image, color: Colors.white, size: 16),
|
'assets/images/media-offline.png',
|
||||||
|
fit: BoxFit.cover,
|
||||||
);
|
);
|
||||||
|
// return const Center(
|
||||||
|
// child: Icon(Icons.broken_image, color: Colors.white, size: 16),
|
||||||
|
// );
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user