Skip to main content

rainbow_text 0.0.2 copy "rainbow_text: ^0.0.2" to clipboard
rainbow_text: ^0.0.2 copied to clipboard

A customizable Flutter widget for rendering text with beautiful linear gradients.

Rainbow Text #

A customizable Flutter widget for rendering text with beautiful linear gradients.

Features #

  • Apply linear gradients to text.
  • Support for horizontal and vertical gradients.
  • Customizable colors and styles.

Getting started #

Add the package to your pubspec.yaml:

dependencies:
  rainbow_text: ^0.0.1

Usage #

Import the package:

import 'package:rainbow_text/rainbow_text.dart';

Use the RainbowText widget:

RainbowText(
  'Hello Rainbow!',
  colors: [Colors.red, Colors.blue, Colors.green],
  style: TextStyle(fontSize: 40, fontWeight: FontWeight.bold),
)

Vertical gradient:

RainbowText(
  'Vertical Gradient',
  colors: [Colors.orange, Colors.purple],
  style: TextStyle(fontSize: 40, fontWeight: FontWeight.bold),
  direction: GradientDirection.vertical,
)

Additional information #

This package is for demonstration purposes.

0
likes
155
points
8
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A customizable Flutter widget for rendering text with beautiful linear gradients.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on rainbow_text