forked from alexvasl/drifter_app
added drifter image and app name to splash
This commit is contained in:
parent
795afcb0f4
commit
f6a466872f
@ -4,6 +4,9 @@ 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});
|
||||||
@ -27,30 +30,42 @@ 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: 300,
|
height: 200,
|
||||||
),
|
),
|
||||||
Image.asset(
|
SvgPicture.asset(
|
||||||
'assets/images/logo/drifter_vector.png',
|
Assets.svg.drifterIcon,
|
||||||
height: 111,
|
height: 150,
|
||||||
width: 93,
|
width: 150,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 250,
|
height: 10,
|
||||||
),
|
),
|
||||||
if (Platform.isAndroid)
|
const Text(
|
||||||
const CircularProgressIndicator(
|
"Drifter",
|
||||||
color: AppColors.mainAccent,
|
style: TextStyle(
|
||||||
)
|
color: AppColors.mainAccent,
|
||||||
else
|
fontSize: 50,
|
||||||
const CupertinoActivityIndicator(
|
fontWeight: FontWeight.bold,
|
||||||
radius: 20,
|
),
|
||||||
)
|
),
|
||||||
],
|
const SizedBox(
|
||||||
)),
|
height: 250,
|
||||||
|
),
|
||||||
|
if (Platform.isAndroid)
|
||||||
|
const CircularProgressIndicator(
|
||||||
|
color: AppColors.mainAccent,
|
||||||
|
)
|
||||||
|
else
|
||||||
|
const CupertinoActivityIndicator(
|
||||||
|
radius: 20,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user