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.
38 lines
1.2 KiB
Dart
38 lines
1.2 KiB
Dart
import 'dart:async';
|
|
|
|
import 'package:car_customer_app/config/routes.dart';
|
|
import 'package:car_customer_app/extensions/string_extensions.dart';
|
|
import 'package:car_customer_app/generated/locale_keys.g.dart';
|
|
import 'package:car_customer_app/utils/navigator.dart';
|
|
import 'package:car_customer_app/utils/utils.dart';
|
|
import 'package:car_customer_app/extensions/widget_extensions.dart';
|
|
import 'package:easy_localization/src/public_ext.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class SplashPage extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: Container(
|
|
width: double.infinity,
|
|
height: double.infinity,
|
|
child: Column(
|
|
children: [
|
|
mFlex(5),
|
|
"Logo".toText(fontSize: 45, isBold: true),
|
|
mFlex(3),
|
|
LocaleKeys.firstTimeLogIn.tr().toText(fontSize: 18, isBold: true).onPress(() {
|
|
navigateWithName(context, AppRoutes.registerSelection);
|
|
}),
|
|
mFlex(1),
|
|
LocaleKeys.alreadySigned.tr().toText(fontSize: 18, isBold: true).onPress(() {
|
|
navigateWithName(context, AppRoutes.loginVerification);
|
|
}),
|
|
mFlex(5),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|