flutter_custom_paint_plus library

Enhanced custom painting with pre-built shapes, patterns, and effects.

This package provides a comprehensive set of custom painting utilities that support all 6 platforms (iOS, Android, Web, Windows, macOS, Linux) with WASM compatibility for web platforms.

Features

  • Pre-built Shapes: Ready-to-use geometric shapes like circles, rectangles, polygons, and more
  • Pattern Generation: Create various patterns including dots, lines, grids, and custom designs
  • Visual Effects: Apply shadows, gradients, blur effects, and more
  • Cross-platform: Works on all supported Flutter platforms
  • WASM Compatible: Optimized for web performance

Getting Started

import 'package:flutter_custom_paint_plus/flutter_custom_paint_plus.dart';

// Use pre-built shapes
CustomPaint(
  painter: CirclePainter(
    radius: 50.0,
    color: Colors.blue,
  ),
)

Platform Support

This package supports all 6 Flutter platforms:

  • ✅ iOS
  • ✅ Android
  • ✅ Web (with WASM)
  • ✅ Windows
  • ✅ macOS
  • ✅ Linux

Classes

BlurPainter
A painter that applies a blur effect to another painter.
CirclePainter
A painter that draws a circle on the canvas.
ColorUtils
Utility functions for color operations.
DotsPatternPainter
A painter that draws a pattern of dots on the canvas.
EffectPainter
Base class for all effect painters in the package.
GeometryUtils
Utility functions for geometry operations.
GradientPainter
A painter that applies a gradient effect to another painter.
GridPatternPainter
A painter that draws a grid pattern on the canvas.
LinesPatternPainter
A painter that draws a pattern of lines on the canvas.
PaintUtils
Utility functions for paint operations.
PatternPainter
Base class for all pattern painters in the package.
PolygonPainter
A painter that draws a polygon on the canvas.
RectanglePainter
A painter that draws a rectangle on the canvas.
ShadowPainter
A painter that applies a shadow effect to another painter.
ShapePainter
Base class for all shape painters in the package.
StarPainter
A painter that draws a star on the canvas.

Enums

GradientType
The type of gradient to apply.