FLUTTER ECOSYSTEM

MarcelGarus/marquee

Um widget Flutter que rola texto infinitamente. Oferece muitas personalizações, incluindo direções e velocidades de rolagem personalizadas, pausas após cada volta e especificação de durações e curvas personalizadas para aceleração e desaceleração.

Capa do projeto marque
Stars
363
Forks
147
Último push (UTC)
10 de out. de 2024
Status do projeto
Ativo
Marcel Garus GitHub avatar
GITHUB User

Marcel Garus ↗

I'm studying IT Systems Engineering and working on open source thingies. ✨ Especially excited about Flutter and Rust. 🌮 Feel free to contact me. he/him

Hasso Plattner InstitutePotsdam, Germany
LinguagensDart

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 3 itens

README original

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

Expandir / recolher README

⏩ A Flutter widget that scrolls text infinitely. Provides many customizations including custom scroll directions, durations, curves as well as pauses after every round.

Appreciate the widget? Show some ❤️ and star the repo to support the project.

Usage

This is a minimalistic example:

Marquee(
  text: 'There once was a boy who told this story about a boy: "',
)

And here's a piece of code that makes full use of the marquee's customizability:

Marquee(
  text: 'Some sample text that takes some space.',
  style: TextStyle(fontWeight: FontWeight.bold),
  scrollAxis: Axis.horizontal,
  crossAxisAlignment: CrossAxisAlignment.start,
  blankSpace: 20.0,
  velocity: 100.0,
  pauseAfterRound: Duration(seconds: 1),
  startPadding: 10.0,
  accelerationDuration: Duration(seconds: 1),
  accelerationCurve: Curves.linear,
  decelerationDuration: Duration(milliseconds: 500),
  decelerationCurve: Curves.easeOut,
)

For more information about the properties, have a look at the API reference.