2023-01-19 05:21:12 +00:00
|
|
|
import 'package:animate_do/animate_do.dart';
|
2023-01-18 07:54:44 +00:00
|
|
|
import 'package:flutter/cupertino.dart';
|
2023-01-19 05:21:12 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2023-01-18 07:54:44 +00:00
|
|
|
import 'package:flutter/src/widgets/container.dart';
|
|
|
|
import 'package:flutter/src/widgets/framework.dart';
|
2023-01-19 05:21:12 +00:00
|
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
|
|
import 'package:unit2/theme-data.dart/colors.dart';
|
|
|
|
import 'package:unit2/utils/global.dart';
|
2023-01-18 07:54:44 +00:00
|
|
|
|
|
|
|
class UniTSplashScreen extends StatelessWidget {
|
|
|
|
const UniTSplashScreen({super.key});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2023-01-23 03:02:59 +00:00
|
|
|
return Container(
|
|
|
|
height: MediaQuery.of(context).size.height,
|
|
|
|
color: Colors.white,
|
|
|
|
child: Center(
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
SlideInUp(
|
|
|
|
from: 50,
|
|
|
|
duration: const Duration(milliseconds: 300),
|
|
|
|
child: SvgPicture.asset(
|
|
|
|
'assets/svgs/logo.svg',
|
|
|
|
height: blockSizeVertical * 12.0,
|
|
|
|
allowDrawingOutsideViewBox: true,
|
|
|
|
color: primary,
|
|
|
|
),
|
2023-01-19 05:21:12 +00:00
|
|
|
),
|
2023-01-23 03:02:59 +00:00
|
|
|
const SizedBox(
|
|
|
|
height: 12,
|
|
|
|
),
|
|
|
|
SlideInDown(
|
|
|
|
from: 100,
|
|
|
|
duration: const Duration(milliseconds: 200),
|
|
|
|
child: Text("uniT-App",
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: blockSizeVertical * 4,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
letterSpacing: .2,
|
|
|
|
height: 1,
|
|
|
|
color: Colors.black)),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
2023-01-19 05:21:12 +00:00
|
|
|
),
|
|
|
|
);
|
2023-01-18 07:54:44 +00:00
|
|
|
}
|
2023-01-19 05:21:12 +00:00
|
|
|
}
|