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

Alignment on the content of the button. #57

Closed thruthesky closed 4 months ago

thruthesky commented 1 year ago

I believe other developers also need the alignment of icon and text. I have edited

image

Example of use. See the mainAxisSize and mainAxisAlignment.

AppleAuthButton(
  onPressed: () {
    // your implementation
    setState(() {
      isLoading = !isLoading;
    });
  },
  themeMode: themeMode,
  isLoading: isLoading,
  style: AuthButtonStyle(
    width: double.infinity,
    buttonType: buttonType,
    iconType: iconType,
    margin: const EdgeInsets.only(left: 24, right: 24, bottom: 8),
    mainAxisSize: MainAxisSize.max,
    mainAxisAlignment: MainAxisAlignment.start,
  ),
),
FacebookAuthButton(
  onPressed: () {
    // your implementation
    setState(() {
      isLoading = !isLoading;
    });
  },
  themeMode: themeMode,
  isLoading: isLoading,
  style: AuthButtonStyle(
    width: double.infinity,
    buttonType: buttonType,
    iconType: iconType,
    margin: const EdgeInsets.only(left: 24, right: 24, bottom: 18),
    mainAxisSize: MainAxisSize.max,
    mainAxisAlignment: MainAxisAlignment.start,
  ),
),
elbeicktalat commented 1 year ago

Hi @thruthesky nice job, probably they would like, I'll check for other properties to add.

fryette commented 6 months ago

@elbeicktalat any chance to merge it?

azeunkn0wn commented 5 months ago

please add this. I don't want to use the separator.

elbeicktalat commented 4 months ago

@thruthesky Thanks for your contribution, but I'm not going to merge your code since there are too much non related changes.

Such as formatting and adding platform code to git. Anyway this issue has been solved in #60