childWidget method
Implementation
Widget childWidget() => Container(
margin: EdgeInsets.symmetric(horizontal: 10.0),
width: kScreenWidth(context) * 0.95,
decoration: widget.decoration ??
BoxDecoration(
color: greenColor, borderRadius: BorderRadius.circular(10.0)),
child: Row(children: [
Flexible(
child: Center(
child: widget.icon ??
Icon(Icons.info, color: whiteColor, size: 20.0)),
flex: 2),
Expanded(
flex: 8,
child: CustomText(
textAlign: TextAlign.start,
softWrap: true,
maxLines: 5,
text: widget.message,
color: widget.fontColor,
fontSize: widget.fontSize,
fontWeight: widget.fontWeight,
decoration: TextDecoration.none)
.padOnly(l: 5.0, r: 5.0, t: 20.0, b: 20.0)),
], mainAxisSize: MainAxisSize.max));