flutter_custom_shaper 0.1.1
flutter_custom_shaper: ^0.1.1 copied to clipboard
Flutter package for custom shapes with flexible clipping options.
Flutter Custom Shape Package
flutter_custom_shaper is a Flutter package that provides utilities to create and work with custom-shaped widgets. It includes predefined shapes, clipper classes, and painters to help you easily create unique UI components.
Features
- Predefined custom shapes like bubbles, unique, and basic shapes.
- Easy-to-use
CustomShaperwidget for creating shapes. - Built-in clipper classes for customize created clipper provided
Installation
Add the following line to your pubspec.yaml:
dependencies:
flutter_custom_shaper: ^0.0.1
Then, run:
flutter pub get
Usage
Here’s a quick example of how to use the custom_shape package in your Flutter app:
CustomShaper Widget
Use the CustomShaper widget to create custom shapes. It accepts parameters like:
clipper: A custom clipper class to define the shape.color: The background color of the shape.widthandheight: Dimensions of the shape.
Example:
CustomShaper(
height: 80,
width: 80,
clipper: BubbleClipper(),
child: CustomPaint(
painter: BubblePainter(),
),
)
Dependencies
This package depends on the following:
- Flutter SDK
- Dart SDK
Contributing
Contributions are welcome! If you’d like to add new shapes or improve the package, feel free to open a pull request.
License
This package is licensed under the MIT License. See the LICENSE file for more details.
Enjoy building creative and unique UI components with custom_shape!
Issues
For any issues or feature requests, please visit the GitHub Issues page.
If this package help you then give star and support me ♥️ :)
Help coding 🫰🏻