makeText method

Widget makeText(
  1. Widget? child,
  2. String? text,
  3. bool isSel
)

Implementation

Widget makeText(Widget? child, String? text, bool isSel) {
  return Center(
      child: DefaultTextStyle(
          overflow: TextOverflow.ellipsis,
          maxLines: 1,
          textAlign: picker!.textAlign,
          style: picker!.textStyle ??
              TextStyle(
                  color: Colors.black87,
                  fontFamily: picker?.state?.context != null
                      ? Theme.of(picker!.state!.context)
                          .textTheme
                          .headline6!
                          .fontFamily
                      : "",
                  fontSize: Picker.DefaultTextSize),
          child: child != null
              ? (isSel && picker!.selectedIconTheme != null
                  ? IconTheme(
                      data: picker!.selectedIconTheme!,
                      child: child,
                    )
                  : child)
              : Text(text ?? "",
                  textScaleFactor: picker!.textScaleFactor,
                  style: (isSel ? picker!.selectedTextStyle : null))));
}