Documentation Index
Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
Use this file to discover all available pages before exploring further.
Class
Twitter/X sign-in button matching the official Crossmint RN SDK.
class CrossmintTwitterSignInButton extends StatefulWidget
Calls CrossmintAuthClient.loginWithOAuth with CrossmintOAuthProvider.twitter.
Constructors
const CrossmintTwitterSignInButton({
super.key,
required this.auth,
this.onSuccess,
this.onError,
this.enabled = true,
})
Properties
auth
final CrossmintAuthClient auth
Auth client used to start the OAuth flow.
onSuccess
final VoidCallback? onSuccess
Called after the OAuth flow completes successfully. Use this to navigate away or refresh dependent state.
onError
final void Function(Object error)? onError
Called when the OAuth flow throws. Receives the underlying exception so consumers can surface a localized error message.
enabled
When false, the button is rendered in a disabled visual state and taps do not start the OAuth flow. Defaults to true.
Methods
createState
State<CrossmintTwitterSignInButton> createState()