If the content is helpful to you, please give me a thumbs up. Your thumbs up is the biggest motivation for me to update. Thank you! If you encounter problems in the process of development can be discussed together, you can add my QQ group! 167646174! Specific code see Github, welcome to Star, and mention issues!

1.CheckBox

(To be honest, this component is a bit of a clown)

API role Optional parameters
value Checkbox value The custom
activeColor Selected color Color
tristate If true, the value of the check box can be true, false, or null true/false
materialTapTargetSize Click on the area Padded: Padded extends 48 shrinkWrap: Control area
onChanged Trigger event after change Func

2.CheckboxListTile

API role Optional parameters
title The title
subtitle subtitle
secondary The prefix
selected Whether the text is highlighted true/false
dense The inscription becomes smaller true/false
isThreeLine Whether to display three lines (what to display for the third line is not seen yet) true/false
controlAffinity Where to place the control relative to the text, the leading button appears before the text, and the Platform,trailing buttons appear after the text

3.PopupMenuButton

PopupMenuButton(// Long press tooltip: "menu ", // Icon padding: EdgeInsets. All (10), // Change the default small Icon Icon: Icon(Icons.access_alarm), itemBuilder: (BuildContext context)=><PopupMenuEntry<String>>[ PopupMenuItem( child: Text(" menu "),), PopupMenuDivider(), CheckedPopupMenuItem(checked: false, value: "hehe ", Child: Text(" option "),)],)Copy the code
API role Optional parameters
tooltip Long press the text prompt
padding Icon padding
icon Modify the Icon
itemBuilder Menu options

PopupMenuDivider CheckedPopupMenuItem A menu option with a selection box underlined

(To be continued)

See Github for specific code, welcome to Star, and raise issues to update periodically, according to the busy degree of work.

—————– The following is the related article —————–

Common Components of FLUTTER (Phase 1)

Button on flutter Common Components (Issue 2)