createCustomPaint method

Widget createCustomPaint(
  1. BuildContext context
)

Implementation

Widget createCustomPaint(BuildContext context) {
  updatePathData(); //TODO Refactor - SRP broken (see method name)
  return Stack(
    children: <Widget>[
      CustomPaint(
          painter: buildUnderlayPainter(),
          size: Size.copy(MediaQuery.of(context).size)),
      CustomPaint(
          foregroundPainter: buildForegroundPainter(),
          painter: buildBackgroundPainter(),
          size: Size.copy(MediaQuery.of(context).size))
    ],
  );
}