Skip to content

Commit 72de8b2

Browse files
authored
Merge pull request #43 from deepikahr/GFIntroScreen
Gf intro screen completed
2 parents 50c75d5 + bfffb8e commit 72de8b2

File tree

15 files changed

+595
-320
lines changed

15 files changed

+595
-320
lines changed

lib/components/animation/gf_animation.dart

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ class GFAnimation extends StatefulWidget {
3434
this.reverseDuration,
3535
}) : super(key: key);
3636

37-
/// The duration for animations of the [Decoration].
37+
/// `The duration for animation to perform`
3838
final Duration duration;
3939

40-
/// The duration for animations of the type[Size].
40+
/// The duration for animation to perform
4141
final Duration reverseDuration;
4242

4343
/// Defines how the animated widget is aligned within the Animation.
@@ -49,7 +49,7 @@ class GFAnimation extends StatefulWidget {
4949
/// The child of type [Widget] to display animation effect.
5050
final Widget child;
5151

52-
/// Determines the animation curve physics. Defaults to [Curves.linear].
52+
/// Determines the animation curve. Defaults to [Curves.linear].
5353
final Curve curve;
5454

5555
///type of [GFAnimation] which takes the type ie, align, size, container, rotateTransition, scaleTransition, slideTransition, and textStyle for the [GFAnimation]
@@ -58,51 +58,66 @@ class GFAnimation extends StatefulWidget {
5858
/// [AnimatedContainer] initial width
5959
final double width;
6060

61-
/// [AnimatedContainer] changed width
61+
/// defines the width of [AnimatedContainer] upto which it can extend during animation
6262
final double changedWidth;
6363

6464
/// [AnimatedContainer] initial height
6565
final double height;
6666

67-
/// [AnimatedContainer] changed height
67+
/// defines the height of [AnimatedContainer] upto which it can extend during animation
6868
final double changedHeight;
6969

70-
/// defines the color of items when onTap triggers
70+
/// defines the color of [AnimatedContainer] when onTap triggers
7171
final Color activeColor;
7272

73-
/// defines the color of items
73+
/// defines the color of [AnimatedContainer]
7474
final Color color;
7575

76-
/// The empty space that surrounds the animation. Defines the animation outer [Container.padding]..
76+
/// defines [child]'s or [AnimatedContainer] padding
7777
final EdgeInsetsGeometry padding;
7878

79-
/// The empty space that surrounds the animation. Defines the animation outer [Container.margin].
79+
/// defines [child]'s or [AnimatedContainer] margin
8080
final EdgeInsetsGeometry margin;
81+
82+
/// Called when the user taps the [child]
8183
final Function onTap;
8284

8385
/// Here's an illustration of the [RotationTransition] widget, with it's [turnsAnimation]
84-
/// animated by a [Tween] set to [animate]:
86+
/// animated by a stuckValue set to animate
8587
final Animation<double> turnsAnimation;
8688

8789
/// Here's an illustration of the [ScaleTransition] widget, with it's [scaleAnimation]
88-
/// animated by a [CurvedAnimation] set to [Curves.linear]:
90+
/// animated by a [CurvedAnimation] set to [Curves.linear]
8991
final Animation<double> scaleAnimation;
9092

93+
/// controls animation
9194
final AnimationController controller;
9295

9396
///direction of the [AnimatedDefaultTextStyle] TextDirection for [ltr,rtl]
9497
final TextDirection textDirection;
9598

96-
/// * [ScaleTransition], which animates the scale of a widget.
99+
/// [ScaleTransition], which animates the scale of a widget.
97100
final Animation<Offset> slidePosition;
101+
102+
/// defines the [TextStyle] of [AnimatedDefaultTextStyle]
98103
final TextStyle style;
104+
105+
/// defines the [TextAlign] of [AnimatedDefaultTextStyle]
99106
final TextAlign textAlign;
107+
108+
/// defines the [TextOverflow] of [AnimatedDefaultTextStyle]
100109
final TextOverflow textOverflow;
101110

102-
/// [AnimatedDefaultTextStyle] maxlines
111+
/// defines the [maxLines] of [AnimatedDefaultTextStyle]
103112
final int maxLines;
113+
114+
/// defines the [TextWidthBasis] of [AnimatedDefaultTextStyle]
104115
final TextWidthBasis textWidthBasis;
116+
117+
/// defines the [fontSize] of [AnimatedDefaultTextStyle]
105118
final double fontSize;
119+
120+
/// defines the [fontWeight] of [AnimatedDefaultTextStyle]
106121
final FontWeight fontWeight;
107122

108123
@override

lib/components/border/gf_border.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ class GFBorder extends StatelessWidget {
1414
this.radius = const Radius.circular(0),
1515
this.customPath,
1616
}) : assert(child != null),
17-
assert(_isValiddashedLine(dashedLine), 'Invalid dash pattern');
17+
assert(_isValidDashedLine(dashedLine), 'Invalid dash pattern');
1818

19-
/// child of type [Widget] which can be any component or text , etc
19+
/// child of type [Widget] which can be any component or text, etc
2020
final Widget child;
2121

2222
/// padding of time [EdgeInsets] where in padding is given to the border types
@@ -61,7 +61,7 @@ class GFBorder extends StatelessWidget {
6161
}
6262

6363
/// the value of dashedLine cannot be 0 or null, it should have some definite and proper value
64-
bool _isValiddashedLine(List<double> dash) {
64+
bool _isValidDashedLine(List<double> dash) {
6565
final Set<double> _dashSet = dash.toSet();
6666
if (_dashSet == null) {
6767
return false;

lib/components/button/gf_button_bar.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class GFButtonBar extends StatelessWidget {
4545
/// are placed relative to each other in the cross axis.
4646
final WrapAlignment alignment;
4747

48-
/// How much space to place between children in a run in the main axis.
48+
/// How much space to place bestuckValue children in a run in the main axis.
4949
///
5050
/// For example, if [spacing] is 10.0, the children will be spaced at least
5151
/// 10.0 logical pixels apart in the main axis.
@@ -73,7 +73,7 @@ class GFButtonBar extends StatelessWidget {
7373
/// are placed relative to each other in the cross axis.
7474
final WrapAlignment runAlignment;
7575

76-
/// How much space to place between the runs themselves in the cross axis.
76+
/// How much space to place bestuckValue the runs themselves in the cross axis.
7777
///
7878
/// For example, if [runSpacing] is 10.0, the runs will be spaced at least
7979
/// 10.0 logical pixels apart in the cross axis.

lib/components/carousel/gf_carousel.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class GFCarousel extends StatefulWidget {
7575
/// Sets Duration to determent the frequency of slides when [autoPlay] is set to true. Defaults to 4 seconds.
7676
final Duration autoPlayInterval;
7777

78-
/// The animation duration between two transitioning pages while in auto playback. Defaults to 800 ms.
78+
/// The animation duration bestuckValue two transitioning pages while in auto playback. Defaults to 800 ms.
7979
final Duration autoPlayAnimationDuration;
8080

8181
/// Determines the animation curve physics. Defaults to [Curves.fastOutSlowIn].
@@ -344,7 +344,7 @@ class _GFCarouselState extends State<GFCarousel> with TickerProviderStateMixin {
344344
/// For example; We have a Carousel of 10000(simulating infinity) but only 6 images.
345345
/// We need to repeat the images to give the illusion of a never ending stream.
346346
/// By calling _getRealIndex with position and base we get an offset.
347-
/// This offset modulo our length, 6, will return a number between 0 and 5, which represent the image
347+
/// This offset modulo our length, 6, will return a number bestuckValue 0 and 5, which represent the image
348348
/// to be placed in the given position.
349349
int _getRealIndex(int position, int base, int length) {
350350
final int offset = position - base;

lib/components/checkbox/gf_checkbox.dart

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ class GFCheckbox extends StatefulWidget {
2525
: assert(autofocus != null),
2626
super(key: key);
2727

28-
/// type of [GFCheckboxType] which is of four type is basic, sqaure, circular and custom
28+
/// type of [GFCheckboxType] which is of four type is basic, square, circular and custom
2929
final GFCheckboxType type;
3030

3131
/// type of [double] which is GFSize ie, small, medium and large and can use any double value
3232
final double size;
3333

34-
/// type pf [Color] used to change the checkcolor when the checkbox is active
34+
/// type of [Color] used to change the checkcolor when the checkbox is active
3535
final Color checkColor;
3636

3737
/// type of [Color] used to change the backgroundColor of the active checkbox
@@ -49,22 +49,23 @@ class GFCheckbox extends StatefulWidget {
4949
/// Called when the user checks or unchecks the checkbox.
5050
final ValueChanged<bool> onChanged;
5151

52-
///Used to set the current state of the checkbox
52+
/// Used to set the current state of the checkbox
5353
final bool value;
5454

55-
///type of Widget used to change the checkbox's active icon
55+
/// type of [Widget] used to change the checkbox's active icon
5656
final Widget activeIcon;
5757

58-
///type of [Widget] used to change the checkbox's inactive icon
58+
/// type of [Widget] used to change the checkbox's inactive icon
5959
final Widget inactiveIcon;
6060

61-
/// type of [Color] used to change the background color of the custom active checkbox only
61+
/// type of [Color] used to change the background color of the custom active checkbox only
6262
final Color custombgColor;
6363

64-
/// {@macro flutter.widgets.Focus.autofocus}
64+
/// on true state this widget will be selected as the initial focus
65+
/// when no other node in its scope is currently focused
6566
final bool autofocus;
6667

67-
/// {@macro flutter.widgets.Focus.focusNode}
68+
/// an optional focus node to use as the focus node for this widget.
6869
final FocusNode focusNode;
6970

7071
@override

lib/components/image/gf_image_overlay.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ class GFImageOverlay extends StatelessWidget {
6767
///
6868
/// If this is [BoxShape.circle] then [borderRadius] is ignored.
6969
///
70-
/// The [shape] cannot be interpolated; animating between two [BoxDecoration]s
70+
/// The [shape] cannot be interpolated; animating bestuckValue two [BoxDecoration]s
7171
/// with different [shape]s will result in a discontinuity in the rendering.
72-
/// To interpolate between two shapes, consider using [ShapeDecoration] and
72+
/// To interpolate bestuckValue two shapes, consider using [ShapeDecoration] and
7373
/// different [ShapeBorder]s; in particular, [CircleBorder] instead of
7474
/// [BoxShape.circle] and [RoundedRectangleBorder] instead of
7575
/// [BoxShape.rectangle].

lib/components/intro_screen/gf__intro_bottom_navigation.dart

Lines changed: 0 additions & 160 deletions
This file was deleted.

0 commit comments

Comments
 (0)