Issue I have tried following code but it does not change the color of the button only when it is pressed. //class attribute Color bgColor = Colors.deepPurpleAccent; //Widget CupertinoButton( color: bgColor, child: Text(‘LOGIN’, style: TextStyle(fontFamily: ‘Roboto’,)), borderRadius: const BorderRadius.all(Radius.circular(80.0)), onPressed:
Continue readingCategory: Cupertino
Flutter BottomNavigationBarItem accepts only Icon and no other widgets?
Issue In our Flutter Cupertino project, we need to show a badge on one of the bottom bar icons. How many articles are already in the shopping cart to be precise. I’ve tried different widgets and solutions provided here, but
Continue readingNavigate out from CupertinoTabScaffold
Issue 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: (context) => HomeScreen(), ),
Continue readingFlutter – CupertinoDatePicker showing one day ahead of the today?
Issue 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
Continue readingFlutter: Building a Cupertino Picker that shows rows containing 2 widgets, from looping through a Map
Issue 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
Continue readingFlutter: How to remove the divider lines in CupertinoDatePicker?
Issue 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. Solution
Continue readingDisabling particular days in Flutter CupertinoDatePicker
Issue Is there any way to disable/hide particular days of the week in CupertinoDatePicker? For example, I want to disable Monday, Tuesday and Friday. Solution It is not supported at this moment. If you desire that the best option is
Continue readingI want to convert the code below into Cupertino, IOS style. But I Can't Use Drawer Menu for IOS style. Why? How can I use?
Issue I want to make android and IOS style. I want to convert the code below into Cupertino, IOS style. But I Can’t Use Drawer Menu for IOS style. Why? How can I use? return Scaffold( key: _scaffoldKey, drawer: Drawer(),
Continue readingCupertinoActionSheet throws infinite size during layout error
Issue I get the following error when calling the CupertinoActionSheet when implementing SingleChildScrollView on my stateful widget: _RenderCupertinoAlertActions object was given an infinite size during layout. The relevant error-causing widget was CupertinoActionSheet lib\main.dart:82 The following RenderObject was being processed when
Continue readingHow to set width of CupertinoButton in Flutter?
Issue Am I missing something obvious here? Setting minSize on CupertinoButton button sets width and height (see image). How do I set only the width? Thanks in advance. Solution Wrap it in a SizedBox and set width and height. Example
Continue reading