Zeba Academy Shapes

A lightweight and customizable Flutter package providing beautiful ready-to-use UI shapes built with Flutter CustomPainter.

pub package

License: GPL v3

✨ Features

zeba_academy_shapes provides reusable Flutter widgets for creating modern UI designs with custom shapes.

Available Shapes

  • ✅ Ticket Shape
  • ✅ Coupon Shape
  • ✅ Blob Shape
  • ✅ Wave Shape
  • ✅ Hexagon Shape
  • ✅ Star Shape
  • ✅ Pentagon Shape

🚀 Installation

Add this package to your pubspec.yaml:

dependencies:
  zeba_academy_shapes: ^1.0.0

Run:

flutter pub get

📦 Import

import 'package:zeba_academy_shapes/zeba_academy_shapes.dart';

🎨 Usage

Ticket Shape

TicketShape(
  color: Colors.blue,
)

Coupon Shape

CouponShape(
  color: Colors.orange,
)

Blob Shape

BlobShape(
  color: Colors.purple,
)

Wave Shape

WaveShape(
  color: Colors.teal,
)

Hexagon Shape

HexagonShape(
  color: Colors.green,
)

Star Shape

StarShape(
  color: Colors.yellow,
)

Pentagon Shape

PentagonShape(
  color: Colors.red,
)

🖼 Example

import 'package:flutter/material.dart';
import 'package:zeba_academy_shapes/zeba_academy_shapes.dart';


void main() {
  runApp(
    const MaterialApp(
      home: ShapeDemo(),
    ),
  );
}


class ShapeDemo extends StatelessWidget {

  const ShapeDemo({
    super.key,
  });


  @override
  Widget build(BuildContext context) {

    return Scaffold(

      body: Center(

        child: Column(

          mainAxisAlignment: MainAxisAlignment.center,

          children: [

            TicketShape(),

            SizedBox(height:20),

            StarShape(),

            SizedBox(height:20),

            HexagonShape(),

          ],

        ),

      ),

    );

  }

}

🎯 Why Use Zeba Academy Shapes?

  • Lightweight Flutter package

  • Built with CustomPainter

  • Zero external dependencies

  • Fast rendering

  • Easy integration

  • Clean API

  • Suitable for:

    • Cards
    • Tickets
    • Coupons
    • Badges
    • UI decorations
    • Creative Flutter layouts

🛠 Technology

Built using:

  • Flutter
  • Dart
  • CustomPainter
  • Canvas API

📱 Platform Support

Platform Support
Android
iOS
Web
Windows
macOS
Linux

🧪 Testing

Run package tests:

flutter test

Analyze the package:

flutter analyze

🤝 Contributing

Contributions are welcome.

Steps:

  1. Fork the repository

  2. Create a branch:

git checkout -b feature/new-shape
  1. Commit changes:
git commit -m "Add new shape"
  1. Push:
git push origin feature/new-shape
  1. Create a Pull Request

📄 License

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

You are free to:

  • Use this package
  • Modify the source code
  • Distribute copies
  • Improve and contribute

GPL-3.0 Requirements:

  • Modified versions must remain licensed under GPL-3.0
  • Source code must be provided when distributing modified versions
  • License notices must be preserved

Full License:

https://www.gnu.org/licenses/gpl-3.0.html

👨‍💻 About Me

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

Learn more about my work:

https://sufyanism.com/

Connect on LinkedIn:

https://www.linkedin.com/in/sufyanism

🚀 Zeba Academy

Your all-in-one learning hub!

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

Explore:

  • Programming tutorials
  • Developer resources
  • Practical projects
  • Hands-on learning

Platforms

Main Website:

https://zeba.academy

Coding Courses:

https://code.zeba.academy

YouTube Tutorials:

https://www.youtube.com/@zeba.academy

Instagram:

https://www.instagram.com/zeba.academy/

⭐ Support

If you find this package useful:

  • Star the repository
  • Share it with Flutter developers
  • Contribute improvements

Thank you for using Zeba Academy Shapes 🚀