Skip to content

Commit

Permalink
added simple animations
Browse files Browse the repository at this point in the history
  • Loading branch information
JideGuru committed Oct 18, 2020
1 parent cbe9c83 commit ac604ef
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider","path":"/Users/jideguru/flutterdev/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.11/","dependencies":[]}],"android":[{"name":"path_provider","path":"/Users/jideguru/flutterdev/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.11/","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"/Users/jideguru/flutterdev/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+3/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/jideguru/flutterdev/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/","dependencies":[]}],"windows":[],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]}],"date_created":"2020-10-18 16:07:14.117252","version":"1.23.0-7.0.pre"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider","path":"/Users/jideguru/flutterdev/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.11/","dependencies":[]}],"android":[{"name":"path_provider","path":"/Users/jideguru/flutterdev/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.11/","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"/Users/jideguru/flutterdev/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+3/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/jideguru/flutterdev/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/","dependencies":[]}],"windows":[],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]}],"date_created":"2020-10-18 17:02:00.335289","version":"1.23.0-7.0.pre"}
2 changes: 1 addition & 1 deletion assets/animations/chat-anim.json

Large diffs are not rendered by default.

19 changes: 9 additions & 10 deletions lib/views/screens/auth/login.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import 'package:social_app_ui/util/const.dart';
import 'package:social_app_ui/util/enum.dart';
import 'package:social_app_ui/util/router.dart';
import 'package:social_app_ui/util/validations.dart';
import 'package:social_app_ui/views/screens/home.dart';
import 'package:social_app_ui/views/screens/main_screen.dart';
import 'package:social_app_ui/views/widgets/custom_button.dart';
import 'package:social_app_ui/views/widgets/custom_text_field.dart';

import 'package:social_app_ui/util/extensions.dart';
class Login extends StatefulWidget {
@override
_LoginState createState() => _LoginState();
Expand All @@ -33,7 +33,7 @@ class _LoginState extends State<Login> {
setState(() {});
showInSnackBar('Please fix the errors in red before submitting.');
} else {
Navigate.pushPage(context, Home());
Navigate.pushPageReplacement(context, MainScreen());
}
}

Expand Down Expand Up @@ -97,7 +97,7 @@ class _LoginState extends State<Login> {
fontSize: 40.0,
fontWeight: FontWeight.bold,
),
),
).fadeInList(0, false),
SizedBox(height: 70.0),
Form(
autovalidateMode: AutovalidateMode.onUserInteraction,
Expand All @@ -121,7 +121,7 @@ class _LoginState extends State<Login> {
),
],
),
),
).fadeInList(3, false),
SizedBox(height: 20.0),
buildButton(),
Visibility(
Expand All @@ -139,8 +139,7 @@ class _LoginState extends State<Login> {
),
],
),
),

).fadeInList(5, false),
Visibility(
visible: formMode != FormMode.LOGIN,
child: Row(
Expand Down Expand Up @@ -194,7 +193,7 @@ class _LoginState extends State<Login> {
},
focusNode: emailFN,
nextFocusNode: passFN,
),
).fadeInList(1, false),
Visibility(
visible: formMode != FormMode.FORGOT_PASSWORD,
child: Column(
Expand All @@ -214,7 +213,7 @@ class _LoginState extends State<Login> {
),
],
),
),
).fadeInList(2, false),
],
);
}
Expand All @@ -225,6 +224,6 @@ class _LoginState extends State<Login> {
: CustomButton(
label: "Submit",
onPressed: () => login(),
);
).fadeInList(4, false);
}
}

0 comments on commit ac604ef

Please sign in to comment.