bug : fixed
This commit is contained in:
@@ -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