chore: update Google Sign-In client ID and remove redundant AnimatedSwitcher from app shell
This commit is contained in:
@@ -12,7 +12,12 @@
|
||||
"package_name": "com.requestn.real_estate_mobile.demo"
|
||||
}
|
||||
},
|
||||
"oauth_client": [],
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyAwb_9fc7n9gbN_IQqWeYRkHSSykzVHCyc"
|
||||
@@ -20,7 +25,12 @@
|
||||
],
|
||||
"services": {
|
||||
"appinvite_service": {
|
||||
"other_platform_oauth_client": []
|
||||
"other_platform_oauth_client": [
|
||||
{
|
||||
"client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -31,7 +41,12 @@
|
||||
"package_name": "com.requestn.real_estate_mobile.dev"
|
||||
}
|
||||
},
|
||||
"oauth_client": [],
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyAwb_9fc7n9gbN_IQqWeYRkHSSykzVHCyc"
|
||||
@@ -39,7 +54,41 @@
|
||||
],
|
||||
"services": {
|
||||
"appinvite_service": {
|
||||
"other_platform_oauth_client": []
|
||||
"other_platform_oauth_client": [
|
||||
{
|
||||
"client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:703616926518:android:2eb242f07b174c25fca997",
|
||||
"android_client_info": {
|
||||
"package_name": "com.requestn.real_estate_mobile.local"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyAwb_9fc7n9gbN_IQqWeYRkHSSykzVHCyc"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"appinvite_service": {
|
||||
"other_platform_oauth_client": [
|
||||
{
|
||||
"client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,12 +7,17 @@
|
||||
"client": [
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:703616926518:android:4342b796fbabb690fca997",
|
||||
"mobilesdk_app_id": "1:703616926518:android:270639d6887d2cb4fca997",
|
||||
"android_client_info": {
|
||||
"package_name": "com.requestn.real_estate_mobile.dev"
|
||||
"package_name": "com.requestn.real_estate_mobile.demo"
|
||||
}
|
||||
},
|
||||
"oauth_client": [],
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyAwb_9fc7n9gbN_IQqWeYRkHSSykzVHCyc"
|
||||
@@ -20,7 +25,70 @@
|
||||
],
|
||||
"services": {
|
||||
"appinvite_service": {
|
||||
"other_platform_oauth_client": []
|
||||
"other_platform_oauth_client": [
|
||||
{
|
||||
"client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:703616926518:android:4342b796fbabb690fca997",
|
||||
"android_client_info": {
|
||||
"package_name": "com.requestn.real_estate_mobile.dev"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyAwb_9fc7n9gbN_IQqWeYRkHSSykzVHCyc"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"appinvite_service": {
|
||||
"other_platform_oauth_client": [
|
||||
{
|
||||
"client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"client_info": {
|
||||
"mobilesdk_app_id": "1:703616926518:android:2eb242f07b174c25fca997",
|
||||
"android_client_info": {
|
||||
"package_name": "com.requestn.real_estate_mobile.local"
|
||||
}
|
||||
},
|
||||
"oauth_client": [
|
||||
{
|
||||
"client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
],
|
||||
"api_key": [
|
||||
{
|
||||
"current_key": "AIzaSyAwb_9fc7n9gbN_IQqWeYRkHSSykzVHCyc"
|
||||
}
|
||||
],
|
||||
"services": {
|
||||
"appinvite_service": {
|
||||
"other_platform_oauth_client": [
|
||||
{
|
||||
"client_id": "703616926518-9h70kp29oqdgi8umr84u6n59kpb22q97.apps.googleusercontent.com",
|
||||
"client_type": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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