Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#44 fix #70

Merged
merged 129 commits into from
May 15, 2020
Merged

#44 fix #70

merged 129 commits into from
May 15, 2020

Conversation

AadumKhor
Copy link
Collaborator

Issue #44 was about RotateAnimatedTextKit not being centered. I checked by adding Alignment.Center but that worked in one particular case only which is why I made a comment. The problem however is not resolved by using this parameter since our code does not use widget.alignment anywhere, making that parameter useless. The problem this PR solves is that it takes into account the 'alignment' parameter of the widget which was not being used and accordingly adjust the position of the text. The only drawback I see presently is that generic AlignmentGeometry options like Alignment.center would not work, rather Alignment(double x, double y) format would have to be used.

We can add this part to the docs for clarification.

Looking forward to your feedback.

aagarwal1012 and others added 20 commits July 10, 2019 23:53
* docs: update README.md

* docs: create .all-contributorsrc

* docs: updated readme
* docs: update README.md

* docs: update .all-contributorsrc
* docs: update README.md

* docs: update .all-contributorsrc
* Typer Class Enhancments

Refer to issue aagarwal1012#34
The Typer Class has been greatly improved in term of control. 

### Let's start with breaking changes : 
####The duration parameter has become two new ones : speed and pause
  * speed is the elapsed time between the animation of each characters of a text (Default is 40 ms)
  * pause is the pause duration between texts (Default is 500 ms)

### New features : 
####Three new callbacks come alongside the onTap :  
  * onNext(int index, bool isLast) - This callback will be called before the next text animation, after the previous one's pause. 
  * onNextBeforePause(int index, bool isLast) - This callback will be called before the next text animation, before the previous one's pause. 
  * onFinished - This callback is called at the end, if the parameter isRepeatingAnimation is set to false
####Two new arguments : 
  * displayFullTextOnTap - If true, tapping the screen will stop current animated text, and display it fully for min(remaining, pause) time. (Default is false)
  * stopPauseOnTap - If true, tapping during a pause will stop it and start the next text animation (Default is false)
####The text list parameter now accept either strings, or map where you can give a text custom speed and pause.

If you like thoses changes, I'll make another commit with updated readme regarding this PR with code examples.

* Fix indentation issues for Travis

* Fix indentation issues for Travis

* Fix formating issue in travis
Enhanced different classes of AnimatedTextKit
Added TextLiquidFill animation to AnimatedTextKit
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]
@codecov
Copy link

codecov bot commented May 14, 2020

Codecov Report

Merging #70 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #70   +/-   ##
=======================================
  Coverage   63.96%   63.96%           
=======================================
  Files           7        7           
  Lines         655      655           
=======================================
  Hits          419      419           
  Misses        236      236           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c956b05...c956b05. Read the comment docs.

@@ -1,10 +1,11 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=C:\flutter"
export "FLUTTER_APPLICATION_PATH=E:\flutter_projects\Animated-Text-Kit\example"
export "FLUTTER_APPLICATION_PATH=C:\Users\Legion\AndroidStudioProjects\Animated-Text-Kit\example"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AadumKhor, please add this file to .gitignore and remove it from the git history.

Copy link
Owner

@aagarwal1012 aagarwal1012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AadumKhor, please resolve the comment that I mentioned, otherwise this PR looks fine.

@aagarwal1012 aagarwal1012 merged commit bde1cc4 into aagarwal1012:master May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants