Skip to main content

SignInButton

SignInButton is a pre-styled ElevatedButton widget that triggers your sign-in flow when tapped.

import 'package:thunderid_flutter/thunderid_flutter.dart';

SignInButton(
onTap: () {
// Navigate to your sign-in screen
Navigator.of(context).push(
MaterialPageRoute(builder: (_) => const AuthScreen()),
);
},
)

Parameters​

ParameterTypeRequiredDescription
onTapVoidCallback✅Called when the button is tapped. Implement your navigation or sign-in logic here.
labelString?Override the button label. Defaults to the localized "Sign In" string.
styleButtonStyle?Override the ElevatedButton style.

BaseSignInButton​

BaseSignInButton gives you complete control over the button UI while keeping the same semantic intent.

BaseSignInButton(
onTap: () => Navigator.of(context).push(
MaterialPageRoute(builder: (_) => const AuthScreen()),
),
builder: (context, onTap) {
return GestureDetector(
onTap: onTap,
child: Container(
padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 12),
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.primary,
borderRadius: BorderRadius.circular(8),
),
child: const Text(
'Sign In',
style: TextStyle(color: Colors.white),
),
),
);
},
)

BaseSignInButton Parameters​

ParameterTypeRequiredDescription
onTapVoidCallback✅Called when your custom button is tapped.
builderWidget Function(BuildContext, VoidCallback)✅Builder receiving the resolved tap handler.

Explore with AI

ThunderID LogoThunderID Logo

Product

DocsAPIsSDKs
© Copyright Linux Foundation Europe.For web site terms of use, trademark policy and other project policies please see https://linuxfoundation.eu/en/policies.