Browse Source

minor changes

pull/1/head
Bartosz Wróbel 2 years ago
parent
commit
f6f64c5793
  1. 4
      CHANGELOG.md
  2. 2
      example/lib/main.dart
  3. 2
      example/pubspec.lock
  4. 12
      lib/auto_scroll_text.dart
  5. 4
      lib/auto_scroll_text_impl.dart
  6. 11
      lib/auto_scroll_text_mode.dart
  7. 2
      pubspec.yaml

4
CHANGELOG.md

@ -1,3 +1,7 @@
## 0.0.4
* Minor changes
## 0.0.3 ## 0.0.3
* Minor fixes * Minor fixes

2
example/lib/main.dart

@ -1,4 +1,4 @@
import 'package:auto_scroll_text/auto_scroll_text_impl.dart'; import 'package:auto_scroll_text/auto_scroll_text.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
// Created by Bomsamdi on 2022 // Created by Bomsamdi on 2022

2
example/pubspec.lock

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

12
lib/auto_scroll_text.dart

@ -1,8 +1,9 @@
library auto_scroll_text;
// Created by Bomsamdi on 2022 // Created by Bomsamdi on 2022
// Copyright © 2022 Bomsamdi. All rights reserved. // Copyright © 2022 Bomsamdi. All rights reserved.
import 'dart:async'; import 'dart:async';
import 'package:auto_scroll_text/auto_scroll_text_mode.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
/// AutoScrollText widget automatically scrolls provided [text] /// AutoScrollText widget automatically scrolls provided [text]
@ -427,3 +428,12 @@ class _AutoScrollTextState extends State<AutoScrollText> {
bool get _available => mounted && _scrollController.hasClients; bool get _available => mounted && _scrollController.hasClients;
} }
/// Animation types for [AutoScrollText] widget.
/// [endless] - scrolls text in one direction endlessly.
/// [bouncing] - when text is scrolled to its end,
/// starts animation to opposite direction.
enum AutoScrollTextMode {
bouncing,
endless,
}

4
lib/auto_scroll_text_impl.dart

@ -1,4 +0,0 @@
library auto_scroll_text;
export 'package:auto_scroll_text/auto_scroll_text.dart';
export 'package:auto_scroll_text/auto_scroll_text_mode.dart';

11
lib/auto_scroll_text_mode.dart

@ -1,11 +0,0 @@
// Created by Bomsamdi on 2022
// Copyright © 2022 Bomsamdi. All rights reserved.
/// Animation types for [AutoScrollText] widget.
/// [endless] - scrolls text in one direction endlessly.
/// [bouncing] - when text is scrolled to its end,
/// starts animation to opposite direction.
enum AutoScrollTextMode {
bouncing,
endless,
}

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.3 version: 0.0.4
homepage: https://github.com/Bomsamdi/auto_scroll_text homepage: https://github.com/Bomsamdi/auto_scroll_text
environment: environment:

Loading…
Cancel
Save