childBuild method
Implementation
@override
Widget childBuild() {
return AButton(
height: widget.height,
width: widget.width,
color: backgroundColor,
elevation: 0,
padding: const EdgeInsets.symmetric(horizontal: 10),
onPressed: onPressed,
disabled: widget.readOnly,
loading: loading,
upperCase: false,
title: labelText == null ? null : Text(
labelText!,
),
singleLine: true,
textStyle: const TextStyle(
fontSize: 15,
),
text: selectedOption?.label ?? "",
footer: errorText(),
trailingIcon: Icons.arrow_drop_down,
);
}