From f6a466872f1f60f00aeed6661a2c6e23876fc5b1 Mon Sep 17 00:00:00 2001 From: ryleedavis Date: Fri, 12 May 2023 13:29:44 -0600 Subject: [PATCH] added drifter image and app name to splash --- lib/pages/splash_screen/splash_screen.dart | 63 +++++++++++++--------- 1 file changed, 39 insertions(+), 24 deletions(-) diff --git a/lib/pages/splash_screen/splash_screen.dart b/lib/pages/splash_screen/splash_screen.dart index 1e7a69f..ec8f03c 100644 --- a/lib/pages/splash_screen/splash_screen.dart +++ b/lib/pages/splash_screen/splash_screen.dart @@ -4,6 +4,9 @@ import 'package:drifter/pages/main_screen/main_screen_widget.dart'; import 'package:drifter/theme/app_colors.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; +import 'package:flutter_svg/svg.dart'; + +import '../../utilities/assets.dart'; class Splash extends StatefulWidget { const Splash({super.key}); @@ -27,30 +30,42 @@ class _SplashState extends State { return Scaffold( backgroundColor: AppColors.background, body: Center( - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - const SizedBox( - height: 300, - ), - Image.asset( - 'assets/images/logo/drifter_vector.png', - height: 111, - width: 93, - ), - const SizedBox( - height: 250, - ), - if (Platform.isAndroid) - const CircularProgressIndicator( - color: AppColors.mainAccent, - ) - else - const CupertinoActivityIndicator( - radius: 20, - ) - ], - )), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const SizedBox( + height: 200, + ), + SvgPicture.asset( + Assets.svg.drifterIcon, + height: 150, + width: 150, + ), + const SizedBox( + height: 10, + ), + const Text( + "Drifter", + style: TextStyle( + color: AppColors.mainAccent, + fontSize: 50, + fontWeight: FontWeight.bold, + ), + ), + const SizedBox( + height: 250, + ), + if (Platform.isAndroid) + const CircularProgressIndicator( + color: AppColors.mainAccent, + ) + else + const CupertinoActivityIndicator( + radius: 20, + ) + ], + ), + ), ); } }