zeba_certificate_generator 1.0.0 copy "zeba_certificate_generator: ^1.0.0" to clipboard
zeba_certificate_generator: ^1.0.0 copied to clipboard

https://zeba.academy/flutter/

zeba_certificate_generator #

License: GPL-3.0 Pub Version Flutter

A powerful Flutter package for generating professional certificates with PDF export, QR code verification, digital signatures, custom templates, and batch certificate generation.

Whether you're building an e-learning platform, event management system, certification portal, or educational app, zeba_certificate_generator simplifies certificate creation with a clean and developer-friendly API.


✨ Features #

✅ PDF Certificate Generation

✅ QR Code Verification

✅ Digital Signature Support

✅ Custom Certificate Templates

✅ Batch Certificate Generation

✅ Lightweight & Easy Integration

✅ Cross Platform Support

✅ Production Ready Architecture


📦 Installation #

Add the dependency to your pubspec.yaml:

dependencies:
  zeba_certificate_generator: latest_version

Then run:

flutter pub get

🚀 Quick Start #

Import the package:

import 'package:zeba_certificate_generator/zeba_certificate_generator.dart';

Create a certificate:

final certificate = CertificateModel(
  id: 'CERT001',
  name: 'John Doe',
  course: 'Flutter Development',
  date: DateTime.now(),
  issuer: 'Zeba Academy',
  signature: '',
);

Generate a digital signature:

final signature =
    QRService.generateSignature(
      certificate.id + certificate.name,
    );

Generate PDF:

final pdfBytes =
    await PdfService.generateCertificate(
      certificate,
    );

Print Certificate:

await PdfService.printCertificate(
  certificate,
);

📄 Certificate Model #

CertificateModel(
  id: 'CERT001',
  name: 'John Doe',
  course: 'Flutter Development',
  date: DateTime.now(),
  issuer: 'Zeba Academy',
  signature: 'digital_signature',
);
Property Type
id String
name String
course String
date DateTime
issuer String
signature String

🔐 QR Verification #

Generate QR data:

final qrData =
    QRService.generateQRData(
      certificate.toMap(),
    );

Verify certificate signature:

final isValid =
    QRService.verifySignature(
      input,
      signature,
    );

🎨 Custom Templates #

Create your own template:

class MyTemplate {
  static pw.Document build(
    CertificateModel certificate,
    String qrData,
  ) {
    final pdf = pw.Document();

    // Custom design

    return pdf;
  }
}

Use your template with your own PDF generation workflow.


📚 Batch Certificate Generation #

Generate certificates for multiple users:

final certificates = [
  certificate1,
  certificate2,
  certificate3,
];

final files =
    await BatchService.generateBatch(
      certificates,
    );

Perfect for:

  • Schools
  • Colleges
  • Training Institutes
  • Online Learning Platforms
  • Workshops
  • Corporate Events

🧪 Testing #

Run tests:

flutter test

📁 Package Structure #

lib/
├── zeba_certificate_generator.dart
└── src/
    ├── models/
    │   └── certificate_model.dart
    ├── services/
    │   ├── pdf_service.dart
    │   ├── qr_service.dart
    │   └── batch_service.dart
    ├── templates/
    │   └── certificate_template.dart
    └── utils/

🤝 Contributing #

Contributions are welcome!

If you find a bug or have an idea for improvement:

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Submit a pull request

📜 License #

This project is licensed under the GNU General Public License v3.0 (GPL-3.0).

You are free to:

  • Use
  • Modify
  • Distribute
  • Contribute

Under the terms of the GPL-3.0 License.

See the LICENSE file for full details.


About Me #

✨ I’m Sufyan bin Uzayr, an open-source developer passionate about building and sharing meaningful projects.

You can learn more about me and my work at sufyanism.com or connect with me on LinkedIn.


Your all-in-one learning hub! #

🚀 Explore courses and resources in coding, tech, and development at zeba.academy and code.zeba.academy.

Empower yourself with practical skills through curated tutorials, real-world projects, and hands-on experience. Level up your tech game today! 💻✨

Zeba Academy is a learning platform dedicated to coding, technology, and development.

➡ Visit our main site: https://zeba.academy

➡ Explore hands-on courses and resources at: https://code.zeba.academy

➡ Check out our YouTube for more tutorials: https://www.youtube.com/@zeba.academy

➡ Follow us on Instagram: https://www.instagram.com/zeba.academy/

Thank you for visiting! ❤️

0
likes
120
points
73
downloads

Documentation

API reference

Publisher

verified publisherzeba.academy

Weekly Downloads

https://zeba.academy/flutter/

Homepage

License

GPL-3.0 (license)

Dependencies

crypto, flutter, pdf, printing, qr

More

Packages that depend on zeba_certificate_generator