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.
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 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
I'm noticing on iPhone that the images for the "subscribe" widget and the "Spark" widget are not displaying the images inside of them. The images are using CSS Transforms to rotate them. I'm unable to pinpoint what the issue is, any guidance at all would be amazing!
It has nothing to do with iPhone, the height of the image is set to 0px and not changed for smaller widths. You will get the same effect if you reload the page on any browser while on a small window width.
I am trying to make some custom art for my app that will be shown at the top of the app, right up against the status bar.
In order to make the art look good, I would like to know what the corner radius is for the part of the app illustrated below:
I would like to know what the radius is that iOS makes your app fit into.
Thanks,
Erway Software
It's about 4.5. I took a screenshot of the simulator, zoomed in about 2000% and compared various values to dial it in.
If you're making a UIView in the Interface Builder and specifying the layer.cornerRadius in the User Defined Runtime Attributes, a value of 5 is more than close enough.
I want to customize very first MainScreen of my Blackberry application as like small ticker screen. My aim is that the first MainScreen should be of size 320width,100height so when user launches the application then he will just see screen of size 320width and 100height (0,200,320,100) while remaining screen will be transparent and user will see other applications through transparent screen.
The best you could do is take a screenshot with your app backgrounded, to capture what would be underneath. Then draw the 320x100 UI on top of that screenshot. This has the visual effect you want, but if the underlying screens try to draw any update, that update will not be reflected in your UI.