commit | dc284c47e39bcc04b2003349fd5d8fe3db7d39e9 | [log] [tgz] |
---|---|---|
author | David Iglesias <ditman@gmail.com> | Thu Jan 09 17:12:31 2020 -0800 |
committer | GitHub <noreply@github.com> | Thu Jan 09 17:12:31 2020 -0800 |
tree | ad1d196ae249168c719c961f94c3efb8afe07ddb | |
parent | de56da50ca78ef275a95b4e59ce8d5e119eadd7a [diff] |
[google_sign_in_web] Fix race condition on init. (#2455) * [google_sign_in_web] Wait for Auth2 to be really ready. The Auth object that `.init()` returns may not be fully ready by the time we start calling methods on it; however it has a `.then()` method that gets called when it is *really* ready to go. * Add a completer to signal when Auth2 is ready. * Throw StateError synchronously if .initialized is checked before calling .init() * Move auth2-dependent init to the `then` method. * onSuccess, complete the auth2 ready future. * onError, throw a PlatformException. This is normally triggered when the domain:port of the web app hasn't been whitelisted on the google sign in console, and things like that. Useful for debugging. * Update README with latest setup instructions.
This repo is a companion repo to the main flutter repo. It contains the source code for Flutter first-party plugins (i.e., plugins developed by the core Flutter team). Check the packages
directory for all plugins.
Flutter plugins enable access to platform-specific APIs. For more information about plugins, and how to use them, see https://flutter.dev/platform-plugins/.
These plugins are also available on pub.
Please file any issues, bugs, or feature requests in the main flutter repo.
If you wish to contribute a new plugin to the Flutter ecosystem, please see the documentation for developing packages and platform channels. You can store your plugin source code in any GitHub repository (the present repo is only intended for plugins developed by the core Flutter team). Once your plugin is ready you can publish to the pub repository.
If you wish to contribute a change to any of the existing plugins in this repo, please review our contribution guide, and send a pull request.
These are the available plugins in this repository.