<Android: Widget dynamic background with URL> as a...
# stackoverflow
u
Android: Widget dynamic background with URL as a Flutter developer, I want to give widgets dynamic backgrounds. Without URL, I was able to do it but sadly with URL, I can't do that. Currently, I did something like this, but sadly it does not work. // I get the url here val imageUrl = widgetData.getString("background", defaultBackgroundUrl) // Not Working // remoteViews.setString(R.id.widget_container, "setBackgroundResource", imageUrl) // Not working // remoteViews.setImageViewUri(R.id.widget_container,...