removed the logo blinking animation in login page

This commit is contained in:
asif
2025-08-23 23:34:15 +05:30
parent 04c992c934
commit cf8588b336

View File

@@ -23,23 +23,9 @@ class LoginScreenState extends State<LoginScreen>
final _passwordController = TextEditingController(); final _passwordController = TextEditingController();
bool _obscurePassword = true; bool _obscurePassword = true;
//bool _showWelcome = true; //bool _showWelcome = true;
late AnimationController _logoController;
late Animation<double> _logoAnimation;
@override
void initState() {
super.initState();
_logoController = AnimationController(
vsync: this,
duration: const Duration(seconds: 1),
)..repeat(reverse: true);
_logoAnimation = Tween<double>(begin: 0.2, end: 1).animate(_logoController);
}
@override @override
void dispose() { void dispose() {
_logoController.dispose();
_customerNumberController.dispose(); _customerNumberController.dispose();
_passwordController.dispose(); _passwordController.dispose();
super.dispose(); super.dispose();
@@ -103,20 +89,17 @@ class LoginScreenState extends State<LoginScreen>
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
// 🔁 Animated Blinking Logo // 🔁 Animated Blinking Logo
FadeTransition( Image.asset(
opacity: _logoAnimation, 'assets/images/logo.png',
child: Image.asset( width: 150,
'assets/images/logo.png', height: 150,
width: 150, errorBuilder: (context, error, stackTrace) {
height: 150, return Icon(
errorBuilder: (context, error, stackTrace) { Icons.account_balance,
return Icon( size: 100,
Icons.account_balance, color: Theme.of(context).primaryColor,
size: 100, );
color: Theme.of(context).primaryColor, },
);
},
),
), ),
const SizedBox(height: 16), const SizedBox(height: 16),
// Title // Title