0.4.0 - translations, download fallback, android auto, radio, infinite flow, bugfixes
This commit is contained in:
parent
a5381f0fed
commit
e984621eeb
88 changed files with 2911 additions and 379 deletions
|
|
@ -48,10 +48,18 @@ class CachedImage extends StatefulWidget {
|
|||
class _CachedImageState extends State<CachedImage> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
if (widget.circular) return ClipOval(
|
||||
child: CachedImage(url: widget.url, height: widget.height, width: widget.width, circular: false)
|
||||
);
|
||||
|
||||
if (!widget.url.startsWith('http'))
|
||||
return Image.asset(
|
||||
widget.url,
|
||||
width: widget.width,
|
||||
height: widget.height,
|
||||
);
|
||||
|
||||
return CachedNetworkImage(
|
||||
imageUrl: widget.url,
|
||||
width: widget.width,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue