@ -36,19 +36,11 @@ class EntityIcon extends StatelessWidget {
|
||||
image: DecorationImage(
|
||||
fit:BoxFit.cover,
|
||||
image: CachedNetworkImageProvider(
|
||||
"$homeAssistantWebHost${data.entity.entityPicture}",
|
||||
"${data.entity.entityPicture}",
|
||||
),
|
||||
)
|
||||
),
|
||||
);
|
||||
return CircleAvatar(
|
||||
radius: size/2+0,
|
||||
|
||||
backgroundColor: Colors.white,
|
||||
backgroundImage: CachedNetworkImageProvider(
|
||||
"$homeAssistantWebHost${data.entity.entityPicture}",
|
||||
),
|
||||
);
|
||||
} else {
|
||||
String iconName = data.icon;
|
||||
int iconCode = 0;
|
||||
|
Reference in New Issue
Block a user