flutter_text_decorator 0.0.1 copy "flutter_text_decorator: ^0.0.1" to clipboard
flutter_text_decorator: ^0.0.1 copied to clipboard

A highly customizable text decoration widget for Flutter.

Flutter Text Decorator Logo Flutter Text Decorator Logo

License: MIT style: very good analysis

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

Features #

  • βœ… Boxes
  • βœ… Underline
  • βœ… Wavy Box
  • βœ… Speech Bubble

Feel free to check out the Example App and play around.

Quick Start πŸš€ #

  1. Add flutter_text_decorator to your pubspec.yaml

    dependencies:
      flutter_text_decorator:
    
  2. Run the following terminal command to install the package:

    flutter pub get
    
  3. Import the package into your Dart file

    import 'package:flutter_text_decorator/flutter_text_decorator.dart';
    
  4. 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,
          ),
        );
      }
    }
    

Styles Preview #

Box Decorator

Box Decorator Example

Circle Decorator

Circle Decorator Example

Underline Decorator

Underline Decorator Example

Highlight Decorator

Highlight Decorator Example

Planned features 🎯 #

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.

Contributing #

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 #

Authors:

License #

This project is licensed under the MIT License - see the LICENSE file for details.

4
likes
150
points
52
downloads

Publisher

unverified uploader

Weekly Downloads

A highly customizable text decoration widget for Flutter.

Repository (GitHub)
View/report issues
Contributing

Topics

#text #decorations #painting #draw

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_text_decorator