buildChildWithIC function
Implementation
Widget buildChildWithIC(
String? text, Icon? icon, double gap, TextStyle textStyle) {
var children = <Widget>[];
children.add(icon ?? Container());
if (text != null) {
children.add(Padding(padding: EdgeInsets.all(gap)));
children.add(buildText(text, textStyle));
}
return Wrap(
direction: Axis.horizontal,
crossAxisAlignment: WrapCrossAlignment.center,
children: children,
);
}