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.
57 lines
1.4 KiB
Dart
57 lines
1.4 KiB
Dart
import 'package:car_customer_app/config/routes.dart';
|
|
|
|
import 'package:car_customer_app/utils/navigator.dart';
|
|
import 'package:car_customer_app/utils/utils.dart';
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
import '../../classes/colors.dart';
|
|
|
|
class SplashPage extends StatelessWidget {
|
|
const SplashPage({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
performTimer(context);
|
|
return Scaffold(
|
|
body: Container(
|
|
width: double.infinity,
|
|
height: double.infinity,
|
|
color: Colors.black,
|
|
child: Column(
|
|
children: [
|
|
mExp(1),
|
|
Expanded(
|
|
child: Image.asset(
|
|
"assets/images/ic_logo_white.png",
|
|
),
|
|
),
|
|
Expanded(
|
|
flex: 10,
|
|
child: Image.asset(
|
|
"assets/images/bn_car.jpeg",
|
|
fit: BoxFit.cover,
|
|
width: double.infinity,
|
|
height: 00,
|
|
),
|
|
),
|
|
Expanded(
|
|
flex: 3,
|
|
child: Image.asset(
|
|
"assets/images/ic_engine.png",
|
|
),
|
|
),
|
|
mExp(1),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
performTimer(BuildContext context) {
|
|
delay(3).whenComplete(() {
|
|
navigateReplaceWithName(context, AppRoutes.registerSelection);
|
|
});
|
|
}
|
|
}
|