You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
950 B
Dart
37 lines
950 B
Dart
import 'package:car_provider_app/classes/colors.dart';
|
|
import 'package:car_provider_app/utils/navigator.dart';
|
|
import 'package:car_provider_app/utils/utils.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
|
|
import '../../config/routes.dart';
|
|
|
|
class SplashPage extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
performTimer(context);
|
|
return Scaffold(
|
|
body: Container(
|
|
width: double.infinity,
|
|
height: double.infinity,
|
|
decoration: MyColors.gradient,
|
|
child: Column(
|
|
children: [
|
|
mExp(1),
|
|
Expanded(
|
|
child: SvgPicture.asset("assets/images/splash_logo.svg"),
|
|
),
|
|
mExp(1),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
performTimer(BuildContext context) {
|
|
delay(3).whenComplete(() {
|
|
navigateReplaceWithName(context, AppRoutes.registerSelection);
|
|
});
|
|
}
|
|
}
|