Questions tagged [flutter-cupertino]

184 questions
0
votes
1 answer

Flutter: radio button not updating state in RadioListTile inside showCupertinoModalPopup

I use RadioListTile inside showCupertinoModalPopup By clicking the unselected radio button in RadioListTile inside showCupertinoModalPopup is not updated like selected. Code: class MainScreen extends StatefulWidget { @override _MainScreen…
Yury Matatov
  • 805
  • 3
  • 11
  • 23
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: ()…
0
votes
1 answer

When pressing the icon on CupertinoTabScaffold in Flutter, it doesn't take me back to the route route. Is there a way to do this?

This is my bottom navigation: This is my code: CupertinoTabScaffold( tabBar: CupertinoTabBar( backgroundColor: const Color(0xFF142634), activeColor: Colors.orange, inactiveColor: Colors.white, …
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
0 answers

Flutter cupertino datetime picker - on time selected "call to action"

How can I call to action in flutter dateTime picker? I have got working state that updates current time to selected time but I am not sure how to execute selected time to do something.(if _time = current Time.now => Do something")Any help will be…
Jacob Nero
  • 1
  • 1
  • 2
0
votes
1 answer

Flutter desing: CupertinoApp and MaterialApp in the same project

Is it a good practice desing an App in Flutter (for IOS and Android) to use CupertinoApp and MaterialApp in the same project? Apparently it works as expected in the simulators (Xcode and AndroidStudio simulator), but i would like to know if it will…
xpe
  • 19
  • 5
0
votes
1 answer

CupertinoSlidingSegmentedControl inside SingleChildScrollView not scrolling

I am building in Flutter a custom Segmented Control that has too many options, so it should be scrolled horizontally to see all the options. That is the reason why I put the CupertinoSlidingSegmentedControl inside a SingleChildScrollView with…
jRuMoL
  • 349
  • 1
  • 12
0
votes
1 answer

Flutter: Disable picking the day from datePicker

I'm trying to create a month/year picker in the Flutter project for both material and Cupertino styles. However, I can't find an ability to disable the days on the default date picker and the available packages only offer Cupertino-styled month…
0
votes
1 answer

Custom flutter navigation?

I am using CupertinoPageRoute for their navigation animation and I want to customize it a bit. Page I am going to(Page2) will slide from right and when I pop that page(Go back to Page1) it will slide in opposite direction(from left) that's default.…
0
votes
1 answer

How to make Material Design widget in CupertinoApp use same brightness color with CupertinoThemeData?

My CupertinoApp include a Material Design style widget(NavigationRail). I want all widget use same theme. Some of my code: @override Widget build(BuildContext context) { final Brightness platformBrightness =…
Andy
  • 35
  • 2
  • 5
0
votes
0 answers

Widget scrolls under cupertino sliver navigation bar

When using the cupertino sliver navigation bar, the body scrolls under it. I tried using nested scroll view but even that resulted in the same behavior class MainScreen extends StatefulWidget { const MainScreen({Key? key}) : super(key: key); …
Rohith Nambiar
  • 2,957
  • 4
  • 17
  • 37
0
votes
1 answer

CupertinoSliverRefreshControl coexisting with a bloc

I've got a screen that has a CupertinoSliverRefreshControl controlling the pull-to-refresh capability that looks something like this: CupertinoSliverRefreshControl( onRefresh: () async { _bloc.add(MyBlocEvent.reload()); }, ); Because…
Craig Edwards
  • 2,118
  • 1
  • 18
  • 23
0
votes
2 answers

The argument type 'HomePageAppBar' can't be assigned to the parameter type 'ObstructingPreferredSizeWidget?'

The code was working well till when I tried Extract CupertinoNavigationBar to a widget. May Anyone please give some information why this issue happening? It gives me this error: Error: The argument type 'HomePageAppBar' can't be assigned to the…
Baran
  • 1
  • 2
0
votes
1 answer

I'm Trying to add emoji keyboard in flutter

I'm using emoji_picker_flutter package to show emoji_Keyboard,In MaterialApp this package is working fine, But In CupertinoApp if i try to display emoji_Keyboard.. ----> it is showing Error Like this:- The following assertion was thrown building…
0
votes
0 answers

Flutter SliverAppBar with CupertinoPageRoute

Is there a way to use SliverAppBar with CupertinoPageRoute? I've tried: onGenerateRoute: (RouteSettings settings) { switch (settings.name) { case HomeScreen.routeName: return CupertinoPageRoute( builder:…