Enhance Google and Apple sign-up methods to include name and firstname parameters

This commit is contained in:
Van Leemput Dayron
2025-11-06 11:28:18 +01:00
parent fa7daca50a
commit 75bdf591f3
6 changed files with 205 additions and 75 deletions

View File

@@ -6,11 +6,11 @@ class LoadingContent extends StatefulWidget {
final VoidCallback? onComplete;
const LoadingContent({
Key? key,
super.key,
this.onBackgroundTask,
this.loadingText = "Chargement en cours...",
this.onComplete,
}) : super(key: key);
});
@override
State<LoadingContent> createState() => _LoadingContentState();
@@ -57,7 +57,6 @@ class _LoadingContentState extends State<LoadingContent>
widget.onComplete!();
}
} catch (e) {
// Gérer les erreurs si nécessaire
print('Erreur lors de la tâche en arrière-plan: $e');
}
}
@@ -72,8 +71,11 @@ class _LoadingContentState extends State<LoadingContent>
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
final isDark = theme.brightness == Brightness.dark;
return Scaffold(
backgroundColor: Colors.white,
backgroundColor: theme.scaffoldBackgroundColor,
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
@@ -96,21 +98,21 @@ class _LoadingContentState extends State<LoadingContent>
shape: BoxShape.circle,
gradient: LinearGradient(
colors: [
Colors.blue.shade400,
Colors.purple.shade400,
theme.primaryColor.withValues(alpha: 0.8),
theme.primaryColor,
],
begin: Alignment.topLeft,
end: Alignment.bottomRight,
),
boxShadow: [
BoxShadow(
color: Colors.blue.withOpacity(0.3),
color: theme.primaryColor.withValues(alpha: 0.3),
blurRadius: 20,
spreadRadius: 5,
),
],
),
child: const Icon(
child: Icon(
Icons.travel_explore,
color: Colors.white,
size: 40,
@@ -130,10 +132,9 @@ class _LoadingContentState extends State<LoadingContent>
opacity: _pulseAnimation.value - 0.3,
child: Text(
widget.loadingText ?? "Chargement en cours...",
style: TextStyle(
fontSize: 18,
style: theme.textTheme.bodyLarge?.copyWith(
fontWeight: FontWeight.w500,
color: Colors.grey.shade700,
color: isDark ? Colors.white : Colors.black,
),
textAlign: TextAlign.center,
),
@@ -146,8 +147,10 @@ class _LoadingContentState extends State<LoadingContent>
SizedBox(
width: 200,
child: LinearProgressIndicator(
backgroundColor: Colors.grey.shade300,
valueColor: AlwaysStoppedAnimation<Color>(Colors.blue.shade400),
backgroundColor: isDark
? Colors.grey[800]
: Colors.grey.shade300,
valueColor: AlwaysStoppedAnimation<Color>(theme.primaryColor),
),
),
],