Questions tagged [picker]

Synonym of selector or chooser.

Synonym of selector or chooser.

1556 questions
17
votes
7 answers

Flutter image_picker "'PickedFile'" can't be assigned to the parameter type 'File'

I'm calling a widget in my code to display the selected image through image-picker plugin; following is my code: Widget _imagePlaceHolder() { if (imageSelected == null){ return Text("No File Selected!!"); } else { Image.file(imageSelected,…
Yasir Bucha
  • 213
  • 1
  • 4
  • 7
17
votes
2 answers

SwiftUI - Placing two pickers side-by-side in HStack does not resize pickers

My goal is to have two pickers placed side-by-side horizontally with each picker taking up half the width of the screen. Imagine a UIPickerView that fits the width of the screen and has two components of equal width - that's what I'm attempting to…
graycampbell
  • 7,430
  • 3
  • 24
  • 30
17
votes
1 answer

Paging UIScrollView with different page widths

I would like to have a horizontal scrolling UIScrollView with paging enabled. The pages in this scrollview have different widths, so the scrolling distance differs from page to page. The goal is to make a picker for different points in time, e.g.: |…
Florian L.
  • 849
  • 2
  • 8
  • 22
17
votes
8 answers

Date picker in Android

Can any one post sample code for a simple date picker in Android. If date picker is not possible in Android, an option to choose a date is needed.
Sanjeev
  • 267
  • 2
  • 4
  • 8
16
votes
2 answers

Android image picker for local files only

I'm using the built in Android image picker as follows: Intent photoPickerIntent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); m_activity.startActivityForResult(photoPickerIntent,…
JamieH
  • 4,788
  • 6
  • 28
  • 29
16
votes
8 answers

Multi-Component Picker (UIPickerView) in SwiftUI

I'm trying to add a three-component Picker (UIPickerView) to a SwiftUI app (in a traditional UIKit app, the data source would return 3 from the numberOfComponents method), but I can't find an example of this anywhere. I've tried adding an HStack of…
Frank Schmitt
  • 25,648
  • 10
  • 58
  • 70
16
votes
5 answers

Binding a picker to mvvm command Xamarin forms

I have been looking everywhere to try and solve this issue, I have not been using Xamarin forms for long but I thought it would have been easy. I am trying to bind a picker selecteditemchanged to a command in the view model, I am using FreshMVVM and…
theshwaguy
  • 439
  • 1
  • 3
  • 14
15
votes
2 answers

Change Navigation Title of Picker in SwiftUI

I'd like to set a navigation title when an user selected some option in Picker Here is my selection model: enum AppIcon: CaseIterable, Identifiable { var id: Self { return self } case `default` case ethereum case…
Tikhonov Aleksandr
  • 13,945
  • 6
  • 39
  • 53
15
votes
1 answer

How to select multiple values from Picker component in react-native?

react-native Picker component doesn't seem like providing multiselect option https://facebook.github.io/react-native/docs/picker.html#enabled But, I have com across some libraries which provides multiselect option…
ThinkAndCode
  • 1,319
  • 3
  • 29
  • 60
15
votes
1 answer

Set height of picker with react-native

I have a picker in my react-native ios app and want to set the height but the example won't honor flex, a style height or a height attribute.
Victor 'Chris' Cabral
  • 2,135
  • 1
  • 16
  • 33
14
votes
14 answers

Multiple DatePickers in same activity

I am absolutely new to the Android platform and have been building an application while learning the development process. Currently, I am working on an activity in which i need to deploy 2 date pickers. One is a "Start Date" and the other is an "End…
Siddharth Lele
  • 27,623
  • 15
  • 98
  • 151
13
votes
5 answers

How can I add new button in date picker widget in android?

I want to add new button,which is clear button, to date picker widget and time picker widget in my android application. In default, these widgets have two button,set and cancel. How can I add one more button to these two button Is it possible? If…
SavasCinar
  • 667
  • 3
  • 8
  • 25
13
votes
5 answers

Adding Segmented Style Picker to SwiftUI's NavigationView

The question is as simple as in the title. I am trying to put a Picker which has the style of SegmentedPickerStyle to NavigationBar in SwiftUI. It is just like the native Phone application's history page. The image is below I have looked for Google…
Faruk
  • 2,269
  • 31
  • 42
13
votes
5 answers

SwiftUI : Picker does not update correctly when changing datasource

I have just started learning SwiftUI and got stuck somewhere! I am trying to change segment styled picker datasource when changing value of another segment. But somehow it is not working as expected! Or else I might have coded something wrong. Can…
iRiziya
  • 3,235
  • 1
  • 22
  • 36
13
votes
1 answer

React-Native Picker with Formik

My basic forms work fine, however, as there are some caveats with react-native, I could use some help in knowing if the issue is how I am using formik, or using it with react-native. In this particular form, when I attempt to fill in a picker in…
Jerry
  • 940
  • 2
  • 12
  • 26