-
Notifications
You must be signed in to change notification settings - Fork 249
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
fix(authenticator): Wrap social button text #3692
Conversation
a1dc8d2
to
c87f345
Compare
c87f345
to
a40f8ea
Compare
a40f8ea
to
95f5d32
Compare
Prevents overflow of social button text in constrained layouts by wrapping the text.
95f5d32
to
3269d8b
Compare
packages/authenticator/amplify_authenticator/lib/src/widgets/social/social_button.dart
Show resolved
Hide resolved
@@ -205,24 +217,32 @@ class _SocialSignInButtonState | |||
builder: (context, constraints) { | |||
final padding = calculatePadding(constraints); | |||
return Padding( | |||
padding: EdgeInsets.symmetric(horizontal: padding), | |||
padding: EdgeInsets.symmetric( | |||
vertical: 2, |
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 think this is increasing the height of the button. Is that what we want? It seems like the social buttons have a larger height than other buttons here: https://github.com/aws-amplify/amplify-flutter/pull/3692/files#diff-19731debe5953de4ce3baae91c6a663bf423a41677f989d42e1448b480a54353
* fix(authenticator): Wrap social button text Prevents overflow of social button text in constrained layouts by wrapping the text. * Update padding * Update TODO
### Fixes - fix(aft): Constraints edge cases ([#3732](#3732)) - fix(authenticator): TOTP Setup typo ([#3758](#3758)) - fix(authenticator): Wrap social button text ([#3692](#3692)) - fix(authenticator): date validator ([#3766](#3766)) Updated-Components: amplify_datastore, amplify_analytics_pinpoint, amplify_auth_cognito, amplify_authenticator, aws_common, smithy, amplify_storage_s3_dart
* fix(authenticator): Wrap social button text Prevents overflow of social button text in constrained layouts by wrapping the text. * Update padding * Update TODO
### Fixes - fix(aft): Constraints edge cases ([#3732](#3732)) - fix(authenticator): TOTP Setup typo ([#3758](#3758)) - fix(authenticator): Wrap social button text ([#3692](#3692)) - fix(authenticator): date validator ([#3766](#3766)) Updated-Components: amplify_datastore, amplify_analytics_pinpoint, amplify_auth_cognito, amplify_authenticator, aws_common, smithy, amplify_storage_s3_dart
### Fixes - fix(aft): Constraints edge cases ([#3732](#3732)) - fix(authenticator): TOTP Setup typo ([#3758](#3758)) - fix(authenticator): Wrap social button text ([#3692](#3692)) - fix(authenticator): date validator ([#3766](#3766)) Updated-Components: amplify_datastore, amplify_analytics_pinpoint, amplify_auth_cognito, amplify_authenticator, aws_common, smithy, amplify_storage_s3_dart # Conflicts: # packages/amplify_datastore/CHANGELOG.md # packages/amplify_datastore/pubspec.yaml # packages/analytics/amplify_analytics_pinpoint_dart/CHANGELOG.md # packages/analytics/amplify_analytics_pinpoint_dart/lib/src/version.dart # packages/analytics/amplify_analytics_pinpoint_dart/pubspec.yaml # packages/auth/amplify_auth_cognito/CHANGELOG.md # packages/auth/amplify_auth_cognito/pubspec.yaml # packages/auth/amplify_auth_cognito_dart/CHANGELOG.md # packages/auth/amplify_auth_cognito_dart/pubspec.yaml # packages/authenticator/amplify_authenticator/CHANGELOG.md # packages/authenticator/amplify_authenticator/lib/src/version.dart # packages/authenticator/amplify_authenticator/pubspec.yaml # packages/storage/amplify_storage_s3_dart/CHANGELOG.md # packages/storage/amplify_storage_s3_dart/pubspec.yaml
### Fixes - fix(aft): Constraints edge cases ([#3732](#3732)) - fix(authenticator): TOTP Setup typo ([#3758](#3758)) - fix(authenticator): Wrap social button text ([#3692](#3692)) - fix(authenticator): date validator ([#3766](#3766)) Updated-Components: amplify_datastore, amplify_analytics_pinpoint, amplify_auth_cognito, amplify_authenticator, aws_common, smithy, amplify_storage_s3_dart # Conflicts: # packages/amplify_datastore/CHANGELOG.md # packages/amplify_datastore/pubspec.yaml # packages/analytics/amplify_analytics_pinpoint_dart/CHANGELOG.md # packages/analytics/amplify_analytics_pinpoint_dart/lib/src/version.dart # packages/analytics/amplify_analytics_pinpoint_dart/pubspec.yaml # packages/auth/amplify_auth_cognito/CHANGELOG.md # packages/auth/amplify_auth_cognito/pubspec.yaml # packages/auth/amplify_auth_cognito_dart/CHANGELOG.md # packages/auth/amplify_auth_cognito_dart/pubspec.yaml # packages/authenticator/amplify_authenticator/CHANGELOG.md # packages/authenticator/amplify_authenticator/lib/src/version.dart # packages/authenticator/amplify_authenticator/pubspec.yaml # packages/storage/amplify_storage_s3_dart/CHANGELOG.md # packages/storage/amplify_storage_s3_dart/pubspec.yaml Co-authored-by: kyle <kylechen@amazon.com>
Prevent overflow of social button text in constrained layouts by shrinking the text to fit the available width.
Before
After