From f6f64c5793f1dbd3046314c667078613632de8d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Wr=C3=B3bel?= Date: Fri, 14 Oct 2022 22:59:29 +0200 Subject: [PATCH] minor changes --- CHANGELOG.md | 4 ++++ example/lib/main.dart | 2 +- example/pubspec.lock | 2 +- lib/auto_scroll_text.dart | 12 +++++++++++- lib/auto_scroll_text_impl.dart | 4 ---- lib/auto_scroll_text_mode.dart | 11 ----------- pubspec.yaml | 2 +- 7 files changed, 18 insertions(+), 19 deletions(-) delete mode 100644 lib/auto_scroll_text_impl.dart delete mode 100644 lib/auto_scroll_text_mode.dart diff --git a/CHANGELOG.md b/CHANGELOG.md index 2446a73..00358e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.4 + +* Minor changes + ## 0.0.3 * Minor fixes diff --git a/example/lib/main.dart b/example/lib/main.dart index 4503205..a0ca2a0 100644 --- a/example/lib/main.dart +++ b/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'; // Created by Bomsamdi on 2022 diff --git a/example/pubspec.lock b/example/pubspec.lock index a0237a1..b9270e6 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -14,7 +14,7 @@ packages: path: ".." relative: true source: path - version: "0.0.3" + version: "0.0.4" boolean_selector: dependency: transitive description: diff --git a/lib/auto_scroll_text.dart b/lib/auto_scroll_text.dart index 35121dc..a9d4bd4 100644 --- a/lib/auto_scroll_text.dart +++ b/lib/auto_scroll_text.dart @@ -1,8 +1,9 @@ +library auto_scroll_text; + // Created by Bomsamdi on 2022 // Copyright © 2022 Bomsamdi. All rights reserved. import 'dart:async'; -import 'package:auto_scroll_text/auto_scroll_text_mode.dart'; import 'package:flutter/material.dart'; /// AutoScrollText widget automatically scrolls provided [text] @@ -427,3 +428,12 @@ class _AutoScrollTextState extends State { 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, +} diff --git a/lib/auto_scroll_text_impl.dart b/lib/auto_scroll_text_impl.dart deleted file mode 100644 index 9d67f39..0000000 --- a/lib/auto_scroll_text_impl.dart +++ /dev/null @@ -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'; diff --git a/lib/auto_scroll_text_mode.dart b/lib/auto_scroll_text_mode.dart deleted file mode 100644 index 034dce9..0000000 --- a/lib/auto_scroll_text_mode.dart +++ /dev/null @@ -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, -} diff --git a/pubspec.yaml b/pubspec.yaml index 8f72ff2..6b2b798 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ 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. -version: 0.0.3 +version: 0.0.4 homepage: https://github.com/Bomsamdi/auto_scroll_text environment: