friends!
I want to make a number picker on Flutter, where the font size of numbers (not selected) progressively decreases to each side and changes the colors.
As shown in the picture.
Is anybody has a task like that? Any solution?
p.s. Tried to use package NumberPicker
No results!
i never used NumberPicker, but here is
https://pub.dev/documentation/numberpicker/latest/numberpicker/NumberPicker-class.html
decoration properties which help to change selected value size and color.
Related
Before i used on the ui test Font Size 150 and the scale 1,1,1 but now i want the text to be smaller so i changed the font size to 30. and in the bottom i changed Horizontal overflow to Wrap and the Vertical overflow to Truncate.
The text under each button circle looks blurry and i want to keep the small size but make it sharper.
This is a screenshot of the buttons and example text under each one with date and time.
You should use TextMeshPro, it is a free package from unity. Just go to packages and install it.
The text looks much better and you have many more options to make it look better. (Outlines, underlay, different case types like all uppercase, smallcaps, etc)
I want the the box dynamically fit the picked value, so it can grows bigger and smaller to fit its content. Here is my code for review. Is it possible with my code structure right now? Change widget is ok as long as I reach the desired behaviour.
Thanks in advance!
I have an NSTableView with only one column. When I change the Windows size, the TableView sticks to the Windows borders, as it should:
ScreenShot Small
However, when I expand the windows frame to much (for example, when using full screen) suddenly a second column appears:
ScreenShot FullScreen
I have no idea, why this is happening. I can't expand the first cell manually using this little resize indicator, it seems like the cell inside the tableview just wouldn't be able to grow more...
Here is a picture of the TableViews Attributes Inspector:
ScreenShot AttributeInspector
I didn't find any constraints or width settings that would explain this.
I would be really greatful for any kind of help.
Try changing the column sizing of tableView to Uniform in attributes inspector.
Also in your size inspector, check and adjust maximum width for the column depending on your window max allowable width.
Have been searching around and can't find the answer to this. I'm just wondering how to change the color of the font for each individual line of a picker. Is this even possible? Thanks
Yes it's possible. Here are a few links to get you started:
UIPicker font size for a certain column and row
http://alisothegeek.com/2009/07/custom-uipickerview-text-formatting/
https://developer.apple.com/library/ios/#documentation/uikit/reference/UIPickerViewDelegate_Protocol/Reference/UIPickerViewDelegate.html#//apple_ref/occ/intf/UIPickerViewDelegate
I'm working on a iPhone product page where some of the fields can be fairly long (product name etc.) I've created the page layout in IB, and use UILabels to show the text fields. For those long text labels I'd like the height of the label to scale and push the other labels further down. Is this possible using IB, or would I have to do everything in code? (Compute height and position of all the UILabels.)
I'm presently able to get the text in the labels to wrap and fill the available space, but I have to reserve space for this. When the label is only one line it leaves lots of unused space before the next label.
You will have to calculate the heights dynamically in code. I'm not sure what you're doing exactly, but you may want to start using a UITableView and return variable height cells. I wrote a blog post on how to do this at Cocoa Is My Girlfriend.
It did some searching for this same thing and as far as I can tell you have to manually resize and position the labels.
If you want to know how to dynamically resize a label, this is how I am doing it:
myLabel.frame = CGRectMake(227.0, 12.0, 22.0, 21.0);
I am happy to be wrong on this one, since I don't like having to do this either.