bug : fixed
This commit is contained in:
@@ -102,7 +102,7 @@ class AttendanceScreen extends StatelessWidget {
|
||||
icon: "assets/images/login.svg",
|
||||
label: "تسجيل الدخول",
|
||||
onTap: () {
|
||||
// Navigate to LoginAnimationScreen with success state
|
||||
// Navigate to LoginAnimationScreen with error state
|
||||
Navigator.of(context).push(
|
||||
MaterialPageRoute(
|
||||
builder:
|
||||
@@ -148,7 +148,7 @@ class AttendanceScreen extends StatelessWidget {
|
||||
icon: "assets/images/logout.svg",
|
||||
label: "تسجيل خروج",
|
||||
onTap: () {
|
||||
// Navigate to LoginAnimationScreen with success state
|
||||
// Navigate to LoginAnimationScreen with error state
|
||||
Navigator.of(context).push(
|
||||
MaterialPageRoute(
|
||||
builder:
|
||||
|
||||
@@ -104,29 +104,26 @@ class _LoginAnimationScreenState extends State<LoginAnimationScreen>
|
||||
);
|
||||
} else if (widget.isSuccess) {
|
||||
// Success state - tick mark
|
||||
return SvgPicture.asset(
|
||||
"assets/images/tick.svg",
|
||||
return Image.asset(
|
||||
"assets/images/tick.png",
|
||||
key: const ValueKey('success'),
|
||||
width: 70,
|
||||
height: 70,
|
||||
placeholderBuilder: (context) => Icon(
|
||||
Icons.check_circle,
|
||||
size: 70,
|
||||
color: const Color(0xFF32C59A),
|
||||
),
|
||||
width: 120,
|
||||
height: 120,
|
||||
fit: BoxFit.contain,
|
||||
// placeholderBuilder: (context) => Icon(
|
||||
// Icons.check_circle,
|
||||
// size: 70,
|
||||
// color: const Color(0xFF32C59A),
|
||||
// ),
|
||||
);
|
||||
} else {
|
||||
// Error state - error icon
|
||||
return SvgPicture.asset(
|
||||
"assets/images/error.svg",
|
||||
return Image.asset(
|
||||
"assets/images/error.png",
|
||||
key: const ValueKey('error'),
|
||||
width: 70,
|
||||
height: 70,
|
||||
placeholderBuilder: (context) => Icon(
|
||||
Icons.error,
|
||||
size: 70,
|
||||
color: Colors.red,
|
||||
),
|
||||
width: 120,
|
||||
height: 120,
|
||||
fit: BoxFit.contain,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user