removed the logo blinking animation in login page
This commit is contained in:
@@ -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,9 +89,7 @@ class LoginScreenState extends State<LoginScreen>
|
|||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
// 🔁 Animated Blinking Logo
|
// 🔁 Animated Blinking Logo
|
||||||
FadeTransition(
|
Image.asset(
|
||||||
opacity: _logoAnimation,
|
|
||||||
child: Image.asset(
|
|
||||||
'assets/images/logo.png',
|
'assets/images/logo.png',
|
||||||
width: 150,
|
width: 150,
|
||||||
height: 150,
|
height: 150,
|
||||||
@@ -117,7 +101,6 @@ class LoginScreenState extends State<LoginScreen>
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
// Title
|
// Title
|
||||||
Text(
|
Text(
|
||||||
|
Reference in New Issue
Block a user