chore: update Google Sign-In client ID and remove redundant AnimatedSwitcher from app shell
This commit is contained in:
@@ -40,29 +40,7 @@ class _AppShellState extends State<AppShell> {
|
||||
child: const HomeHeader(),
|
||||
),
|
||||
Expanded(
|
||||
child: AnimatedSwitcher(
|
||||
duration: const Duration(milliseconds: 150),
|
||||
switchOutCurve: Curves.easeIn,
|
||||
switchInCurve: Curves.easeOut,
|
||||
layoutBuilder: (currentChild, previousChildren) {
|
||||
return Stack(
|
||||
children: [
|
||||
...previousChildren,
|
||||
if (currentChild != null) currentChild,
|
||||
],
|
||||
);
|
||||
},
|
||||
transitionBuilder: (child, animation) {
|
||||
return FadeTransition(
|
||||
opacity: animation,
|
||||
child: child,
|
||||
);
|
||||
},
|
||||
child: KeyedSubtree(
|
||||
key: ValueKey(GoRouterState.of(context).uri.toString()),
|
||||
child: widget.child,
|
||||
),
|
||||
),
|
||||
child: widget.child,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -188,7 +188,7 @@ class AuthNotifier extends StateNotifier<AuthState> {
|
||||
try {
|
||||
final googleSignIn = GoogleSignIn(
|
||||
scopes: ['email', 'profile'],
|
||||
serverClientId: '721413957511-goij5fnpal64o86vcppmkh743jhiv4nj.apps.googleusercontent.com',
|
||||
serverClientId: '703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com',
|
||||
);
|
||||
final account = await googleSignIn.signIn();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user