Skip to content

Instantly share code, notes, and snippets.

@riscait
Last active April 9, 2020 11:23
Show Gist options
  • Save riscait/e58ce09574d19644ad613e44c513cc5a to your computer and use it in GitHub Desktop.
Save riscait/e58ce09574d19644ad613e44c513cc5a to your computer and use it in GitHub Desktop.
flutter_signin_button パッケージのAppleボタン
final isLightTheme = Theme.of(context).brightness == Brightness.light;
SignInButtonBuilder(
text: 'Sign in with Apple',
backgroundColor: Colors.white,
icon: Icons.email,
fontSize: 19,
textColor: Colors.black,
// iconColor: Colors.black,
splashColor: Colors.transparent,
// padding: const EdgeInsets.all(0),
// innerPadding: const EdgeInsets.all(0),
// mini: true,
elevation: 0,
shape: StadiumBorder(
side: isLightTheme ? const BorderSide(width: 1) : BorderSide.none,
),
// width: MediaQuery.of(context).size.width,
height: 44,
image: Image.asset('assets/images/apple_logo_black.png'),
onPressed: () => presenter.onPressedAppleButton(context),
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment