simulacion de estados y flujo de notificacion, modificacion de estilos en todas las vistas
This commit is contained in:
@@ -2,6 +2,8 @@ import 'dart:math';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
|
||||
import '../auth/widgets/video_mascot.dart';
|
||||
|
||||
class SplashScreen extends StatefulWidget {
|
||||
const SplashScreen({super.key});
|
||||
|
||||
@@ -38,9 +40,10 @@ class _SplashScreenState extends State<SplashScreen>
|
||||
duration: const Duration(seconds: 6),
|
||||
)..repeat();
|
||||
|
||||
_logoScale = Tween<double>(begin: 0.2, end: 1.0).animate(
|
||||
CurvedAnimation(parent: _logoCtrl, curve: Curves.elasticOut),
|
||||
);
|
||||
_logoScale = Tween<double>(
|
||||
begin: 0.5,
|
||||
end: 1.0,
|
||||
).animate(CurvedAnimation(parent: _logoCtrl, curve: Curves.easeOutBack));
|
||||
_logoOpacity = Tween<double>(begin: 0.0, end: 1.0).animate(
|
||||
CurvedAnimation(
|
||||
parent: _logoCtrl,
|
||||
@@ -95,11 +98,7 @@ class _SplashScreenState extends State<SplashScreen>
|
||||
begin: Alignment.topLeft,
|
||||
end: Alignment.bottomRight,
|
||||
stops: [0.0, 0.55, 1.0],
|
||||
colors: [
|
||||
Color(0xFF0A4A38),
|
||||
Color(0xFF0F6E56),
|
||||
Color(0xFF1D9E75),
|
||||
],
|
||||
colors: [Color(0xFF4A0E26), Color(0xFF6D1234), Color(0xFF9B1B4A)],
|
||||
),
|
||||
),
|
||||
child: Stack(
|
||||
@@ -114,89 +113,83 @@ class _SplashScreenState extends State<SplashScreen>
|
||||
),
|
||||
|
||||
SafeArea(
|
||||
child: Column(
|
||||
children: [
|
||||
const Spacer(flex: 3),
|
||||
child: SizedBox(
|
||||
width: double.infinity,
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
const Spacer(flex: 3),
|
||||
|
||||
// Logo central
|
||||
ScaleTransition(
|
||||
scale: _logoScale,
|
||||
child: FadeTransition(
|
||||
opacity: _logoOpacity,
|
||||
child: Container(
|
||||
width: 118,
|
||||
height: 118,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withValues(alpha: 0.15),
|
||||
borderRadius: BorderRadius.circular(34),
|
||||
border: Border.all(
|
||||
color: Colors.white.withValues(alpha: 0.35),
|
||||
width: 2,
|
||||
// Logo central
|
||||
ScaleTransition(
|
||||
scale: _logoScale,
|
||||
child: FadeTransition(
|
||||
opacity: _logoOpacity,
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black.withValues(alpha: 0.2),
|
||||
blurRadius: 24,
|
||||
offset: const Offset(0, 8),
|
||||
),
|
||||
],
|
||||
),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black.withValues(alpha: 0.2),
|
||||
blurRadius: 24,
|
||||
offset: const Offset(0, 8),
|
||||
),
|
||||
],
|
||||
),
|
||||
child: const Icon(
|
||||
Icons.recycling_rounded,
|
||||
size: 64,
|
||||
color: Colors.white,
|
||||
child: const VideoMascot(size: 130, zoom: 6.5),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
const SizedBox(height: 36),
|
||||
const SizedBox(height: 36),
|
||||
|
||||
// Nombre de la app
|
||||
SlideTransition(
|
||||
position: _textSlide,
|
||||
child: FadeTransition(
|
||||
opacity: _textOpacity,
|
||||
child: const Text(
|
||||
'RecolectApp',
|
||||
// Nombre de la app
|
||||
SlideTransition(
|
||||
position: _textSlide,
|
||||
child: FadeTransition(
|
||||
opacity: _textOpacity,
|
||||
child: const Text(
|
||||
'RecolectApp',
|
||||
style: TextStyle(
|
||||
fontSize: 38,
|
||||
fontWeight: FontWeight.w800,
|
||||
color: Colors.white,
|
||||
letterSpacing: -1.0,
|
||||
height: 1.1,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
const SizedBox(height: 10),
|
||||
|
||||
// Subtítulo
|
||||
FadeTransition(
|
||||
opacity: _subtitleOpacity,
|
||||
child: Text(
|
||||
'Sistema de Recolección Inteligente',
|
||||
style: TextStyle(
|
||||
fontSize: 38,
|
||||
fontWeight: FontWeight.w800,
|
||||
color: Colors.white,
|
||||
letterSpacing: -1.0,
|
||||
height: 1.1,
|
||||
fontSize: 14,
|
||||
color: Colors.white.withValues(alpha: 0.8),
|
||||
letterSpacing: 0.4,
|
||||
fontWeight: FontWeight.w400,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
const SizedBox(height: 10),
|
||||
const Spacer(flex: 3),
|
||||
|
||||
// Subtítulo
|
||||
FadeTransition(
|
||||
opacity: _subtitleOpacity,
|
||||
child: Text(
|
||||
'Sistema de Recolección Inteligente',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
color: Colors.white.withValues(alpha: 0.8),
|
||||
letterSpacing: 0.4,
|
||||
fontWeight: FontWeight.w400,
|
||||
// Indicador de carga
|
||||
FadeTransition(
|
||||
opacity: _subtitleOpacity,
|
||||
child: const Padding(
|
||||
padding: EdgeInsets.only(bottom: 52),
|
||||
child: _DotsLoader(),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
const Spacer(flex: 3),
|
||||
|
||||
// Indicador de carga
|
||||
FadeTransition(
|
||||
opacity: _subtitleOpacity,
|
||||
child: const Padding(
|
||||
padding: EdgeInsets.only(bottom: 52),
|
||||
child: _DotsLoader(),
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user