Skip to content

Commit ac604ef

Browse files
committed
added simple animations
1 parent cbe9c83 commit ac604ef

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

.flutter-plugins-dependencies

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +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"}
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 17:02:00.335289","version":"1.23.0-7.0.pre"}

assets/animations/chat-anim.json

+1-1
Large diffs are not rendered by default.

lib/views/screens/auth/login.dart

+9-10
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import 'package:social_app_ui/util/const.dart';
55
import 'package:social_app_ui/util/enum.dart';
66
import 'package:social_app_ui/util/router.dart';
77
import 'package:social_app_ui/util/validations.dart';
8-
import 'package:social_app_ui/views/screens/home.dart';
8+
import 'package:social_app_ui/views/screens/main_screen.dart';
99
import 'package:social_app_ui/views/widgets/custom_button.dart';
1010
import 'package:social_app_ui/views/widgets/custom_text_field.dart';
11-
11+
import 'package:social_app_ui/util/extensions.dart';
1212
class Login extends StatefulWidget {
1313
@override
1414
_LoginState createState() => _LoginState();
@@ -33,7 +33,7 @@ class _LoginState extends State<Login> {
3333
setState(() {});
3434
showInSnackBar('Please fix the errors in red before submitting.');
3535
} else {
36-
Navigate.pushPage(context, Home());
36+
Navigate.pushPageReplacement(context, MainScreen());
3737
}
3838
}
3939

@@ -97,7 +97,7 @@ class _LoginState extends State<Login> {
9797
fontSize: 40.0,
9898
fontWeight: FontWeight.bold,
9999
),
100-
),
100+
).fadeInList(0, false),
101101
SizedBox(height: 70.0),
102102
Form(
103103
autovalidateMode: AutovalidateMode.onUserInteraction,
@@ -121,7 +121,7 @@ class _LoginState extends State<Login> {
121121
),
122122
],
123123
),
124-
),
124+
).fadeInList(3, false),
125125
SizedBox(height: 20.0),
126126
buildButton(),
127127
Visibility(
@@ -139,8 +139,7 @@ class _LoginState extends State<Login> {
139139
),
140140
],
141141
),
142-
),
143-
142+
).fadeInList(5, false),
144143
Visibility(
145144
visible: formMode != FormMode.LOGIN,
146145
child: Row(
@@ -194,7 +193,7 @@ class _LoginState extends State<Login> {
194193
},
195194
focusNode: emailFN,
196195
nextFocusNode: passFN,
197-
),
196+
).fadeInList(1, false),
198197
Visibility(
199198
visible: formMode != FormMode.FORGOT_PASSWORD,
200199
child: Column(
@@ -214,7 +213,7 @@ class _LoginState extends State<Login> {
214213
),
215214
],
216215
),
217-
),
216+
).fadeInList(2, false),
218217
],
219218
);
220219
}
@@ -225,6 +224,6 @@ class _LoginState extends State<Login> {
225224
: CustomButton(
226225
label: "Submit",
227226
onPressed: () => login(),
228-
);
227+
).fadeInList(4, false);
229228
}
230229
}

0 commit comments

Comments
 (0)