added some images + some fixes to the login_animation screen

This commit is contained in:
Daniah Ayad Al-sultani
2025-12-03 15:59:23 +03:00
parent 4123e43417
commit f6dacd9a1a
7 changed files with 144 additions and 125 deletions

View File

@@ -105,10 +105,11 @@ class AttendanceScreen extends StatelessWidget {
// Navigate to LoginAnimationScreen with success state
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => LoginAnimationScreen(
isLogin: true,
isSuccess: true, // Set to true for success, false for error
),
builder:
(context) => LoginAnimationScreen(
isLogin: true,
isSuccess: true,
),
),
);
},
@@ -124,24 +125,24 @@ class AttendanceScreen extends StatelessWidget {
shadow: const [
// Strong BLACK shadow bottom-right
BoxShadow(
color: Color(0xABCECECE),
blurRadius: 5,
spreadRadius: 3,
offset: Offset(-6, -6),
),
color: Color(0xABCECECE),
blurRadius: 5,
spreadRadius: 3,
offset: Offset(-6, -6),
),
// LIGHT GLOBAL GLOW
BoxShadow(
color: Color(0x92014221),
blurRadius: 10,
offset: Offset(-5, -5),
),
BoxShadow(
color: Color(0x7D1A1A1A),
blurRadius: 10,
spreadRadius: 3,
offset: Offset(5, 5),
),
// LIGHT GLOBAL GLOW
BoxShadow(
color: Color(0x92014221),
blurRadius: 10,
offset: Offset(-5, -5),
),
BoxShadow(
color: Color(0x7D1A1A1A),
blurRadius: 10,
spreadRadius: 3,
offset: Offset(5, 5),
),
],
child: _FingerButton(
icon: "assets/images/logout.svg",
@@ -150,10 +151,11 @@ class AttendanceScreen extends StatelessWidget {
// Navigate to LoginAnimationScreen with success state
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => LoginAnimationScreen(
isLogin: false,
isSuccess: true, // Set to true for success, false for error
),
builder:
(context) => LoginAnimationScreen(
isLogin: true,
isSuccess: false,
),
),
);
},
@@ -200,7 +202,7 @@ class _FingerButton extends StatelessWidget {
final VoidCallback onTap; // Added onTap callback
const _FingerButton({
required this.icon,
required this.icon,
required this.label,
required this.onTap, // Added this parameter
});
@@ -234,4 +236,4 @@ class _FingerButton extends StatelessWidget {
),
);
}
}
}