Co-authored-by: eddgranados12 <eddgranados12@users.noreply.github.com>
Co-authored-by: MENDOZA BALLARDO GAEL RICARDO <gael-meb123@users.noreply.github.com> Co-authored-by: Azareth-Tr <Azareth-Tr@users.noreply.github.com> modificacion de vistas panel admin, login, animaciones y implementacion de mascota
This commit is contained in:
31
recolecta_app/lib/features/auth/widgets/video_mascot.dart
Normal file
31
recolecta_app/lib/features/auth/widgets/video_mascot.dart
Normal file
@@ -0,0 +1,31 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class VideoMascot extends StatelessWidget {
|
||||
final double size;
|
||||
|
||||
const VideoMascot({super.key, this.size = 108});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
width: size,
|
||||
height: size,
|
||||
decoration: BoxDecoration(
|
||||
shape: BoxShape.circle,
|
||||
color: Colors.white.withValues(alpha: 0.1),
|
||||
),
|
||||
clipBehavior: Clip.hardEdge,
|
||||
// Cargamos el archivo como GIF
|
||||
child: Image.asset(
|
||||
'assets/animations/blink_saludo.gif',
|
||||
fit: BoxFit.cover,
|
||||
errorBuilder: (context, error, stackTrace) {
|
||||
// Plan B: si el archivo no existe o hay error, mostramos la huellita
|
||||
return const Center(
|
||||
child: Icon(Icons.pets, color: Colors.white, size: 48),
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user