Skip to content

Commit 7193547

Browse files
authored
Merge pull request #148 from awhitford/dartdocs1
Added missing dartdoc to classes
2 parents 63f5c72 + fd413cb commit 7193547

File tree

9 files changed

+40
-5
lines changed

9 files changed

+40
-5
lines changed

lib/animated_text_kit.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/// _Animated Text Kit_ is a library of some cool and awesome text animations.
12
library animated_text_kit;
23

34
export 'src/typer.dart';

lib/src/colorize.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import 'package:flutter/material.dart';
22
import 'dart:async';
33

4+
/// Animation that displays [text] elements, shimmering transition between [colors].
5+
///
6+
/// ![colorize example](https://raw.githubusercontent.com/aagarwal1012/Animated-Text-Kit/master/display/colorize.gif)
47
class ColorizeAnimatedTextKit extends StatefulWidget {
58
/// List of [String] that would be displayed subsequently in the animation.
69
final List<String> text;
@@ -88,6 +91,7 @@ class ColorizeAnimatedTextKit extends StatefulWidget {
8891
assert(null != isRepeatingAnimation),
8992
super(key: key);
9093

94+
/// Creates the mutable state for this widget. See [StatefulWidget.createState].
9195
@override
9296
_ColorizeTextState createState() => _ColorizeTextState();
9397
}

lib/src/fade.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import 'dart:async';
22
import 'dart:math';
33
import 'package:flutter/material.dart';
44

5+
/// Animation that displays [text] elements, fading them in and then out.
6+
///
7+
/// ![fade example](https://raw.githubusercontent.com/aagarwal1012/Animated-Text-Kit/master/display/fade.gif)
58
class FadeAnimatedTextKit extends StatefulWidget {
69
/// List of [String] that would be displayed subsequently in the animation.
710
final List<String> text;
@@ -104,6 +107,7 @@ class FadeAnimatedTextKit extends StatefulWidget {
104107
assert(null != isRepeatingAnimation),
105108
super(key: key);
106109

110+
/// Creates the mutable state for this widget. See [StatefulWidget.createState].
107111
@override
108112
_FadeTextState createState() => _FadeTextState();
109113
}

lib/src/rotate.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import 'dart:async';
22
import 'package:flutter/material.dart';
33

4+
/// Animation that displays [text] elements, rotating them in one at a time.
5+
///
6+
/// ![rotate example](https://raw.githubusercontent.com/aagarwal1012/Animated-Text-Kit/master/display/rotate.gif)
47
class RotateAnimatedTextKit extends StatefulWidget {
58
/// List of [String] that would be displayed subsequently in the animation.
69
final List<String> text;
@@ -108,6 +111,7 @@ class RotateAnimatedTextKit extends StatefulWidget {
108111
assert(null != isRepeatingAnimation),
109112
super(key: key);
110113

114+
/// Creates the mutable state for this widget. See [StatefulWidget.createState].
111115
@override
112116
_RotatingTextState createState() => _RotatingTextState();
113117
}

lib/src/scale.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import 'dart:async';
22
import 'dart:math';
33
import 'package:flutter/material.dart';
44

5+
/// Animation that displays [text] elements, scaling them up and then out, one at a time.
6+
///
7+
/// ![scale example](https://raw.githubusercontent.com/aagarwal1012/Animated-Text-Kit/master/display/scale.gif)
58
class ScaleAnimatedTextKit extends StatefulWidget {
69
/// List of [String] that would be displayed subsequently in the animation.
710
final List<String> text;
@@ -111,6 +114,7 @@ class ScaleAnimatedTextKit extends StatefulWidget {
111114
assert(null != stopPauseOnTap),
112115
super(key: key);
113116

117+
/// Creates the mutable state for this widget. See [StatefulWidget.createState].
114118
@override
115119
_ScaleTextState createState() => _ScaleTextState();
116120
}

lib/src/text_liquid_fill.dart

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import 'dart:math';
22
import 'package:flutter/material.dart';
33

4+
/// Animation that displays a [text] element, coloring it to look like sloshing
5+
/// water is filling it up.
6+
///
7+
/// ![TextLiquidFill example](https://raw.githubusercontent.com/aagarwal1012/Animated-Text-Kit/master/display/text_liquid_fill.gif)
48
class TextLiquidFill extends StatefulWidget {
59
/// Gives [TextStyle] to the text string.
610
///
@@ -68,6 +72,7 @@ class TextLiquidFill extends StatefulWidget {
6872
assert(null != waveColor),
6973
super(key: key);
7074

75+
/// Creates the mutable state for this widget. See [StatefulWidget.createState].
7176
@override
7277
_TextLiquidFillState createState() => _TextLiquidFillState();
7378
}
@@ -126,7 +131,7 @@ class _TextLiquidFillState extends State<TextLiquidFill>
126131
animation: _waveController,
127132
builder: (BuildContext context, Widget child) {
128133
return CustomPaint(
129-
painter: WavePainter(
134+
painter: _WavePainter(
130135
textKey: _textKey,
131136
waveAnimation: _waveController,
132137
percentValue: _loadValue.value,
@@ -164,15 +169,15 @@ class _TextLiquidFillState extends State<TextLiquidFill>
164169
}
165170
}
166171

167-
class WavePainter extends CustomPainter {
172+
class _WavePainter extends CustomPainter {
168173
final _pi2 = 2 * pi;
169174
final GlobalKey textKey;
170175
final Animation<double> waveAnimation;
171176
final double percentValue;
172177
final double boxHeight;
173178
final Color waveColor;
174179

175-
WavePainter({
180+
_WavePainter({
176181
@required this.textKey,
177182
this.waveAnimation,
178183
this.percentValue,

lib/src/typer.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ import 'dart:math';
33
import 'package:characters/characters.dart';
44
import 'package:flutter/material.dart';
55

6+
/// Animation that displays [text] elements, as if they are being typed one
7+
/// character at a time.
8+
///
9+
/// ![typer example](https://raw.githubusercontent.com/aagarwal1012/Animated-Text-Kit/master/display/typer.gif)
610
class TyperAnimatedTextKit extends StatefulWidget {
711
/// List of [String] that would be displayed subsequently in the animation.
812
final List<String> text;
@@ -88,6 +92,7 @@ class TyperAnimatedTextKit extends StatefulWidget {
8892
assert(null != stopPauseOnTap),
8993
super(key: key);
9094

95+
/// Creates the mutable state for this widget. See [StatefulWidget.createState].
9196
@override
9297
_TyperState createState() => _TyperState();
9398
}

lib/src/typewriter.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ import 'dart:math';
33
import 'package:characters/characters.dart';
44
import 'package:flutter/material.dart';
55

6+
/// Animation that displays [text] elements, as if they are being typed one
7+
/// character at a time. Similar to [TyperAnimatedTextKit], but shows a cursor.
8+
///
9+
/// ![typewriter example](https://raw.githubusercontent.com/aagarwal1012/Animated-Text-Kit/master/display/typewriter.gif)
610
class TypewriterAnimatedTextKit extends StatefulWidget {
711
/// List of [String] that would be displayed subsequently in the animation.
812
final List<String> text;
@@ -103,6 +107,7 @@ class TypewriterAnimatedTextKit extends StatefulWidget {
103107
assert(null != isRepeatingAnimation),
104108
super(key: key);
105109

110+
/// Creates the mutable state for this widget. See [StatefulWidget.createState].
106111
@override
107112
_TypewriterState createState() => _TypewriterState();
108113
}

lib/src/wavy.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ import 'dart:async';
22
import 'dart:math' as math;
33
import 'package:flutter/material.dart';
44

5+
/// Animation that displays [text] elements, with each text animated with its
6+
/// characters popping like a stadium wave.
7+
///
8+
/// ![Wavy example](https://raw.githubusercontent.com/aagarwal1012/Animated-Text-Kit/master/display/wavy.gif)
59
class WavyAnimatedTextKit extends StatefulWidget {
610
const WavyAnimatedTextKit({
711
Key key,
@@ -59,14 +63,13 @@ class WavyAnimatedTextKit extends StatefulWidget {
5963
/// By default it is set to true.
6064
final bool isRepeatingAnimation;
6165

66+
/// Creates the mutable state for this widget. See [StatefulWidget.createState].
6267
@override
6368
_WavyAnimatedTextKitState createState() => _WavyAnimatedTextKitState();
6469
}
6570

6671
class _WavyAnimatedTextKitState extends State<WavyAnimatedTextKit>
6772
with TickerProviderStateMixin {
68-
// List<GlobalKey<_WTextState>> _keys;
69-
7073
AnimationController _controller;
7174
Animation<double> _waveAnim;
7275
Timer _timer;

0 commit comments

Comments
 (0)