feat: add device authentication, place gates support, and PiP navigation features
This commit is contained in:
@@ -22,10 +22,10 @@ class _SplashViewState extends State<SplashView> with SingleTickerProviderStateM
|
||||
super.initState();
|
||||
_animController = AnimationController(
|
||||
vsync: this,
|
||||
duration: const Duration(milliseconds: 1400),
|
||||
duration: const Duration(milliseconds: 1500),
|
||||
);
|
||||
|
||||
_scaleAnimation = Tween<double>(begin: 0.85, end: 1.0).animate(
|
||||
_scaleAnimation = Tween<double>(begin: 0.88, end: 1.0).animate(
|
||||
CurvedAnimation(parent: _animController, curve: Curves.easeOutCubic),
|
||||
);
|
||||
|
||||
@@ -35,7 +35,7 @@ class _SplashViewState extends State<SplashView> with SingleTickerProviderStateM
|
||||
|
||||
_animController.forward();
|
||||
|
||||
Future.delayed(const Duration(milliseconds: 2400), () async {
|
||||
Future.delayed(const Duration(milliseconds: 2800), () async {
|
||||
if (mounted) {
|
||||
final prefs = await SharedPreferences.getInstance();
|
||||
final hasSeen = prefs.getBool('has_seen_onboarding') ?? false;
|
||||
@@ -70,91 +70,189 @@ class _SplashViewState extends State<SplashView> with SingleTickerProviderStateM
|
||||
opacity: _fadeAnimation,
|
||||
child: ScaleTransition(
|
||||
scale: _scaleAnimation,
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
// Luxury Emblem Container
|
||||
Container(
|
||||
width: 108,
|
||||
height: 108,
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.pureWhite,
|
||||
borderRadius: BorderRadius.circular(30),
|
||||
boxShadow: const [
|
||||
BoxShadow(
|
||||
color: Color(0x1F0071E3),
|
||||
blurRadius: 36,
|
||||
offset: Offset(0, 12),
|
||||
child: SingleChildScrollView(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 20),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
// Luxury Uruk Emblem Container
|
||||
Container(
|
||||
width: 114,
|
||||
height: 114,
|
||||
decoration: BoxDecoration(
|
||||
color: const Color(0xFF131722),
|
||||
borderRadius: BorderRadius.circular(32),
|
||||
border: Border.all(
|
||||
color: AppColors.urukGold.withValues(alpha: 0.35),
|
||||
width: 1.5,
|
||||
),
|
||||
BoxShadow(
|
||||
color: Color(0x14000000),
|
||||
blurRadius: 20,
|
||||
offset: Offset(0, 4),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: AppColors.urukGold.withValues(alpha: 0.22),
|
||||
blurRadius: 36,
|
||||
offset: const Offset(0, 14),
|
||||
),
|
||||
const BoxShadow(
|
||||
color: Color(0x24000000),
|
||||
blurRadius: 20,
|
||||
offset: Offset(0, 6),
|
||||
),
|
||||
],
|
||||
),
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(30),
|
||||
child: Image.asset(
|
||||
'assets/images/siro_uruk_logo.png',
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
],
|
||||
),
|
||||
child: ClipRRect(
|
||||
borderRadius: BorderRadius.circular(30),
|
||||
child: Image.asset(
|
||||
'assets/images/siro_maps_logo.png',
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 24),
|
||||
// App Title
|
||||
Text(
|
||||
'خرائط سيرو',
|
||||
style: GoogleFonts.alexandria(
|
||||
fontSize: 28,
|
||||
fontWeight: FontWeight.w800,
|
||||
color: AppColors.textPrimary,
|
||||
letterSpacing: -0.5,
|
||||
const SizedBox(height: 24),
|
||||
// App Title
|
||||
Text(
|
||||
'خرائط أوروك',
|
||||
style: GoogleFonts.alexandria(
|
||||
fontSize: 28,
|
||||
fontWeight: FontWeight.w800,
|
||||
color: AppColors.textPrimary,
|
||||
letterSpacing: -0.5,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 6),
|
||||
// Subtitle
|
||||
Text(
|
||||
'Siro Maps • منظومة السيادة المكانية',
|
||||
style: GoogleFonts.alexandria(
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColors.textMuted,
|
||||
const SizedBox(height: 6),
|
||||
// Subtitle
|
||||
Text(
|
||||
'Uruk Map • منظومة الملاحة والسيادة المكانية',
|
||||
style: GoogleFonts.alexandria(
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: AppColors.textSecondary,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 32),
|
||||
// Pill Version Badge
|
||||
Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 6),
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.surfaceMuted,
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
border: Border.all(color: AppColors.borderSubtle),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Container(
|
||||
width: 7,
|
||||
height: 7,
|
||||
decoration: const BoxDecoration(
|
||||
color: AppColors.tacticalEmerald,
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
const SizedBox(height: 26),
|
||||
|
||||
// Official Uruk International Prize Award Badge
|
||||
Container(
|
||||
constraints: const BoxConstraints(maxWidth: 340),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 11),
|
||||
decoration: BoxDecoration(
|
||||
gradient: const LinearGradient(
|
||||
colors: [
|
||||
Color(0xFFFFFDF7),
|
||||
Color(0xFFFFF6D8),
|
||||
],
|
||||
begin: Alignment.topRight,
|
||||
end: Alignment.bottomLeft,
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Text(
|
||||
'🇯🇴 سيادة مكانية 100% • v2.4 PRO',
|
||||
style: GoogleFonts.alexandria(
|
||||
fontSize: 11,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: AppColors.textSecondary,
|
||||
borderRadius: BorderRadius.circular(18),
|
||||
border: Border.all(color: AppColors.urukGoldBorder, width: 1.2),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: AppColors.urukGold.withValues(alpha: 0.14),
|
||||
blurRadius: 22,
|
||||
offset: const Offset(0, 8),
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Container(
|
||||
width: 44,
|
||||
height: 44,
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
color: AppColors.pureWhite,
|
||||
border: Border.all(
|
||||
color: AppColors.urukGold.withValues(alpha: 0.4),
|
||||
width: 1.2,
|
||||
),
|
||||
),
|
||||
child: ClipOval(
|
||||
child: Image.asset(
|
||||
'assets/images/uruk_prize_logo.png',
|
||||
fit: BoxFit.contain,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 12),
|
||||
Flexible(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
const Icon(
|
||||
Icons.workspace_premium_rounded,
|
||||
size: 16,
|
||||
color: AppColors.urukGoldDark,
|
||||
),
|
||||
const SizedBox(width: 4),
|
||||
Flexible(
|
||||
child: Text(
|
||||
'الحائز على جائزة أوروك الدولية',
|
||||
style: GoogleFonts.alexandria(
|
||||
fontSize: 12,
|
||||
fontWeight: FontWeight.w700,
|
||||
color: AppColors.urukGoldDark,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 2),
|
||||
Text(
|
||||
'مشروع منبثق عن برنامج جوائز أوروك للسيادة الرقمية',
|
||||
style: GoogleFonts.alexandria(
|
||||
fontSize: 10,
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColors.textSecondary,
|
||||
),
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
const SizedBox(height: 28),
|
||||
// Regional Sovereignty Pill Badge
|
||||
Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 6),
|
||||
decoration: BoxDecoration(
|
||||
color: AppColors.surfaceMuted,
|
||||
borderRadius: BorderRadius.circular(20),
|
||||
border: Border.all(color: AppColors.borderSubtle),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Container(
|
||||
width: 7,
|
||||
height: 7,
|
||||
decoration: const BoxDecoration(
|
||||
color: AppColors.tacticalEmerald,
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Text(
|
||||
'🌍 شبكة ملاحة إقليمية مستقلة • v2.4 PRO',
|
||||
style: GoogleFonts.alexandria(
|
||||
fontSize: 11,
|
||||
fontWeight: FontWeight.w600,
|
||||
color: AppColors.textSecondary,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user