An open API service indexing awesome lists of open source software.

https://github.com/caijinglong/flutter_vertical_marquee

flutter vertical marquee
https://github.com/caijinglong/flutter_vertical_marquee

android dart flutter ios marquee mit vertical

Last synced: about 2 months ago
JSON representation

flutter vertical marquee

Awesome Lists containing this project

README

        

# flutter_vertical_marquee

[![pub package](https://img.shields.io/pub/v/flutter_vertical_marquee.svg)](https://pub.dartlang.org/packages/flutter_vertical_marquee)

## screenshot

![image](https://raw.githubusercontent.com/CaiJingLong/some_asset/master/flutter_vertical_marquee1.gif)

## install

latest_version: [![pub package](https://img.shields.io/pub/v/flutter_vertical_marquee.svg)](https://pub.dartlang.org/packages/flutter_vertical_marquee)

yaml

```yaml
dependencies:
flutter:
sdk: flutter

...
# marquee
flutter_vertical_marquee: $latest_version
```

import in dart:

```dart
import 'package:flutter_vertical_marquee/flutter_vertical_marquee.dart';
```

build widget

```dart
List _tipMarqueeList = [];

_initMarquee() {
_tipMarqueeList.clear();
_tipMarqueeList.addAll(["test1", "test2"]);
}

Widget _buildMarquee() {
_initMarquee();
var controller = MarqueeController();
return GestureDetector(
child: Container(
height: 40.0,
color: Colors.lightBlueAccent.shade100,
child: Marquee(
textList: _tipMarqueeList, // List, textList and textSpanList can only have one of code.
textSpanList: // List text, textList and textSpanList can only have one of code.
fontSize: 14.0, // text size
scrollDuration: Duration(seconds: 1), // every scroll duration
stopDuration: Duration(seconds: 3), //every stop duration
tapToNext: false, // tap to next
textColor: Colors.black, // text color
controller: controller, // the controller can get the position
),
),
onTap: () {
print(controller.position); // get the position
},
);
}
```

or see example tab

## call me

email [email protected]