- Updates minimum supported SDK version to Flutter 3.22/Dart 3.4.
- Restores support for Dart
^3.3.0
.
- Updates
README.md
to reflect modernindex.html
script tag placement.
- Adds support for
web: ^1.0.0
. - Updates SDK version to Dart
^3.4.0
. Flutter^3.22.0
.
- Uses
TrustedTypes
fromweb: ^0.5.1
.
- Updates web code to package
web: ^0.5.0
. - Updates SDK version to Dart
^3.3.0
. Flutter^3.19.0
.
- Adds
fedcm_auto
toCredentialSelectBy
enum. - Adds
unknown_reason
to allMoment*Reason
enums.
- Corrects 0.3.0 changelog entry about the minimum Flutter/Dart dependencies.
- Updates minimum supported SDK version to Flutter 3.16/Dart 3.2.
- Migrates from
package:js
/dart:html
topackage:web
so this package can compile to WASM. - Performs the following breaking API changes (in bold) and other fixes to
align with the published GIS SDK:
- Removes the need to explicitly
allowInterop
in all callbacks. id
:- Changes type:
IdConfiguration.intermediate_iframe_close_callback
toVoidFn?
.
- Adds:
fedcm
toCredentialSelectBy
enum. - Fixes typo in
storeCredential
callback
positional parameter name.
- Changes type:
oauth2
:- Removes:
CodeClientConfig.auto_select
,hint
(nowlogin_hint
), andhosted_domain
(nowhd
).TokenClientConfig.hint
(nowlogin_hint
) andhosted_domain
(nowhd
).OverridableTokenClientConfig.hint
(nowlogin_hint
).
- Changes types:
CodeClientConfig.redirect_uri
toUri?
.scope
inCodeClientConfig
andCodeResponse
toList<String>
.CodeResponse.code
andstate
toString?
(now nullable).scope
inTokenClientConfig
,OverridableTokenClientConfig
, andTokenResponse
toList<String>
.- The following
TokenResponse
getters are now nullable:access_token
,expires_in
,hd
,prompt
,token_type
, andstate
. - The
error_callback
functions now receive aGoogleIdentityServicesError
parameter, instead ofObject
.
- Adds:
include_granted_scopes
andenable_granular_consent
toCodeClientConfig
.include_granted_scopes
andenable_granular_consent
toTokenClientConfig
.enable_granular_consent
toOverridableTokenClientConfig
.message
toGoogleIdentityServicesError
.
- Fixes:
- Assert that
scope
is not empty when used to createCodeClientConfig
,TokenClientConfig
, andOverridableTokenClientConfig
instances. - Deprecated
enable_serial_consent
.
- Assert that
- Removes:
- Removes the need to explicitly
- Adds the following new fields to
IdConfiguration
:login_hint
,hd
as auto-select hints for users with multiple accounts/domains.use_fedcm_for_prompt
so FedCM can be enabled.
- Adds pub topics to package metadata.
- Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
- Relaxes the
renderButton
API so any JS-Interop Object can be itstarget
. - Exposes the
Button*
configuration enums, so the rendered button can be configured.
- Adds
renderButton
API toid.dart
. - Breaking Change: Makes JS-interop API more
dart2wasm
-friendly.- Removes external getters for function types
- Introduces an external getter for the whole libraries instead.
- Updates
README.md
with the new way ofimport
ing the desired libraries.
- Add optional
scope
toOverridableTokenClientConfig
object. - Mark some callbacks as optional properly.
- Initial release.