Cupertino Picker is a class for an iOS styled picker for date, time, etc.
Questions tagged [cupertinopicker]
50 questions
1
vote
1 answer
Flutter: How to remove the divider lines in CupertinoDatePicker?
While doing a coding walkthrough, I've never find a way to get rid of the divider lines.
How can I achieve this? For more info, I just created a new custom class by just copying the CupertinoDatePicker class.

Vivek
- 113
- 1
- 12
1
vote
1 answer
Flutter - CupertinoDatePicker showing one day ahead of the today?
Currently, implementing a default widget CupertinoDatePicker in my flutter app. In this date picker i want the feature that user should not be able to select the day before today. User should be able to select only the future and today's dates.
So,…

Jay Mungara
- 6,663
- 2
- 27
- 49
1
vote
1 answer
Passing Cupertino Datepicker to another widget
How do I pass down the data from the datepicker to the _addCashButton widget?
I was able to assign the date to newDateTime. I assigned it again to addDate to save to the database but it's coming up as null
class AddCashTab extends StatefulWidget {
…

Kagimura
- 397
- 1
- 7
- 20
1
vote
0 answers
Flutter - widget testing for the Cupertino picker in flutter/Dart
i am testing the Cupertino picker,for which i am writing widget testing and i am struggling to implement how the onselectItemChanged in testing and accordingly the values chosen by the wheeling of the cupertino picker. The testing has to be done so…

Praveen Ramalingam
- 867
- 2
- 7
- 14
0
votes
1 answer
Is there a way to change the written date using Cupertino date picker?
The current date is already written in the text button. When you press it, a CupertinoDatePicker pops up, but I want to change the written date instantly when I change the date in CupertinoDatePicker. With normal date picker it is possible but after…

anıl
- 1
0
votes
2 answers
How can I set the initial time for the time picker in Flutter CupertinoDatePicker?
In my CupertinoDatePickerMode.time , I need to slide the picker for setting the time which is currently on the picker with onDateTimeChanged. I click the button and the picker pops up. I can set the time like I said only after sliding the picker.
So…

Ata Berk Çinetçi
- 25
- 5
0
votes
1 answer
Flutter cupertinoPicker value not changing
I'm trying to use CupertinoPicker on a AlertDialog widget but the values are do not change. The same code work when it's not the AlertDialog widget. What's happening?
Button to press to show AlertDialog:
ElevatedButton(
onPressed: ()…

Eben Oasis
- 69
- 6
0
votes
1 answer
Flutter CupertinoDatePicker error grey box
this error was already mentioned but could not be solved yet.
CupertinoDatePicker works in debug mode but not in the release version. Sometimes it works, sometimes this grey box appears:
return AlertDialog(
shape:…

Jeanz
- 1
- 2
0
votes
1 answer
CupertinoPicker skip items in Desktop (Windows) in Flutter 3.7
Since updating to Flutter 3.7 i am not able to select cerain items in my CupertienoPicker.
To reproduce this issue run the following code in Windows Desktop:
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
void…

deczaloth
- 7,094
- 4
- 24
- 59
0
votes
1 answer
How can I create a multi-level dependent list (dropdown) using CupertinoPicker in flutter?
Based on the serviceAreas list, I want to return the corresponding bus stops. For Instance, If a user selects Oyo in the serviceArea list, the list to return in the second cupertinoPicker should be the ibadanBusstop, and if a user selects Lagos in…
0
votes
1 answer
How to scroll CupertinoDatePicker with mouse drags?
I used a CupertinoDatePicker in a Flutter project that also should be deployed as a web app. But the CupertinoDatePicker only reacts to the mouse wheel, not to drag events. I think that this is unexpected behavior for many users.
Is there a way to…

DarkMath
- 1,089
- 2
- 15
- 29
0
votes
1 answer
Make showCupertinoModalPopup to return a value
Flutter reference documentation shows an example of using CupertinoPicker class wrapped by CupertinoModalPopupRoute popup Dialog:
https://api.flutter.dev/flutter/cupertino/CupertinoPicker-class.html (dartpad snippet available)
The Dialog with a…

a_dmitted
- 83
- 8
0
votes
1 answer
Is there a material TimerPicker widget in Flutter?
I want to implement a time picker widget to allow users to record duration (hours and minutes) and I also want to show differently depending on the device platform (iOS or Android).
For iOS, I can use CupertinoTimerPicker and CupertinoActionSheet…

extxuser
- 19
- 6
0
votes
1 answer
Cupertino Icons not showing on android device
I'm new to flutter, and I'm trying to use CupertinoDatePicker and CupertinoPicker on an android app, on Android Studio emulator(Android 10 and 11) it's showing normally and on a Galaxy M21s(Android 11) too.
The problem is when I try to run it on my…
0
votes
1 answer
CupertinoPicker cannot return Text from selected value
I am expecting the textfield to display "A" / "B" / etc upon selection, however it is returning the index "0" / "1" / "2" / ... only, why ???
full widget code below:
UPDATED:
int selectedValue;
Future showPicker() async {
…

icantcode
- 142
- 1
- 15