@@ -49,7 +49,7 @@ class _AuthPageState extends State<AuthPage>
49
49
void initState () {
50
50
_controller = AnimationController (
51
51
vsync: this ,
52
- duration: Duration (milliseconds: 1200 ),
52
+ duration: const Duration (milliseconds: 1200 ),
53
53
)..addStatusListener (_animationStatusListener);
54
54
55
55
_initSequenceAnimation ();
@@ -176,7 +176,10 @@ class _AuthPageState extends State<AuthPage>
176
176
177
177
Future <void > _routeTransition () {
178
178
return Future .delayed (const Duration (milliseconds: 500 ), () {
179
- Navigator .pushReplacement (context, FadeRoute (HomePage ()));
179
+ Navigator .pushReplacement <dynamic , dynamic >(
180
+ context,
181
+ FadeRoute (const HomePage ()),
182
+ );
180
183
});
181
184
}
182
185
@@ -188,8 +191,8 @@ class _AuthPageState extends State<AuthPage>
188
191
children: < Widget > [
189
192
ConstrainedBox (
190
193
constraints: const BoxConstraints .expand (),
191
- child: FlutterLogo (
192
- colors : Colors .blueGrey,
194
+ child: const FlutterLogo (
195
+ textColor : Colors .blueGrey,
193
196
style: FlutterLogoStyle .markOnly,
194
197
),
195
198
),
@@ -203,20 +206,23 @@ class _AuthPageState extends State<AuthPage>
203
206
child: BackdropFilter (
204
207
filter: ImageFilter .blur (sigmaX: 10.0 , sigmaY: 10.0 ),
205
208
child: Container (
206
- height: _sequenceAnimation['height' ].value,
207
- width: _sequenceAnimation['width' ].value,
209
+ height: _sequenceAnimation['height' ].value as double ,
210
+ width: _sequenceAnimation['width' ].value as double ,
208
211
decoration: BoxDecoration (
209
212
color: Colors .grey.shade300.withOpacity (0.1 ),
210
- borderRadius: _sequenceAnimation['borderRadius' ].value,
213
+ borderRadius: _sequenceAnimation['borderRadius' ].value
214
+ as BorderRadiusGeometry ,
211
215
),
212
216
child: Stack (
213
217
children: < Widget > [
214
218
Center (
215
219
child: body,
216
220
),
217
221
Header (
218
- scale: _sequenceAnimation['scale' ].value,
219
- height: _sequenceAnimation['headerHight' ].value,
222
+ scale:
223
+ _sequenceAnimation['scale' ].value as double ,
224
+ height: _sequenceAnimation['headerHight' ].value
225
+ as double ,
220
226
isLogin: _isLogin),
221
227
],
222
228
),
0 commit comments