Browse Source

Update

Padding for non-scrollable text added
pull/1/head
Bartosz Wróbel 2 years ago
parent
commit
640a8771ab
  1. 4
      CHANGELOG.md
  2. 2
      example/pubspec.lock
  3. 15
      lib/auto_scroll_text.dart
  4. 2
      pubspec.yaml

4
CHANGELOG.md

@ -1,3 +1,7 @@
## 0.0.6
* Padding for non-scrollable text added
## 0.0.5 ## 0.0.5
* Docs fix * Docs fix

2
example/pubspec.lock

@ -14,7 +14,7 @@ packages:
path: ".." path: ".."
relative: true relative: true
source: path source: path
version: "0.0.5" version: "0.0.6"
boolean_selector: boolean_selector:
dependency: transitive dependency: transitive
description: description:

15
lib/auto_scroll_text.dart

@ -41,6 +41,7 @@ class AutoScrollText extends StatefulWidget {
this.intervalSpaces, this.intervalSpaces,
this.scrollDirection = Axis.horizontal, this.scrollDirection = Axis.horizontal,
this.curve = Curves.linear, this.curve = Curves.linear,
this.padding = EdgeInsets.zero,
}) : super(key: key); }) : super(key: key);
/// The text string, that would be scrolled. /// The text string, that would be scrolled.
@ -228,6 +229,20 @@ class AutoScrollText extends StatefulWidget {
/// ``` /// ```
final Curve curve; final Curve curve;
/// [EdgeInsets] of padding for non-scrollable animation
///
/// Default is [EdgeInsets.zero].
///
/// Example:
///
/// ```dart
/// AutoScrollText(
/// 'Text with linear animation,
/// padding: EdgeInsets.all(8),
/// )
/// ```
final EdgeInsets padding;
@override @override
State<AutoScrollText> createState() => _AutoScrollTextState(); State<AutoScrollText> createState() => _AutoScrollTextState();
} }

2
pubspec.yaml

@ -1,6 +1,6 @@
name: auto_scroll_text name: auto_scroll_text
description: AutoScrollText is package for users which need a single line text widget without overlaping or TextOverflow.elipsis for long texts. description: AutoScrollText is package for users which need a single line text widget without overlaping or TextOverflow.elipsis for long texts.
version: 0.0.5 version: 0.0.6
homepage: https://github.com/Bomsamdi/auto_scroll_text homepage: https://github.com/Bomsamdi/auto_scroll_text
environment: environment:

Loading…
Cancel
Save