SocialLoginButton class

Inheritance

Constructors

SocialLoginButton({Key? key, required SocialLoginButtonType buttonType, required VoidCallback? onPressed, String? imageURL, String? imagePath, String? text, Color? backgroundColor, Color? disabledBackgroundColor, Color? textColor, double? height = 55.0, double? borderRadius = 4.0, double? fontSize = 15.0, double? width, double? imageWidth = 45, SocialLoginButtonMode? mode = SocialLoginButtonMode.multi})

Properties

backgroundColor Color?
Background Color, an optional param can be used to override default background color.
getter/setter pair
borderRadius double?
Border Radius text, an optional param can be used to override default border radius, which is 4.0.
getter/setter pair
buttonType SocialLoginButtonType
Button Type
final
disabledBackgroundColor Color?
Grey out color, an optional param can be used to override default background Color when button is in disabled state.
getter/setter pair
fontSize double?
Font Size, an optional param can be used to override default font size, which is 15.0
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
height double?
Height, an optional param can be used to override default height of button, which is 55.0
getter/setter pair
imagePath String?
Image Path (increase you want to use local image), an optional param can be used to override default image.
getter/setter pair
imageURL String?
Image URL (increase you want to use network image), an optional param can be used to override default image.
getter/setter pair
imageWidth double?
Image Width, an optional param can be used to override default button image width which is 45.0.
getter/setter pair
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mode SocialLoginButtonMode?
Button Mode, an optional param, can be used to create single style button.
getter/setter pair
onPressed VoidCallback?
Action onPressed
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String?
Button text, an optional param can be used to override default text
getter/setter pair
textColor Color?
Text Color, an optional param can be used to override default text color.
getter/setter pair
width double?
Width, an optional param can be used to override default button Width.
getter/setter pair

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}) 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