curl_text 1.1.0
curl_text: ^1.1.0 copied to clipboard
A simple and flexible Flutter package for creating text with customizable outlines.
CurlText #
CurlText is a lightweight, high-performance Flutter widget for adding stylish, customizable outlines (strokes) to your text. Perfect for UI elements that require high readability or a bold design touch.
Features #
- Customizable Outlines: Easily control stroke width and color.
- Custom Fonts: Support for
fontWeightandfontFamily. - Performance Focused: Uses an optimized stacking layer approach for smooth rendering.
- Simple API: Named parameters aligned with common Flutter
Text/TextStyleoptions for easy drop-in use. - Flexible Styling: Fully compatible with standard font configurations.
Getting Started #
Add this package to your project by running:
flutter pub add curl_text
Usage #
import 'package:curl_text/curl_text.dart';
CurlTextWidget(
text: 'Hello, CurlText!',
fontSize: 32,
fontWeight: FontWeight.bold,
fontFamily: 'Roboto',
strokeWidth: 3,
strokeColor: Colors.black,
textColor: Colors.white,
)
Parameters #
| Parameter | Type | Required | Description |
|---|---|---|---|
text |
String |
yes | The text to display |
fontSize |
double |
yes | Font size |
textColor |
Color |
yes | Fill color of the text |
strokeColor |
Color |
yes | Outline (stroke) color |
strokeWidth |
double |
yes | Outline (stroke) width |
fontWeight |
FontWeight? |
no | Font weight |
fontFamily |
String? |
no | Font family |
Planned / Under Consideration #
- ✅
fontWeight,fontFamilysupport - ✅ Fill color (
textColor) - ❌ Gradient fill support
- ❌
letterSpacing,textAlign,maxLines,overflow - ❌ Multiple stroke layers (inner/outer outline)
- ❌ Text shadows
- ❌ RTL /
textDirectionsupport
Have a feature request? Open an issue — contributions welcome!
Contributing #
Contributions, issues, and feature requests are welcome. Feel free to check the issues page or submit a pull request.
License #
This project is licensed under the MIT License — see the LICENSE file for details.