Compare commits

..

No commits in common. "f6a466872f1f60f00aeed6661a2c6e23876fc5b1" and "a5a6133a40bbbdc2d212cc775152b1580223f4c4" have entirely different histories.

2 changed files with 25 additions and 40 deletions

View File

@ -4,9 +4,6 @@ import 'package:drifter/pages/main_screen/main_screen_widget.dart';
import 'package:drifter/theme/app_colors.dart'; import 'package:drifter/theme/app_colors.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import '../../utilities/assets.dart';
class Splash extends StatefulWidget { class Splash extends StatefulWidget {
const Splash({super.key}); const Splash({super.key});
@ -30,42 +27,30 @@ class _SplashState extends State<Splash> {
return Scaffold( return Scaffold(
backgroundColor: AppColors.background, backgroundColor: AppColors.background,
body: Center( body: Center(
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
const SizedBox( const SizedBox(
height: 200, height: 300,
), ),
SvgPicture.asset( Image.asset(
Assets.svg.drifterIcon, 'assets/images/logo/drifter_vector.png',
height: 150, height: 111,
width: 150, width: 93,
), ),
const SizedBox( const SizedBox(
height: 10, height: 250,
), ),
const Text( if (Platform.isAndroid)
"Drifter", const CircularProgressIndicator(
style: TextStyle( color: AppColors.mainAccent,
color: AppColors.mainAccent, )
fontSize: 50, else
fontWeight: FontWeight.bold, const CupertinoActivityIndicator(
), radius: 20,
), )
const SizedBox( ],
height: 250, )),
),
if (Platform.isAndroid)
const CircularProgressIndicator(
color: AppColors.mainAccent,
)
else
const CupertinoActivityIndicator(
radius: 20,
)
],
),
),
); );
} }
} }

View File

@ -63,7 +63,7 @@ flutter:
# To add assets to your application, add an assets section, like this: # To add assets to your application, add an assets section, like this:
assets: assets:
- assets/images - assets/
# - images/a_dot_ham.jpeg # - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see # An image asset can refer to one or more resolution-specific "variants", see