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

A new Flutter package project.

scroll_text #

A new Flutter package project.

How To Use #

import 'package:scroll_text/scroll_text.dart';


Container(
  margin: EdgeInsets.all(6),
  color: Colors.grey,
  height: 26,
  child: ScrollText(
    arrTexts: ["abcdefghijklmnopqrstuvwxyz","0123456789876543210"],
    maxListNum: 3,
  ),
)

Use for update message to ScrollText. #

List<String> tmpStrs = [
  "XXX WON xxx CHIPS FOR THE TOP RANKING IN XXXX.1234567890.",
  "YYY WON xxx CHIPS FOR THE TOP RANKING IN XXXX.9876543210."
];

// ... others code ...
Container(
  margin: EdgeInsets.all(6),
  color: Colors.grey,
  height: 26,
  child: ScrollText(
    arrTexts: tmpStrs,
    maxListNum: 5,
  ),
),

//update message string to ScrllText in tap event
onTap: (index) {
  setState(() {
    tmpStrs.add("The New Message Arrived.1234567890");
  });
}

  

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

3
likes
10
pub points
41%
popularity

Publisher

unverified uploader

A new Flutter package project.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on scroll_text