You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.8 KiB

2 years ago
# AutoScrollText
2 years ago
10 months ago
[![Pub](https://img.shields.io/pub/v/auto_scroll_text.svg)](https://pub.dev/packages/auto_scroll_text)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![pub points](https://img.shields.io/pub/points/auto_scroll_text)](https://pub.dev/packages/auto_scroll_text/score)
[![popularity](https://img.shields.io/pub/popularity/auto_scroll_text)](https://pub.dev/packages/auto_scroll_text/score)
10 months ago
2 years ago
[AutoScrollText] is package for users which need a single line text widget without overlaping or TextOverflow.elipsis for long texts.
10 months ago
## Installation
Include your package in your `pubspec.yaml` file:
```yaml
dependencies:
auto_scroll_text: ^0.0.6
```
2 years ago
## Features
2 years ago
https://user-images.githubusercontent.com/94292009/195745400-79f7c6ba-bd4c-47ff-bea6-ee1e4d8bf44c.mp4
2 years ago
## Usage
2 years ago
```dart
2 years ago
import 'package:auto_scroll_text/auto_scroll_text.dart';
2 years ago
Scaffold(
appBar: AppBar(
title: const Text("Horizontal Example"),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: const <Widget>[
AutoScrollText(
2 years ago
"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.",
2 years ago
textStyle: TextStyle(fontSize: 24),
),
],
),
),
);
```
2 years ago
Example usage in `/example` folder.
## Additional information
[AutoScrollText] is a solution when you need
text widget for long texts without overlaping or overflow.elipsis
[AutoScrollText] supports both directions [Axis.horizontal] and [Axis.vertical]