getCustomTextValue function

Widget getCustomTextValue(
  1. String text, {
  2. String? icon,
})

Implementation

Widget getCustomTextValue(
  String text, {
  String? icon,
}) {
  var size =
      MahasDimensions.getHeightPercentSize(MahasDimensions.fontSizeMedium);
  return Row(
    children: [
      if (icon != null) ...[
        getIcon(icon, size: size),
        getSpaceWidth(1),
      ],
      getCustomText(
        text,
        size: size,
        weight: FontWeight.w500,
      ),
      getSpaceHeight(1.5),
    ],
  );
}