elbeicktalat / flutter_auth_buttons

Auth Buttons is a flutter widget library, include buttons for authenticating with the most popular social networks.
https://pub.dev/packages/auth_buttons
BSD 3-Clause "New" or "Revised" License
32 stars 32 forks source link

Impossible to override FacebookAuthButton TextStyle #17

Closed Thithip closed 3 years ago

Thithip commented 3 years ago

Hi!

I'm trying to override the TextStyle property for the FacebookAuthButton to reduce the FontSize. It works well with other button, like Google one, but not the Facebook button.

I think this is due to the overritten method getTextStyle() in the FacebookAuthButton widget, which ignore the textStyle attribute given:

  @override
  TextStyle getTextStyle() {
    if (iconStyle == AuthIconStyle.secondary && style == null)
      return TextStyle(
        color: darkMode ? Colors.white : Colors.blue[800],
        fontSize: 18,
        fontWeight: FontWeight.bold,
        letterSpacing: 0.50,
      );
    return TextStyle(
      color: Colors.white,
      fontSize: 18,
      fontWeight: FontWeight.bold,
      letterSpacing: 0.50,
    );
  }

ref. : https://github.com/elbeicktalat/flutter_auth_buttons/blob/master/lib/res/buttons/facebook_auth_button.dart#L97-L112

elbeicktalat commented 3 years ago

@Thithip Thanks for reporting this issue, I have fixed it and I'll push a new version of the package soon, for sure it will be included a new features.

Thithip commented 3 years ago

Thanks for the very quick fix 🚀✌️

sabetAI commented 3 years ago

I'm experiencing the same issue with the EmailAuthButton using auth_buttons: ^1.0.1+3.

elbeicktalat commented 3 years ago

I'm experiencing the same issue with the EmailAuthButton using auth_buttons: ^1.0.1+3.

Fixed with version 1.0.1+4

elbeicktalat commented 3 years ago

I'm experiencing the same issue with the EmailAuthButton using auth_buttons: ^1.0.1+3.

Fixed with version 1.0.1+4