-
Notifications
You must be signed in to change notification settings - Fork 100
[dashboard] Use new Google Sign In button. #2601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ditman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello new sign-in button!
|
|
||
| @override | ||
| Widget build(BuildContext context) { | ||
| return (GoogleSignInPlatform.instance as GoogleSignInPlugin).renderButton(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can tweak the looks of the button, see a configurable demo here:
| @@ -1,299 +1,800 @@ | |||
| // Mocks generated by Mockito 5.0.15 from annotations | |||
| // Mocks generated by Mockito 5.4.0 from annotations | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's been a while! (August 2021)
| <meta charset="UTF-8"> | ||
| <meta name="google-signin-client_id" content="308150028417-vlj9mqlm3gk1d03fb0efif1fu5nagdtt.apps.googleusercontent.com"> | ||
| <title>Build Dashboard</title> | ||
| <title>Flutter Build Dashboard — Cocoon</title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To improve SEO (for myself) :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to re-format this file after re-generating it (it seems mockito generates at 80 cols, but the repo is validating at 120). Please consider skipping *.mocks.dart from the formatting checks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively, this could run dart format with the right parameters after mocks are regenerated :/
|
Nice! Thanks for doing this David! If I can clone your branch I can do a test deploy before merging this. |
Use flutter pub get rather than dart. Co-authored-by: Casey Hillers <caseyhillers@gmail.com>
@ricardoamador you should be able to fetch from my remote and clone the branch, I think? I marked the checkbox of "collaborators can do whatever they want" while creating the PR (you should be even able to push to the branch if you want to!) |
|
Cool I will check it out. Validating now. |
@ricardoamador The new JS SDK requires
(I bet you'd get this error if you tried to do the same test without any of my changes applied, just from the tip of master!) |
ricardoamador
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
Thanks @CaseyHillers @ricardoamador for the super quick review! |


This PR:
SignInButtonwidget toUserSignIn. This was done because the old SignInButton did much more than rendering a button (it also rendered the "signed-in" status of the user).SignInButtonwidget, which has two variants:Issues
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.