|
|
|
@ -1,12 +1,14 @@
|
|
|
|
|
import 'dart:io';
|
|
|
|
|
|
|
|
|
|
import 'package:aku_community/const/resource.dart';
|
|
|
|
|
import 'package:aku_community/main_initialize.dart';
|
|
|
|
|
import 'package:aku_community/pages/setting_page/agreement_page/agreement_page.dart';
|
|
|
|
|
import 'package:aku_community/pages/setting_page/agreement_page/privacy_page.dart';
|
|
|
|
|
import 'package:aku_community/pages/tab_navigator.dart';
|
|
|
|
|
import 'package:aku_community/provider/app_provider.dart';
|
|
|
|
|
import 'package:aku_community/provider/user_provider.dart';
|
|
|
|
|
import 'package:aku_community/utils/developer_util.dart';
|
|
|
|
|
import 'package:aku_community/utils/headers.dart';
|
|
|
|
|
import 'package:aku_community/utils/hive_store.dart';
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/foundation.dart';
|
|
|
|
@ -19,11 +21,6 @@ import 'package:hive_flutter/hive_flutter.dart';
|
|
|
|
|
import 'package:permission_handler/permission_handler.dart';
|
|
|
|
|
import 'package:power_logger/power_logger.dart';
|
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
import 'package:velocity_x/velocity_x.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:aku_community/utils/headers.dart';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SplashPage extends StatefulWidget {
|
|
|
|
|
SplashPage({Key? key}) : super(key: key);
|
|
|
|
@ -132,48 +129,52 @@ class _SplashPageState extends State<SplashPage> {
|
|
|
|
|
await Permission.locationWhenInUse.request();
|
|
|
|
|
}
|
|
|
|
|
await _initOp();
|
|
|
|
|
MainInitialize.initTheme();
|
|
|
|
|
MainInitialize.initWechat();
|
|
|
|
|
MainInitialize.initWebSocket();
|
|
|
|
|
Get.offAll(() => TabNavigator());
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Scaffold(
|
|
|
|
|
body: Container(
|
|
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
child: Stack(
|
|
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
Align(
|
|
|
|
|
alignment: Alignment.topCenter,
|
|
|
|
|
child:
|
|
|
|
|
Row(
|
|
|
|
|
child: Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
|
|
Text('追\n求',style: TextStyle(color:Color(0xFF000000),fontSize: 40.sp,height: 1.15),),
|
|
|
|
|
Text(
|
|
|
|
|
'追\n求',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Color(0xFF000000),
|
|
|
|
|
fontSize: 40.sp,
|
|
|
|
|
height: 1.15),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
margin: EdgeInsets.only(top: 450.w),
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
|
25.wb,
|
|
|
|
|
Container(
|
|
|
|
|
child:
|
|
|
|
|
Column(
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
|
|
Text('更\n便\n捷\n的\n生\n活\n方\n程\n式',style: TextStyle(color:Color(0xFF000000),fontSize: 40.sp,height: 1.15),),
|
|
|
|
|
|
|
|
|
|
Text(
|
|
|
|
|
'更\n便\n捷\n的\n生\n活\n方\n程\n式',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Color(0xFF000000),
|
|
|
|
|
fontSize: 40.sp,
|
|
|
|
|
height: 1.15),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
margin: EdgeInsets.only(top: 530.w),
|
|
|
|
@ -190,15 +191,48 @@ class _SplashPageState extends State<SplashPage> {
|
|
|
|
|
borderRadius: BorderRadius.circular(2.w),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
)),
|
|
|
|
|
Positioned(
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
R.ASSETS_IMAGES_CIRCLE_TEXT_PNG,
|
|
|
|
|
width: 61.w,
|
|
|
|
|
height: 72.w,
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
),
|
|
|
|
|
top: 410.w,
|
|
|
|
|
left: 275.w,
|
|
|
|
|
),
|
|
|
|
|
Positioned(
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
R.ASSETS_IMAGES_CIRCLE_RIGHT_TOP_PNG,
|
|
|
|
|
width: 185.w,
|
|
|
|
|
height: 249.w,
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
),
|
|
|
|
|
top: 0.w,
|
|
|
|
|
right: 0.w,
|
|
|
|
|
),
|
|
|
|
|
Positioned(
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
R.ASSETS_IMAGES_CIRCLE_LEFT_BOTTOM_PNG,
|
|
|
|
|
width: 270.w,
|
|
|
|
|
height: 504.w,
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
),
|
|
|
|
|
bottom: 224.w,
|
|
|
|
|
left: 0.w,
|
|
|
|
|
),
|
|
|
|
|
Positioned(
|
|
|
|
|
child: Image.asset(
|
|
|
|
|
R.ASSETS_IMAGES_CIRCLE_RIGHT_BOTTOM_PNG,
|
|
|
|
|
width: 88.w,
|
|
|
|
|
height: 180.w,
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
),
|
|
|
|
|
bottom: 150.w,
|
|
|
|
|
right: 0.w,
|
|
|
|
|
),
|
|
|
|
|
Positioned(child: Image.asset(R.ASSETS_IMAGES_CIRCLE_TEXT_PNG,width: 61.w,height: 72.w,fit: BoxFit.fill,),top: 410.w,left: 275.w,),
|
|
|
|
|
Positioned(child: Image.asset(R.ASSETS_IMAGES_CIRCLE_RIGHT_TOP_PNG,width: 185.w,height: 249.w,fit: BoxFit.fill,),top: 0.w,right: 0.w,),
|
|
|
|
|
Positioned(child: Image.asset(R.ASSETS_IMAGES_CIRCLE_LEFT_BOTTOM_PNG,width: 270.w,height: 504.w,fit: BoxFit.fill,),bottom: 224.w,left: 0.w,),
|
|
|
|
|
Positioned(child: Image.asset(R.ASSETS_IMAGES_CIRCLE_RIGHT_BOTTOM_PNG,width: 88.w,height: 180.w,fit: BoxFit.fill,),bottom: 150.w,right: 0.w,),
|
|
|
|
|
Align(
|
|
|
|
|
alignment: Alignment.bottomCenter,
|
|
|
|
|
child: Container(
|
|
|
|
@ -207,11 +241,20 @@ class _SplashPageState extends State<SplashPage> {
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
children: [
|
|
|
|
|
Image.asset(R.ASSETS_IMAGES_SPLASH_LOGO_PNG,width: 140.w,height: 140.w,fit: BoxFit.fill,),
|
|
|
|
|
|
|
|
|
|
Text('小蜜蜂智慧社区',style: TextStyle(color:Color(0xD9000000),fontSize: 32.sp,fontWeight: FontWeight.bold),),
|
|
|
|
|
Image.asset(
|
|
|
|
|
R.ASSETS_IMAGES_SPLASH_LOGO_PNG,
|
|
|
|
|
width: 140.w,
|
|
|
|
|
height: 140.w,
|
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
'小蜜蜂智慧社区',
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
color: Color(0xD9000000),
|
|
|
|
|
fontSize: 32.sp,
|
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|