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
onTapVoidCallbackCalled 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
onTapVoidCallbackCalled when your custom button is tapped.
builderWidget Function(BuildContext, VoidCallback)Builder receiving the resolved tap handler.
ThunderID LogoThunderID Logo

Product

DocsAPIsSDKs
© WSO2 LLC. All rights reserved.Privacy PolicyCookie Policy