makeTextEx method
Implementation
Widget makeTextEx(
Widget? child, String text, Widget? postfix, Widget? suffix, bool isSel) {
List<Widget> items = [];
if (postfix != null) items.add(postfix);
items.add(
child ?? Text(text, style: (isSel ? picker!.selectedTextStyle : null)));
if (suffix != null) items.add(suffix);
Color? _txtColor = Colors.black87;
double? _txtSize = Picker.DefaultTextSize;
if (isSel && picker!.selectedTextStyle != null) {
if (picker!.selectedTextStyle!.color != null)
_txtColor = picker!.selectedTextStyle!.color;
if (picker!.selectedTextStyle!.fontSize != null)
_txtSize = picker!.selectedTextStyle!.fontSize;
}
return new Center(
//alignment: Alignment.center,
child: DefaultTextStyle(
overflow: TextOverflow.ellipsis,
maxLines: 1,
textAlign: picker!.textAlign,
style: picker!.textStyle ??
TextStyle(color: _txtColor, fontSize: _txtSize),
child: Wrap(
children: items,
)));
}