background property

Widget background

Implementation

Widget get background {
  final illustration = options.illustration;
  return illustration == null
      ? Image.asset(
          illustrationKey,
          width: percentW(100),
          height: percentH(100),
          fit: BoxFit.fill,
        )
      : CustomPaint(
          size: Size(percentW(100), percentH(100)),
          painter: ImageEditor(
            image: illustration,
          ),
        );
}