Questions tagged [flutter-cupertino]

184 questions
2
votes
1 answer

Flutter: Issues in using Cupertino DatePicker

I am trying to check the user's device OS and display the Cupertino date picker top iOS users, and Material date picker to android users. Below is my code Future _selectDate(BuildContext context) async { DateTime? picked; if…
PeakGen
  • 21,894
  • 86
  • 261
  • 463
2
votes
1 answer

How to achieve iOS navigation between routes overlay effect

I'm developing a flutter app, that on iOS devices, I see it's pretty common to have screen transitions to have the effect of previous screen zoomed out, and the new screen sliding from the bottom, and is on top of the previous screen, while we can…
Cheng Gu
  • 21
  • 1
2
votes
2 answers

How to add text beside hour and minute in CupertinoDatePicker

I am using CupertinoDatePicker to allow user to select specific time in the current day, but i want to show text beside the selected hour and selected minute, is there any way to do this ? This is what i am expecting This is what i…
naser
  • 33
  • 4
2
votes
3 answers

cupertino equivalent of `Material`

I've conducted a long research on the internet about this (what I think is mischievous) use of Material widget in flutter, Any flutter developer faced the No Material widget found. exception even when using cupertino design widgets. A simple example…
OverLoadedBurden
  • 606
  • 1
  • 5
  • 14
2
votes
1 answer

Why does my CupertinoActionSheet appear from the top?

Everything works fine, it's just that the sheet appears at the top instead of the bottom. I would like the cupertinoactionsheet to appear from the bottom as default. I'm currently using an Android emulator but I doubt it's the reason why the sheet…
VegetaSaiyan
  • 203
  • 6
  • 18
2
votes
1 answer

Prevent Cupertino tabs to hold the state when switching tabs

The default implementation of Material's Scaffold & BottomNavigationBar is to destroy and re-create each tab in each tab change. In the case of CupertinoTabScaffold, CupertinoTabView and CupertinoPageScaffold the behavior is different: the state of…
svprdga
  • 2,171
  • 1
  • 28
  • 51
2
votes
3 answers

Pick Value onTap in CupertinoPicker and CupertinoDatePicker

onSelectedItemChanged is working perfectly in CupertinoPicker/CupertinoDatePicker But I also want to pick value when user clicked the value. Currently, user must scroll in order to pick the value, and as far as I know…
SardorbekR
  • 1,388
  • 3
  • 18
  • 33
2
votes
1 answer

Issues with Cupertino Navigation Bar

I am trying to create a custom CupertinoNavigationBar but I keep getting errors related to ObstructingPreferredSizeWidget. Can someone tell me what I need to implement to fix this? The error message I am getting is: Missing concrete implementation…
2
votes
0 answers

CupertinoDynamicColor not working for text style within a theme in Flutter

Currently I've got a problem with the dark mode for iOS in Flutter. I'm using a CupertinoApp with a CupertinoTheme. With CupertinoDynamicColor.withBrightness() it's possible to define colors for dark and light theme. This is working for example for…
Daniel
  • 1,999
  • 4
  • 15
  • 27
2
votes
2 answers

How to edit CupertinoSegmentedControl?

I want to change this. to this with flutter. but I have no idea how?
AliAzad
  • 227
  • 1
  • 2
  • 16
2
votes
2 answers

Flutter Transition Animation Issue while pushing new screen on Bottom Navigation Bar

I have a MaterialApp in which it has an IndexedStack as its homePage, to use it for BottomBarNavigation. Now, in one of the "Tab"s, I want page transitions to be done like it is done in iOS. Part of the trick can be done using CupertinoPageRoute in…
Ramtin Didab
  • 21
  • 1
  • 3
2
votes
1 answer

Flutter: Building a Cupertino Picker that shows rows containing 2 widgets, from looping through a Map

I've created a picker that displays a Icon and a String, next to each other. The pickers items are taken from a Map I created that contains Key: String and Value: Icon. In my code right now, I'm using the Cupertino Picker and adding children: […
MoofinTheExplorer
  • 141
  • 1
  • 2
  • 9
2
votes
1 answer

Flutter: Dark Theme on iOS

I am creating an app using Flutter. On iOS however (you can also test it on Android), dark theme is not applied. Using Android widgets, it is working fine tho. How can I make the Cupertino widgets using the dark theme? Especially for the popups. I…
Tien Do Nam
  • 3,630
  • 3
  • 15
  • 30
2
votes
0 answers

Keep alive page state while using navigator

I have an app with two pages , the first one has a button to navigate to the second and then choose a list of places, on save the second page pops and return the first page where the chosen places are shown in chips , but If a return to the second…
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