I am trying to set background color for my app widget to transparent, but having some issues.
It works fine by setting a color: .background(Color.white)
But I cant figure out how to make it transparent like this:
I've tried like this: .background(Color.white.opacity(0.5)) but that just makes it gray. Any help please?
Agree with George.
Currently the only way to make a transparent widget is to add a relevant part of the home screen wallpaper (based on widget location) as an image for a widget.
This way a widget will look like a fully transparent one, but only when there are no screen movements / animations
Related
I'm a long-time web dev trying to get into iOS development and Xcode so please forgive me for the simplest of questions.
I have a strange issue when I cannot centre align button text within a button's background image. Please see the screenshot below. At the moment you can see the text sits right aligned to the background image.
It’s not a background image. Think of it more like an icon.
It looks like you might want to set your Style to “Default”. Then it will show a background field under image
I'm trying to change the background for the today widget to be transparent without the blurry effect but I can't figure out how to do that. Has anyone been able to change the background for the widget? Is it even possible to do this?
No, you cannot change the widget background color and you cannot remove blur effect
We are looking to build an iOS widget like screen in flutter. On an iphone if you swipe right a scrollable widget screen appears with application info like News, Stocks etc.
Each widget is a transparent-like rounded box, I'll attach a screenshot. Im struggling with how to design this, I thought maybe a listview with containers but im not sure and cant get the widgets to look right.
SCREENSHOT
You can control the Opacity of your listTiles using the Opacity widget, and as for the rounded corners you can use the borderRadius propery of any Container like SizedBox and ClipRRect.
I'm trying to workout how to set the background of an iOS 10 today extension/widget to what looks like a default dark mode. In the image below you can see the Weather Underground today widget and it is dark. There are a few apps with a dark background and they all look like the same background/style so I'm thinking it maybe a specific dark mode that can be set in code rather than just fiddling with the view controller color/transparency - no matter how much I try to set the color and transparency manually in the story board I can't even get close to this effect.
You can't do this. The apps that look like this, are not updated for iOS 10 yet. You can see that it hasn't been updated, because it is expanded without showing the "Show less"/"Show more" button.
I'm working on advance notifications in iOS 10 for our app and have been asked by our designer, if I can do blurred/semi-transparent background for ViewController's part (like on the image below):
As you can see - behind the kitten it's possible to distinguish icons below the notification.
I've been trying some dummy ideas like set View's background to Clear (or semi-transparent color), etc. - but nothing worked.
Is it feasible? If yes - how can it be implemented?
Thanks!