Scroll text widget

Hi all! There you can find how create a scroll text widget: package: https://pub.dev/packages/scroll_text [20180814_142220.gif]

 
1.  Create a custom widget with 2 parametrs: [Без имени.jpg]2. Add dependencies:

scroll_text: ^0.0.2

3. Create a Bollerplate Code
4. Add import 'package:scroll_text/scroll_text.dart'; under your code
5. Add this code like in screen #2:
List tmpStrs = [
  "This is your text #1",
  "This is your text #2."
];Screen #2[fr.png]

6. Add this code inside container like in screen #3
[cds.png]
margin: EdgeInsets.all(6),
  color: Colors.white,
  height: 26,
  child: ScrollText(
    arrTexts: tmpStrs,
    maxListNum: 5,
  ),  
1
3 replies