BottomNavigationBar A material widget that's displayed at the bottom of an application. Which shows around three to five items and it includes labels and icons. BottomNavigationBar allows you to select one item at a time and quickly navigate to a given page. Properties of the BottomNavigationBar : items: It defines the list of BottomNavigationBar Items to display the bottom navigation bar. currentIndex: It determines the current active bottom navigation bar item on the screen. onTap: It is called when we tapped one of the items on the screen. iconSize: It is used to specify the size of all bottom navigation item icons. fixedColor: It is used to set the color of the selected item. If we have not set a color to the icon or title, it will be shown. type: It determines the layout and behavior of a bottom navigation bar. It behaves in two different ways that are: 1. fixed: Default it is fixed and If it is null, it will use fixed. 2. shifting: It will use shifting where w...
RadioButton Radio Button is a material widget that is used as an option button where the user can select only one option from a group of options. We can use it in cases where the user has to select a single value from a set of values. If one radio button is selected then we cannot select the other radio buttons in the same group. we are taking an example of gender selection. title : It is used to specify the radio button label. groupValue : It is used to specify the currently selected item for the radio button group. value : It specifies the backhand value, which is represented by a radio button. onChanged : It will be called whenever the user selects the radio button. ThemeData : You want to change the theme and give primary color and swatch color as a theme it will be used in the whole application. activeColor : When you select the radio button at that time color shows which is defined in the activeColor property. tileColor : This property ...