File tree 5 files changed +27
-15
lines changed 5 files changed +27
-15
lines changed Original file line number Diff line number Diff line change 1
1
# Versions
2
2
3
+ ## [ 1.2.1] - 27.01.2022
4
+
5
+ * Fixed the auth mode change behavior on mobile.
6
+ * Optimized the spaces/paddings between form and action button for mobile.
7
+
3
8
## [ 1.2.0] - 27.01.2022
4
9
5
10
* Optimized the use of AnimatedBuilder to avoid unnecessary rebuilds.
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ packages:
7
7
path: ".."
8
8
relative: true
9
9
source: path
10
- version: "1.2.0 "
10
+ version: "1.2.1 "
11
11
animations:
12
12
dependency: transitive
13
13
description:
Original file line number Diff line number Diff line change @@ -517,20 +517,19 @@ class __ViewState extends State<_View> with SingleTickerProviderStateMixin {
517
517
auth.setIsReverse (welcomeTransitionAnimation.value <=
518
518
context.read <LoginTheme >().formWidthRatio / 2 );
519
519
} else if (_forwardCheck) {
520
- auth.setIsReverse (! auth.isReverse);
520
+ auth.setIsReverse (false );
521
+ } else if (_reverseCheck) {
522
+ auth.setIsReverse (true );
521
523
}
522
524
}
523
525
});
524
526
}
525
527
526
- bool get _forwardCheck => _isLandscape
527
- ? welcomeTransitionAnimation.value <=
528
- context.read <LoginTheme >().formWidthRatio / 2
529
- : welcomeTransitionAnimation.value <= - 100 && _statusCheck;
528
+ bool get _forwardCheck =>
529
+ welcomeTransitionAnimation.value > 0 &&
530
+ welcomeTransitionAnimation.status == AnimationStatus .forward;
530
531
531
- bool get _statusCheck =>
532
- (welcomeTransitionAnimation.status == AnimationStatus .forward &&
533
- _isReverse) ||
534
- (welcomeTransitionAnimation.status == AnimationStatus .reverse &&
535
- ! _isReverse);
532
+ bool get _reverseCheck =>
533
+ welcomeTransitionAnimation.value < 0 &&
534
+ welcomeTransitionAnimation.status == AnimationStatus .reverse;
536
535
}
Original file line number Diff line number Diff line change @@ -214,14 +214,22 @@ class __FormPartState extends State<_FormPart> {
214
214
loginTheme.spacingWithoutSocial ?? dynamicSize.height * 6 ,
215
215
),
216
216
_form,
217
- SizedBox (
218
- height: loginTheme.spacingFormAndAction ??
219
- dynamicSize.height * (_isLandscape ? 4 : 3 )),
217
+ SizedBox (height: loginTheme.spacingFormAndAction ?? _customSpace),
220
218
_actionButton,
221
219
],
222
220
),
223
221
);
224
222
223
+ double get _customSpace {
224
+ double factor = 3 ;
225
+ if (_isLandscape) {
226
+ factor = 4 ;
227
+ } else if (_isReverse) {
228
+ factor = 0.5 ;
229
+ }
230
+ return dynamicSize.height * factor;
231
+ }
232
+
225
233
List <Widget > get _socialLoginPart => < Widget > [
226
234
SizedBox (height: dynamicSize.height * 2.5 ),
227
235
_socialLoginOptions,
Original file line number Diff line number Diff line change 1
1
name : animated_login
2
2
description : Animated Login for Flutter. You can welcome your users with this beautiful animated screen that gives functionality for both login and sign up.
3
- version : 1.2.0
3
+ version : 1.2.1
4
4
homepage : https://github.com/bahricanyesil/flutter-animated-login
5
5
repository : https://github.com/bahricanyesil/flutter-animated-login
6
6
You can’t perform that action at this time.
0 commit comments