103 lines
3.0 KiB
Dart
103 lines
3.0 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:get/get.dart';
|
|
|
|
import '../../util/util.dart';
|
|
import 'logic.dart';
|
|
|
|
class SplashPage extends StatelessWidget {
|
|
SplashPage() : super();
|
|
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return GetBuilder<SplashLogic>(builder: (logic) {
|
|
return Container(
|
|
decoration: BoxDecoration(
|
|
image: DecorationImage(
|
|
image: AssetImage('assets/images/base/launch_image.webp'),
|
|
fit: BoxFit.cover,
|
|
),
|
|
),
|
|
child: Scaffold(
|
|
backgroundColor: Colors.transparent,
|
|
body: Stack(
|
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
children: [
|
|
Positioned(
|
|
top: 117.sp,
|
|
left: 37.sp,
|
|
child: Row(children: [
|
|
Center(
|
|
child: Image.asset(getBaseImage("ic_launcher"),width: 100.sp,height: 100.sp,),
|
|
),
|
|
Column(children: [
|
|
Center(
|
|
child: Image.asset(getLoginImage("icon_logo_name"),width: 203.sp,),
|
|
),
|
|
|
|
Center(
|
|
child: Text(
|
|
'小众圈子的快乐家园',
|
|
style: TextStyle(
|
|
color: const Color(0xCCFFFFFF),
|
|
fontSize: 20.sp,
|
|
// shadows: [
|
|
// Shadow(
|
|
// color: Color(0xFFC92BFF),
|
|
// offset: Offset(0, 1.2),
|
|
// blurRadius: 3.0,
|
|
// ),
|
|
// ],
|
|
),
|
|
),
|
|
),
|
|
],)
|
|
],)),
|
|
|
|
|
|
Positioned(
|
|
bottom: 74.sp,
|
|
left: 0,
|
|
right: 0,
|
|
child: Center(
|
|
child: Text(
|
|
'总有一个小众圈子适合你',
|
|
style: TextStyle(
|
|
fontSize: 24.sp,
|
|
color: Color(0xFF02FCFB), // Set the default text color
|
|
),
|
|
),
|
|
),
|
|
),
|
|
|
|
],),),
|
|
);
|
|
});
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
class GradientText extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ShaderMask(
|
|
shaderCallback: (Rect bounds) {
|
|
return LinearGradient(
|
|
begin: Alignment.topCenter,
|
|
end: Alignment.bottomCenter,
|
|
colors: [Color(0xFF0AEBED), Color(0xFFE62CFF)],
|
|
).createShader(bounds);
|
|
},
|
|
child: Text(
|
|
'总有一个小众圈子适合你',
|
|
style: TextStyle(
|
|
fontSize: 24,
|
|
color: Color(0xFF02FCFB), // Set the default text color
|
|
),
|
|
),
|
|
);
|
|
}
|
|
} |