Questions tagged [cupertinopicker]

Cupertino Picker is a class for an iOS styled picker for date, time, etc.

50 questions
2
votes
1 answer

Flutter CupertinoPicker initial value from a previous CupertinoPicker's last chosen value

I have a UI with multiple pickers on the screen. The first one being select an age from the list. When I pass to the second picker where we pick a weight with an initial value of 65 kg, it takes as an initial value last chosen index from the age…
2
votes
2 answers

Flutter Rotate CupertinoPicker

Is there any way to rotate the CupertinoPicker in Flutter by 90 degrees? So that you can pick horizontally and not vertically. Transform.rotate is not an option because then the width of the Picker is limited to the height of the parent widget. Or…
Quasi
  • 576
  • 4
  • 13
2
votes
2 answers

Setting CupertinoDatePicker minuteInterval: throws an exception. Flutter

I'm having trouble setting CupertinoDatePicker's minuteInterval: property to 30. It should be an integer factor of 60, so 30 should be fine. But I'm only able to set it to 1 or 2, any other value throws this exception: ════════ Exception caught by…
Vincenzo
  • 5,304
  • 5
  • 38
  • 96
2
votes
1 answer

How to disable the Cupertinopicker in flutter?

I have a CupertinoPicker, on some condition I have to disable the CupertinoPicker. Checked the CupertinoPicker class and didn't find any disable attribute in that. If disabling is not possible, Can I Stop scroll on it? CupertinoPicker( …
Uday
  • 1,619
  • 3
  • 23
  • 48
2
votes
1 answer

Flutter: How to reduce size of CupertinoPicker in ModalBottomSheet?

Whenever I try to set up a CupertinoPicker in a ModalBottomSheet in a Column, Row, or in a Container it seems to occupy the maximum possible place. Is there anyway to limit the size/heigt of the ModalBottomSheet to the actual size of the…
Jonathan Rhein
  • 1,616
  • 3
  • 23
  • 47
2
votes
1 answer

How to show initial date in Cupertino Date Picker Field

This is a small form with a Cupertino date picker. I would like to show the initial date on the form. When the textfield is tapped it will show a datepicker and once a new date is chosen, it will show the new date import…
Kagimura
  • 397
  • 1
  • 7
  • 20
2
votes
1 answer

Dynamic multilevel CupertinoPicker skews alignment of first Text item when switching between lists

I am trying to create a dynamic multilevel CupertinoPicker. When you select a location type from the first list, it displays the list of locations that match that type. This part is working fine, the problem is that if I swap to a different list of…
faulkner
  • 21
  • 1
1
vote
1 answer

Flutter CupertinoDatePicker time mode 24hour format: disable range between 00:00 and 09:00?

I have this CupertinoDatePicker set in time mode with 24h format and 15 minute interval: CupertinoDatePicker( use24hFormat: true, mode: CupertinoDatePickerMode.time, …
1
vote
1 answer

How to take out the padding of the CupertinoPicker?

I have two CupertinoPicker and a i need to take out the gap that it has between then,anyone have an idea please ? Center( child: Row( children: [ SizedBox( height: 200, width: 100, …
Gustavo
  • 41
  • 6
1
vote
1 answer

Modify Flutter CupertinoPicker scroll to not continuously scroll?

Is there a way to modify CupertinoPicker scroll so that it's not possible to continuously scroll through a range. For example, right now if the range of values is 1-7, a user is able to continuously scroll 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7,…
codr
  • 889
  • 3
  • 13
  • 22
1
vote
1 answer

flutter CupertinoPicker FixedExtentScrollController change initialItem

Expanded( flex: 10, child: Container( child: CupertinoPicker( itemExtent: 50, onSelectedItemChanged: (int i) {}, scrollController: FixedExtentScrollController( …
DEV JUNGLE
  • 19
  • 5
1
vote
1 answer

Cupertino Date Picker Flutter NoSuchMethod error (datePickerHour()) in implementation

Im new in Flutter and Im having troubles implementing a Date Picker Widget, that I have already tested apart, in my App. It just throws an error NoSuchMethodError-> The method 'datePickerHour' was called on null. Receiver: null Tried calling:…
1
vote
1 answer

Flutter Sending data to Firebase.(problem with cupertinopicker)

First Sorry about my bad English and I just started to learn Flutter. So I want to get all the informations in Firestore and I cant solve these problems. Question 1: If i click the select button, Cupertinopicker will show up and the result will show…
1
vote
1 answer

Use cupertino picker instead of keyboard while inputting a textformfield flutter

I am an ios developer who is new to Flutter. In my app, I have TextFormField, whose input type is the options give in the picker. I am struggling to show the picker view as an input view instead of the keyboard. My desired output is as follows image…
1
vote
2 answers

How to add/enabled ticker sound in CupertinoPicker/CupertinoDatePicker for iOS in flutter?

I am bit new for flutter. I used CupertinoDatePicker but ticker sound missing from it for iOS. so is there any way to enabled it or add it manually when the date-picker is scrolling? I checked for native iOS date-picker it's working fine only for…
Jaydeep Patel
  • 1,699
  • 17
  • 30