FLUTTER ECOSYSTEM

androideen/blinking_text

Um plug-in simples para criar widget de texto piscando

Capa do projeto texto piscando
Stars
1
Forks
1
Último push (UTC)
30 de mar. de 2022
Status do projeto
Ativo
androideen GitHub avatar
GITHUB User

androideen ↗

LinguagensDart

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 2 itens
  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher README

blinking_text

A simple plugin to create blinking text

How to use

Properties: It supports properties of Text widget's and includes 4 more properties for animation

  • beginColor - It overrides widget TextStyle's color.
  • endColor - The color the text will blink to. If there is no endColor defined, opacity 0 is used.
  • times - Number of times text blinks.
  • duration - Interval of blinking animation.

Blink text with opacity

BlinkText('Blink Animation'),

Blink text from original color to orange indefinitely

BlinkText(
	'Blink Animation',
	style: TextStyle(fontSize: 24.0, color: Colors.redAccent),
	endColor: Colors.orange,
),

Blink text from black to orange 10 times

BlinkText(
	'Blink Animation',
	style: TextStyle(fontSize: 48.0, color: Colors.redAccent),
	beginColor: Colors.black,
	endColor: Colors.orange,
	times: 10,
	duration: Duration(seconds: 1)
),

Original Link: https://tleapps.com/blinking_text/