Skip to content

Commit

Permalink
#51 fix (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
AadumKhor committed May 25, 2020
1 parent f1f9d59 commit 715541c
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
4 changes: 3 additions & 1 deletion lib/src/colorize.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ class _RotatingTextState extends State<ColorizeAnimatedTextKit>

for (int i = 0; i < widget.text.length; i++) {
try {
if (!widget.text[i].containsKey('text')) throw new Error();
if (widget.text[i] is Map<String, dynamic>) {
if (!widget.text[i].containsKey('text')) throw new Error();
}

_texts.add({
'text': widget.text[i]['text'],
Expand Down
4 changes: 3 additions & 1 deletion lib/src/fade.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ class _RotatingTextState extends State<FadeAnimatedTextKit>

for (int i = 0; i < widget.text.length; i++) {
try {
if (!widget.text[i].containsKey('text')) throw Error();
if (widget.text[i] is Map<String, dynamic>) {
if (!widget.text[i].containsKey('text')) throw new Error();
}

_texts.add({
'text': widget.text[i]['text'],
Expand Down
4 changes: 3 additions & 1 deletion lib/src/rotate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ class _RotatingTextState extends State<RotateAnimatedTextKit>

for (int i = 0; i < widget.text.length; i++) {
try {
if (!widget.text[i].containsKey('text')) throw Error();
if (widget.text[i] is Map<String, dynamic>) {
if (!widget.text[i].containsKey('text')) throw new Error();
}

_texts.add({
'text': widget.text[i]['text'],
Expand Down
4 changes: 3 additions & 1 deletion lib/src/scale.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ class _RotatingTextState extends State<ScaleAnimatedTextKit>

for (int i = 0; i < widget.text.length; i++) {
try {
if (!widget.text[i].containsKey('text')) throw Error();
if (widget.text[i] is Map<String, dynamic>) {
if (!widget.text[i].containsKey('text')) throw new Error();
}

_texts.add({
'text': widget.text[i]['text'],
Expand Down
4 changes: 3 additions & 1 deletion lib/src/typer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ class _TyperState extends State<TyperAnimatedTextKit>

for (int i = 0; i < widget.text.length; i++) {
try {
if (!widget.text[i].containsKey('text')) throw new Error();
if (widget.text[i] is Map<String, dynamic>) {
if (!widget.text[i].containsKey('text')) throw new Error();
}

_texts.add({
'text': widget.text[i]['text'],
Expand Down
4 changes: 3 additions & 1 deletion lib/src/typewriter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ class _TypewriterState extends State<TypewriterAnimatedTextKit>

for (int i = 0; i < widget.text.length; i++) {
try {
if (!widget.text[i].containsKey('text')) throw Error();
if (widget.text[i] is Map<String, dynamic>) {
if (!widget.text[i].containsKey('text')) throw new Error();
}

_texts.add({
'text': widget.text[i]['text'],
Expand Down

0 comments on commit 715541c

Please sign in to comment.