blinking_text – Add Blinking Animation to Flutter Text

Blinking text is an amazing feature you can add to your Flutter text. With the blinking_text package, it’s easy to create attention-grabbing blinking animation.

Note: It supports all Text widget’s properties except Text.rich constructor.

Table of Contents

Install

View on https://pub.dev/packages/blinking_text.

dependencies:
    blinking_text: ^0.0.4+1

Properties

Besides Text’s properties, the BlinkText supports 4 more properties for blinking animation:

  • beginColor: This overrides TextStyle’s color.
  • endColor: The color text will blink in. If there is no endColor, opacity at 0 is used.
  • duration: Interval between color switching animation.
  • times: Number of times a text blinks. Default value means indefinite loop.

Examples

BlinkText(
	'Blink Animation',
	style: TextStyle(fontSize: 48.0),
	beginColor: Colors.red,
	endColor: Colors.blue,
	times: 100,
	durtaion: Duration(milliseconds: 500)
)

Leave a Comment

Your email address will not be published. Required fields are marked *


Scroll to Top