Bring your words to life leveraging flutter_text_decorator with wavy underlines, colorful boxes, speech bubbles and more. Whether you want to highlight important details, add a playful touch or simply stand out. The package makes it easy to add personality and flair to your text.
Developed with 💯 Passion by exxeta
- ✅ Boxes
- ✅ Underline
- ✅ Wavy Box
- ✅ Speech Bubble
Feel free to check out the Example App and play around.
-
Add
flutter_text_decorator
to yourpubspec.yaml
dependencies: flutter_text_decorator:
-
Run the following terminal command to install the package:
flutter pub get
-
Import the package into your Dart file
import 'package:flutter_text_decorator/flutter_text_decorator.dart';
-
Use TextDecorator
Here is a simple example of how you can use
TextDecorator.boxed
:import 'package:flutter/material.dart'; import 'package:flutter_text_decorator/flutter_text_decorator.dart'; class MyDecoratedWidget extends StatelessWidget { const MyDecoratedWidget({super.key}); @override Widget build(BuildContext context) { return Center( child: TextDecorator.boxed( style: BoxStyle.rounded, text: const Text( 'Hello Decorated World!', style: TextStyle(fontSize: 24, color: Colors.white), ), color: Colors.blueAccent, strokeWidth: 2, ), ); } }
![]() |
![]() |
![]() |
![]() |
We're always thinking of new ways to make text decoration even more fun and versatile! Our next big idea is to introduce a Comic effect to bring a playful, graphic-novel style to your Flutter apps. Stay tuned for this and other enhancements.
We love new ideas and contributions from the community! If you have a suggestion, a bug report, or want to contribute code, please check out our CONTRIBUTING guide to get started. Your input helps make flutter_text_decorator
even better!
Authors:
This project is licensed under the MIT License - see the LICENSE file for details.