getCustomTextLabel function

Widget getCustomTextLabel(
  1. String text, {
  2. String? icon,
  3. Color? color,
  4. FontWeight weight = FontWeight.w400,
  5. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
})

Implementation

Widget getCustomTextLabel(
  String text, {
  String? icon,
  Color? color,
  FontWeight weight = FontWeight.w400,
  MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
}) {
  return Row(
    mainAxisAlignment: mainAxisAlignment,
    children: [
      if (icon != null) ...[
        getIcon(icon, color: color ?? MahasColors.greyColor),
        getSpaceWidth(1),
      ],
      getCustomText(text,
          color: color ?? MahasColors.greyColor, weight: weight),
    ],
  );
}