running_text 0.1.2 copy "running_text: ^0.1.2" to clipboard
running_text: ^0.1.2 copied to clipboard

Flutter widget "running text". Allows running an string list. Provides customizations including two horizontal directions, velocity, fading when appearing or disappearing.

Flutter widget "running text". Allows running an string list. Provides customizations including two horizontal directions, velocity, fading when appearing or disappearing.

Features #

feature

Usage #

This is a minimalistic example:

RunningTextView(
  data: RunningTextModel([
    "Learn how to find target keywords",
    "Learn how to find target keywords for any page with our keyword research guide.",
    "Thanks for using! Follow me for more!"
  ])
)

Full options:

RunningTextView(
  data: RunningTextModel([
    "Learn how to find target keywords",
    "Learn how to find target keywords for any page with our keyword research guide.",
    "Thanks for using! Follow me for more!"],
    textStyle: const TextStyle(fontSize: 15, overflow: TextOverflow.visible),
    softWrap: false,
    velocity: 50,
    direction: RunningTextDirection.leftToRight,
    fadeSide: RunningTextFadeSide.both
    tapEvents: [
      () {
        log("Tap 1");
      },
      () {
        log("Tap 2");
      }
    ], 
    defaultTapEvent: () {
      log("Default tap");
    }
  )
)

Note #

If you use Running Text in AppBar as Title, you need to adjust titleTextStyle to match the textStyle data of Running Text

2
likes
150
points
70
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter widget "running text". Allows running an string list. Provides customizations including two horizontal directions, velocity, fading when appearing or disappearing.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on running_text