SocialAuthButton class
A button for social authentication with optional label and full-width layout.
Defaults to a flat outlined style via StandardSocialAuthStyle. Styling can be overridden per button or through IntelligentsiaFormTheme.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- SocialAuthButton
Constructors
- SocialAuthButton({Key? key, required SocialAuthProvider provider, required VoidCallback onTap, bool outlinedLogo = StandardSocialAuthStyle.outlinedLogo, double width = StandardSocialAuthStyle.iconWidth, double height = StandardSocialAuthStyle.iconHeight, EdgeInsets outlinedLogoPadding = StandardSocialAuthStyle.outlinedLogoPadding, EdgeInsets solidLogoPadding = EdgeInsets.zero, Color? backgroundColor, Color? logoBackgroundColor, BorderRadius? borderRadius, BorderSide? borderSide, bool? showBorder, bool showShadow = StandardSocialAuthStyle.showShadow, BoxShadow? boxShadow, EdgeInsets? contentPadding, String? label, bool expand = false, bool enabled = true, TextStyle? labelStyle, double? labelSpacing})
-
Creates a SocialAuthButton.
const
Properties
- backgroundColor → Color?
-
Background color of the button or expanded container.
final
- borderRadius → BorderRadius?
-
Corner radius of the button.
final
- borderSide → BorderSide?
-
Border stroke applied when showBorder is true.
final
- boxShadow → BoxShadow?
-
Custom shadow; ignored when showShadow is false.
final
- contentPadding → EdgeInsets?
-
Inner padding for full-width buttons (expand is true).
final
- enabled → bool
-
When false, the button is dimmed and ignores taps.
final
- expand → bool
-
When true with a label, the button spans the full available width.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
Height of the logo inside the button.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String?
-
Optional text shown next to the logo.
final
- labelSpacing → double?
-
Horizontal gap between the logo and label.
final
- labelStyle → TextStyle?
-
Text style for label.
final
- logoBackgroundColor → Color?
-
Background color behind the logo icon in compact mode.
final
- onTap → VoidCallback
-
Called when the button is tapped and enabled is true.
final
- outlinedLogo → bool
-
When true, uses the outlined logo asset instead of the filled variant.
final
- outlinedLogoPadding → EdgeInsets
-
Padding around the logo when outlinedLogo is true.
final
- provider → SocialAuthProvider
-
The social provider whose logo is displayed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showBorder → bool?
-
Whether to draw a border around the button.
final
- showShadow → bool
-
When true, applies boxShadow or the theme default shadow.
final
- solidLogoPadding → EdgeInsets
-
Padding around the logo when outlinedLogo is false.
final
- width → double
-
Width of the logo inside the button.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited