Questions tagged [flutter-cupertino]
184 questions
3
votes
1 answer
Text styles missing from CupertinoTextThemeData
According to Flutter documentation, the CupertinoTextThemeData has the following styles:
navActionTextStyle: The TextStyle of interactive text content in navigation bars.
navLargeTitleTextStyle: The TextStyle of large titles in sliver navigation…

jon
- 3,202
- 3
- 23
- 35
3
votes
2 answers
Let user settle picking value from CupertinoPicker(onSelectedItemChanged ), after that it should send call to API
I am using CupertinoWidget for iOS users to scroll through List and check the price of a currency. But when scroll happens, onSelectedItemChanged sends callback to API for every value from the list. I read the document but unable to understand what…

Usama Karim
- 1,100
- 4
- 15
3
votes
1 answer
How do I use a large title Navigation Bar in Flutter?
This is what I get when I use CupertinoNavigationBar()
Standard title Navigation Bar -
This is what I need to implement -

Paulo Gomo
- 33
- 1
- 3
3
votes
1 answer
Flutter CupertinoActionSheet: how to define Variable number of actions
Depending on number of entries in List distinctEmnen,
I would like to show variable number of menu-choices.
Is it possible to achieve something like this?
CupertinoActionSheet(
title: Text( tjo),
actions: [
…

Peter J
- 31
- 4
3
votes
1 answer
Force Reload page in CupertinoTabView in Flutter
When user taps on an item in CupertinoTabView, I want to reload the page everytime. Right now, it loads only for the first time. Next time onwards it just displays the previous state. I want to force reload it.
For example, when user taps on…

Rakesh
- 1,205
- 1
- 14
- 33
3
votes
1 answer
CupertinoDatePicker disable hours and minutes before the current time
**
In the minimumDate param, we can't control the minimum time.
` CupertinoDatePickerTest(
onDateTimeChanged: (DateTime newdate) {
print(newdate);
},
use24hFormat: false,
maximumDate:…

Nihal Gurrala
- 71
- 5
3
votes
1 answer
Using Choicechip widget with Cupertino App
I'm trying to use the ChoiceChip widget in a Cupertino App.
I found this solution https://github.com/flutter/flutter/issues/21872#issuecomment-421508939 on GitHub
CupertinoApp(
localizationsDelegates: const >[
…

Kagimura
- 397
- 1
- 7
- 20
3
votes
1 answer
Use ThemeData as theme for CupertinoApp
My app was built using a MaterialApp as the root widget. To this material app, I've added a theme as follows:
MaterialApp(
theme: myTheme,
home: MyHomePage(),
...
)
final ThemeData myTheme = _buildTheme();
ThemeData _buildTheme() {
final…

boomboxboy
- 2,384
- 5
- 21
- 33
3
votes
2 answers
Navigate out from CupertinoTabScaffold
I have an App with a LoginScreen that goes to the HomeScreen after a success login. I use this code below to replace the widget and start a new navigation Stack:
Navigator.pushReplacement(
context,
CupertinoPageRoute(
builder:…

Jofre
- 531
- 7
- 10
3
votes
2 answers
How to increase height of CupertinoSliverNavigationBar
I was trying to clone WhatsApp(iOS version) with flutter using Cupertino Widgets.
while trying to make the header with CupertinoSliverNavigationBar i noticed that the height of CupertinoSliverNavigationBar cannot be increased.
My Code
return…

JideGuru
- 7,102
- 6
- 26
- 48
3
votes
3 answers
How can i change the background color of CupertinoDatePicker
I am using CupertinoDatePicker in my application.
Container(
height: 200,
padding: const EdgeInsets.all(16.0),
child: CupertinoDatePicker(
mode: CupertinoDatePickerMode.date,
minimumYear: DateTime.now().year,
…

Sawan Kumar Bundelkhandi
- 335
- 3
- 12
3
votes
3 answers
Use SnackBar with CupertinoPageScaffold
Is there a way to use a SnackBar with a CupertinoPageScaffold?
I am getting the following error:
Scaffold.of() called with a context that does not contain a Scaffold.
No Scaffold ancestor could be found starting from the context that was passed to…

Alan
- 9,331
- 14
- 52
- 97
3
votes
1 answer
How do you reduce the height of the Cupertino Sliver Navigation bar to make it look like an ordinary Cupertino Navigation Bar with a scrollable body
@override
Widget build(BuildContext context) {
return CupertinoPageScaffold(
child: CustomScrollView(
slivers: [
CupertinoSliverNavigationBar(
largeTitle:…

K.chim
- 868
- 2
- 14
- 25
2
votes
0 answers
Flutter : How can I change background color of CupertinoActionSheet?
How can I change CupertinoActionSheet background color in flutter? I tried many possible ways. But its default color didn't change. how can I ?
Sample Code:
import 'package:flutter/cupertino.dart';
import…

Abir Ahsan
- 2,649
- 29
- 51
2
votes
0 answers
Hiding the bottom navbar when opening cupertino modal bottom sheet
I am using the modal_bottom_sheet library to display the cupertino modals. But when opening the modal screen on a page with cupertinoTabView, it does not hide the navigation bar(pic1). If it is displayed with the flag useRootNavigator: true, it is…

Evgeniy
- 21
- 4