buildSubCheckItem function

Widget buildSubCheckItem(
  1. BuildContext context,
  2. String label,
  3. bool selected
)

二级菜单

Implementation

Widget buildSubCheckItem(BuildContext context, String label, bool selected) {
  Color color = selected ? Theme.of(context).primaryColor : Colors.black;
  return SizedBox(
    height: 45.0,
    child: Row(
      children: <Widget>[
        Padding(
            padding: const EdgeInsets.only(left: 12.0),
            child: Text(
              label,
              style: TextStyle(color: color),
            )),
      ],
    ),
  );
}