onlyText method

dynamic onlyText(
  1. String text, {
  2. TextStyle? style,
})

Implementation

onlyText(String text, {TextStyle? style}) {
  return Row(
    mainAxisAlignment: MainAxisAlignment.center,
    children: [
      Flexible(
        child: Text(
          text,
          textScaleFactor: 1,
          style: style ??
              TextStyle(
                  color: ColorConstants.MILD_GREY,
                  fontSize: 20.toFont,
                  fontWeight: FontWeight.w400,
                  decoration: TextDecoration.none),
        ),
      ),
      TypingIndicator(
        showIndicator: true,
        flashingCircleBrightColor: ColorConstants.dullText,
        flashingCircleDarkColor: ColorConstants.fadedText,
      ),
    ],
  );
}