@@ -18,7 +18,7 @@ enum AuthState {
18
18
}
19
19
20
20
class AuthPage extends StatefulWidget {
21
- const AuthPage ({Key key}) : super (key: key);
21
+ const AuthPage ({Key ? key}) : super (key: key);
22
22
23
23
@override
24
24
_AuthPageState createState () => _AuthPageState ();
@@ -27,8 +27,8 @@ class AuthPage extends StatefulWidget {
27
27
class _AuthPageState extends State <AuthPage >
28
28
with SingleTickerProviderStateMixin {
29
29
// animation variables
30
- AnimationController _controller;
31
- SequenceAnimation _sequenceAnimation;
30
+ late AnimationController _controller;
31
+ late SequenceAnimation _sequenceAnimation;
32
32
33
33
// variables to control the transition effect to the home page
34
34
double _expandingWidth = 0 ;
@@ -47,15 +47,15 @@ class _AuthPageState extends State<AuthPage>
47
47
48
48
@override
49
49
void initState () {
50
+ super .initState ();
51
+
50
52
_controller = AnimationController (
51
53
vsync: this ,
52
54
duration: const Duration (milliseconds: 1200 ),
53
55
)..addStatusListener (_animationStatusListener);
54
56
55
57
_initSequenceAnimation ();
56
58
_controller.forward (from: 0 );
57
-
58
- super .initState ();
59
59
}
60
60
61
61
@override
@@ -211,7 +211,7 @@ class _AuthPageState extends State<AuthPage>
211
211
decoration: BoxDecoration (
212
212
color: Colors .grey.shade300.withOpacity (0.1 ),
213
213
borderRadius: _sequenceAnimation['borderRadius' ].value
214
- as BorderRadiusGeometry ,
214
+ as BorderRadiusGeometry ? ,
215
215
),
216
216
child: Stack (
217
217
children: < Widget > [
0 commit comments