Certificate Canvas

A Flutter package that provides a drag-and-drop canvas for designing certificates, cards, and templates. It supports resizing text, changing fonts, undo/redo hooks, and image overlays.

Features

  • Drag & Drop: Move text and images freely around the canvas.
  • Resize: Drag handles to resize text boxes and images.
  • Styling: Supports Bold, Italic, Fonts, and Colors.
  • Undo/Redo Hooks: exposes callbacks to implement history management.
  • Export Ready: Built to work with RepaintBoundary for easy PNG export.

Usage

import 'package:certificate_canvas/certificate_canvas.dart';

CertificateCanvas(
  imageBytes: backgroundBytes, // The background image
  fields: myFields,            // List of CertificateField objects
  selectedFieldId: selectedId, // Currently selected item
  onFieldUpdate: (id, field) {
    // Update your state here
  },
  onFieldTap: (id) {
    // Handle selection
  },
)

Libraries

certificate_canvas