Version propre - Dashboard enhanced
This commit is contained in:
@@ -59,14 +59,18 @@ class _LoginFormState extends State<LoginForm>
|
||||
);
|
||||
|
||||
_fieldAnimations = List.generate(4, (index) {
|
||||
// Calcul sécurisé pour éviter end > 1.0
|
||||
final start = index * 0.15; // Réduit l'espacement
|
||||
final end = (start + 0.4).clamp(0.0, 1.0); // Assure end <= 1.0
|
||||
|
||||
return Tween<Offset>(
|
||||
begin: const Offset(0, 1),
|
||||
end: Offset.zero,
|
||||
).animate(CurvedAnimation(
|
||||
parent: _fieldAnimationController,
|
||||
curve: Interval(
|
||||
index * 0.2,
|
||||
(index * 0.2) + 0.6,
|
||||
start,
|
||||
end,
|
||||
curve: Curves.easeOut,
|
||||
),
|
||||
));
|
||||
@@ -330,13 +334,13 @@ class _LoginFormState extends State<LoginForm>
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(4),
|
||||
border: Border.all(
|
||||
color: widget.rememberMe
|
||||
? AppTheme.primaryColor
|
||||
color: widget.rememberMe
|
||||
? AppTheme.primaryColor
|
||||
: AppTheme.textSecondary,
|
||||
width: 2,
|
||||
),
|
||||
color: widget.rememberMe
|
||||
? AppTheme.primaryColor
|
||||
color: widget.rememberMe
|
||||
? AppTheme.primaryColor
|
||||
: Colors.transparent,
|
||||
),
|
||||
child: widget.rememberMe
|
||||
@@ -348,12 +352,15 @@ class _LoginFormState extends State<LoginForm>
|
||||
: null,
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Text(
|
||||
'Se souvenir de moi',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
color: AppTheme.textSecondary,
|
||||
fontWeight: FontWeight.w500,
|
||||
Flexible(
|
||||
child: Text(
|
||||
'Se souvenir de moi',
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
color: AppTheme.textSecondary,
|
||||
fontWeight: FontWeight.w500,
|
||||
),
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user