another commit

This commit is contained in:
kicap1992
2022-06-08 06:03:46 +08:00
commit 330bfdeadb
60 changed files with 9627 additions and 0 deletions

38
lib/splashScreen.dart Normal file
View File

@ -0,0 +1,38 @@
// ignore_for_file: file_names
import 'package:flutter/material.dart';
class SplashScreen extends StatelessWidget {
const SplashScreen({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height,
//decoration to gradient
decoration: const BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [
Color.fromARGB(255, 199, 214, 234),
Color.fromARGB(255, 104, 164, 164),
Color.fromARGB(255, 4, 103, 103),
Color.fromARGB(255, 2, 72, 72),
],
),
),
//put logo image in center
child: Center(
child: Image.asset(
'assets/logo.png',
width: MediaQuery.of(context).size.width / 2,
height: MediaQuery.of(context).size.height / 2,
),
),
),
);
}
}