prepareTextWidget function

Widget prepareTextWidget(
  1. Style style,
  2. String text
)

Implementation

Widget prepareTextWidget(Style style, String text) {
  Widget widget = Text(text,
      style: (style.textStyle ?? new TextStyle()).copyWith(
          color: style.color,
          fontSize: style.fontSize,
          fontWeight: style.fontWeight,
          fontStyle: style.fontStyle,
          letterSpacing: style.letterSpacing));
  return widget;
}