Open the main.dart file and replace it with the below code. This is a convenience widget that wraps a DropdownButton widget in a FormField. But, we can use color to the button and text using color and textColor attributes, respectively. DropdownButtonFormField class A FormField that contains a DropdownButton.By default, the flat button has no color, and its text is black. A Flutter package that provides a dropdown form field using a dropdown button inside a form field.A Dropdown form field Using a Dropdown Button inside a. It is mostly used in toolbars, dialogs, or inline with other content. DropDownState ( DropDown ( bottomSheetTitle: const Text ( kCities, style: TextStyle ( fontWeight: FontWeight.bold, fontSize: 20. The flat button has two required properties that are: child and onPressed(). It is a text label button that does not have much decoration and displayed without any elevation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |