Questions tagged [flutter-cupertino]
184 questions
2
votes
0 answers
Flutter: how to show a badge in a CupertinoTabBar and update the value based on user input
I have a CupertinoApp with a CupertinoTabScaffold, a CupertinoTabBar and a series of BottomNavigationBarItem(s). I managed to add a badge in one of the BottomNavigationBarItem (the basket tab). See the picture below as well as my code
class…

M4trix Dev
- 1,828
- 3
- 23
- 48
2
votes
2 answers
Does anyone know how to add a gradient background to CupertinoSliverAppBar?
I am trying to add a gradient background to a CupertinoSliverAppBar in a Flutter app but I cannot seem to figure out how to do it. The SliverAppBar has a flexibleSpace property that would accept a gradient but the CupertinoSliverAppBar only has a…

Benjamin
- 8,128
- 3
- 34
- 45
2
votes
1 answer
Disabling particular days in Flutter CupertinoDatePicker
Is there any way to disable/hide particular days of the week in CupertinoDatePicker?
For example, I want to disable Monday, Tuesday and Friday.

Sam
- 2,972
- 6
- 34
- 62
1
vote
1 answer
How can I create a 3 dot pop-up menu in the Flutter app bar similar to iOS with using a Cupertino package for iOS?
How to make a 3 dot pop-up menu in the app bar in Flutter like ios. I do not want to use a material package cause developing for ios. Image link below
Image here
I have already tried multiple things like 1. CupertinoContextMenu…

Sagar Choudhary
- 13
- 3
1
vote
1 answer
How to achieve Cupertino Style Navigation Bar with a cupertino search field inside it
I am developing an iOS application in flutter. I want a navigation bar which can be expandable. On expand there should be large title on left side and on collapse same title should be on top center. This thing is possible with…

Umar Ghaffar
- 23
- 5
1
vote
1 answer
i want ios 14 and above style inline date picker in flutter
Hey I want to show the ios 14 style date picker ui for my flutter without any external package.i gone through all the forms and website i cant find any solutions. can anyone help me out .i tried lot of packages but its not perfect and good.
i want…

Vijay Balaji N
- 23
- 4
1
vote
0 answers
"dispose" function not working when the current tab is changed
Whenever I switch between tabs while using CupertinoTabScaffold, my dispose function is not being called.
class CustumPageViewBuilder extends StatefulWidget {
const CustumPageViewBuilder({
super.key,
required this.words,
});
final…

Mr Yuksel
- 21
- 1
- 4
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,
…

GianlucaA
- 35
- 4
1
vote
1 answer
CupertinoPicker with multiple column fields
Hey I'm looking to implement the above widget:
I'm a bit struggling to implement it using CupertinoPicker or CupertinoDatePicker.
How do I do that?

genericUser
- 4,417
- 1
- 28
- 73
1
vote
3 answers
Flutter show Cancel-Button on CupertinoSearchTextField
I am using the CupertinoSearchTextField in my app. It is working fine so far but I am missing one feature: the Cancel-Button.
In native iOS you can set to show the button which looks like this:
Does Flutter provide this functionality? I couldn't…

Chris
- 1,828
- 6
- 40
- 108
1
vote
2 answers
How to use CupertinoTimerPicker in AlertDialog
When I use CupertinoTimerPicker in AlertDialog I'm Getting LayoutBuilder Error.
How can I use CupertinoTimerPicker in AlertDialog?
This is my code:
showDialog(
context: context,
builder: (context) {
return…

Deniz Durmaz
- 53
- 4
1
vote
1 answer
Flutter: White space coming while using BoxConstraints
White space coming in horizontal view, while giving max width to Container with BoxConstraints.
Versions
Flutter: 3.3.0
Dart: 2.18.0
My code
return Scaffold(
body: Container(
decoration: ...,
padding: const EdgeInsets.all(16.0),
child:…

parth
- 1,803
- 2
- 19
- 27
1
vote
0 answers
FLUTTER- How to use selectableDayPredicate: in CupertinoDatePicker() widget?
in Material Design using showDatePicker() widget , we can customize selectable date in particular day using selectableDayPredicate: argument. so i have a list contains some DateTime(), this list is the available date we can choose on the date…

Jilan Dirgantara
- 61
- 1
- 4
1
vote
1 answer
Cupertino date picker flutter
I am using Cupertino date picker . I want to achieve something like below image -
But currently it's look like below image -
This is my code -
CupertinoTheme(
data: CupertinoThemeData(
textTheme:…

Farman Ali Khan
- 822
- 7
- 24
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