Upgrading google_sign_in 5 to 6
Breaking5.4.4 → 6.3.0Breaking1Platform7New3Changed4Fixed1Other11
BreakingUpgrade verdict
1 breaking change and 7 platform requirement changes.
In plain terms
- On the web, the plugin now uses Google's newer sign-in library because the old one is being retired. Apps that use Google sign-in on the web may need code changes.
- You now need Flutter 3.27 or newer and Dart 3.6 or newer to use this package.
- You now need Flutter 3.19 or Dart 3.3 or newer to use this package.
- iOS 11 is no longer officially supported by this package.
Must act Top 4 of 8 that need code or config changes
Dart SDK requirement changed in 6.3.0: >=2.14.0 <3.0.0 → ^3.6.0.
Flutter requirement changed in 6.3.0: >=3.0.0 → >=3.27.0.
What you must change
Breaking1
Endorses google_sign_in_web ^0.11.0, which uses the Google Identity Services SDK instead of the deprecated Google Sign-In for Web JS SDK.
google_sign_in_webPlatform7
Updates minimum supported SDK version to Flutter 3.27 and Dart 3.6.
Updates minimum supported SDK version to Flutter 3.19/Dart 3.3.
Updates the README support matrix to indicate that iOS 11 is no longer supported.
Clients on Flutter versions that still support iOS 11 can keep using the package with iOS 11 but will not receive further iOS implementation updates.
Updates minimum supported SDK version to Flutter 3.16.
Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
Updates the minimum Flutter version to 3.3.
API changes
Generated by DepDelta from published Dart source. Not mixed with prose notes.
- changed:
ctor GoogleSignIn({ this.signInOption = …, this.scopes = …, this.hostedDomain, this.clientId, this.serverClientId, this.forceCodeForRefreshToken = …, }) → ctor GoogleSignIn({ this.signInOption = …, this.scopes = …, this.hostedDomain, this.clientId, this.serverClientId, this.forceCodeForRefreshToken = …, this.forceAccountName, }) - changed:
ctor GoogleUserCircleAvatar({ Key? key, required this.identity, this.placeholderPhotoUrl, this.foregroundColor, this.backgroundColor, }) → ctor GoogleUserCircleAvatar({ super.key, required this.identity, this.placeholderPhotoUrl, this.foregroundColor, this.backgroundColor, }) - added:
field GoogleSignIn.forceAccountName: final String? - added:
method GoogleSignIn.canAccessScopes( List<String> scopes, { String? accessToken, }): Future<bool>
- changed:
ctor GoogleUserCircleAvatar({ Key? key, required this.identity, this.placeholderPhotoUrl, this.foregroundColor, this.backgroundColor, }) → ctor GoogleUserCircleAvatar({ super.key, required this.identity, this.placeholderPhotoUrl, this.foregroundColor, this.backgroundColor, })