buildIconButton method

Widget buildIconButton(
  1. dynamic index
)

Implementation

Widget buildIconButton(index) {
  return Column(
    children: <Widget>[
      GestureDetector(
        excludeFromSemantics: true,
        onTap: () {
          onTap?.call(index);
        },
        child: Container(
          width: 60.0,
          height: 60.0,
          alignment: Alignment.center,
          decoration: BoxDecoration(
              color: Colors.white, borderRadius: BorderRadius.circular(10.0)),
          child: Icon(
            actions[index]["icon"],
            size: 28.0,
          ),
        ),
      ),
      Container(
          margin: const EdgeInsets.only(top: 3.0),
          child: Text(actions[index]["name"],
              style: TextStyle(fontSize: 12.0, color: Colors.grey[600])))
    ],
  );
}