buildIconButton method
Widget
buildIconButton(
- 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: actions[index]["icon"] is Widget
? actions[index]["icon"]
: 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: CommonColors.theme.shade300)))
],
);
}