From cf8588b336ec4d9af9265b429bc940c6dabe44ad Mon Sep 17 00:00:00 2001 From: asif Date: Sat, 23 Aug 2025 23:34:15 +0530 Subject: [PATCH] removed the logo blinking animation in login page --- lib/features/auth/screens/login_screen.dart | 39 ++++++--------------- 1 file changed, 11 insertions(+), 28 deletions(-) diff --git a/lib/features/auth/screens/login_screen.dart b/lib/features/auth/screens/login_screen.dart index 1df4911..0118ff4 100644 --- a/lib/features/auth/screens/login_screen.dart +++ b/lib/features/auth/screens/login_screen.dart @@ -23,23 +23,9 @@ class LoginScreenState extends State final _passwordController = TextEditingController(); bool _obscurePassword = true; //bool _showWelcome = true; - late AnimationController _logoController; - late Animation _logoAnimation; - - @override - void initState() { - super.initState(); - _logoController = AnimationController( - vsync: this, - duration: const Duration(seconds: 1), - )..repeat(reverse: true); - - _logoAnimation = Tween(begin: 0.2, end: 1).animate(_logoController); - } @override void dispose() { - _logoController.dispose(); _customerNumberController.dispose(); _passwordController.dispose(); super.dispose(); @@ -103,20 +89,17 @@ class LoginScreenState extends State mainAxisAlignment: MainAxisAlignment.center, children: [ // 🔁 Animated Blinking Logo - FadeTransition( - opacity: _logoAnimation, - child: Image.asset( - 'assets/images/logo.png', - width: 150, - height: 150, - errorBuilder: (context, error, stackTrace) { - return Icon( - Icons.account_balance, - size: 100, - color: Theme.of(context).primaryColor, - ); - }, - ), + Image.asset( + 'assets/images/logo.png', + width: 150, + height: 150, + errorBuilder: (context, error, stackTrace) { + return Icon( + Icons.account_balance, + size: 100, + color: Theme.of(context).primaryColor, + ); + }, ), const SizedBox(height: 16), // Title