Skip to content

Commit

Permalink
🏁 Merge pull request #12
Browse files Browse the repository at this point in the history
Salihgueler feature: add a flag for running animation once
  • Loading branch information
aagarwal1012 committed Nov 21, 2018
2 parents 0238fa9 + a9f17af commit f9fa842
Show file tree
Hide file tree
Showing 17 changed files with 588 additions and 239 deletions.
35 changes: 27 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
.DS_Store
.dart_tool/
.atom/
.idea/
.vscode/

.packages
.pub/
.dart_tool/
pubspec.lock

build/
ios/.generated/
ios/Flutter/Generated.xcconfig
ios/Runner/GeneratedPluginRegistrant.*
Podfile
Podfile.lock
Pods/
.symlinks/
**/Flutter/App.framework/
**/Flutter/Flutter.framework/
**/Flutter/Generated.xcconfig
**/Flutter/flutter_assets/
ServiceDefinitions.json
xcuserdata/

# IntelliJ
.idea
*.iml
local.properties
.gradle/
gradlew
gradlew.bat
gradle-wrapper.jar
*.iml

GeneratedPluginRegistrant.h
GeneratedPluginRegistrant.m
GeneratedPluginRegistrant.java
build/
.flutter-plugins
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:
- FLUTTER_VERSION=dev
matrix:
allow_failures:
- env: FLUTTER_VERSION=beta
- env: FLUTTER_VERSION=dev
before_script:
- cd ../
- git clone https://github.com/flutter/flutter.git -b $FLUTTER_VERSION
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.2.0
**Feature Enhancement**
* Added attribute to check whether the animation should repeat or not.
* Updated Readme.

## 1.1.1
* Fixed flutter formatting issues.

Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Add this to your package's `pubspec.yaml` file:

```yaml
dependencies:
animated_text_kit: ^1.1.1
animated_text_kit: ^1.2.0
```

### 2. Install it
Expand Down Expand Up @@ -72,10 +72,11 @@ import 'package:animated_text_kit/animated_text_kit.dart';

# Usage

You can override the `duration` of each animation by setting duration in each AnimatedTextKit class. For example:
You can override the `duration` of each animation by setting its duration in each AnimatedTextKit class, also you can set if the animation should not repeat by changing the value of `isRepeatingAnimation` to false. For example:
```dart
FadeAnimatedTextKit(
duration: Duration(milliseconds: 5000),
isRepeatingAnimation: false,
text: ["do IT!", "do it RIGHT!!", "do it RIGHT NOW!!!"],
textStyle: TextStyle(fontSize: 32.0, fontWeight: FontWeight.bold),
);
Expand Down Expand Up @@ -233,7 +234,7 @@ SizedBox(
),
);
```
**Note:** `colors` list should contains at least two values, also `ColorizeAnimationTextKit` can be used for flutter `>=0.5.7` which is available in `dev` channel.
**Note:** `colors` list should contains at least two values.

# Bugs or Requests

Expand Down
2 changes: 1 addition & 1 deletion example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.android.tools.build:gradle:3.2.1'
}
}

Expand Down
2 changes: 1 addition & 1 deletion example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
Empty file modified example/android/gradlew
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ class _MyHomePageState extends State<MyHomePage> {
onTap: () {
print("Tap Event");
},
isRepeatingAnimation: false,
text: ["AWESOME", "OPTIMISTIC", "DIFFERENT"],
textStyle: TextStyle(fontSize: 40.0, fontFamily: "Horizon"),
),
Expand Down
Loading

0 comments on commit f9fa842

Please sign in to comment.