SignInButton class

Inheritance

Constructors

SignInButton({required ButtonType buttonType, required VoidCallback? onPressed, ImagePosition? imagePosition = ImagePosition.left, ButtonSize buttonSize = ButtonSize.small, Color? btnColor, Color? btnDisabledColor, Color? btnTextColor, Color? btnDisabledTextColor, String? btnText, double elevation = 5.0, double? width, double? padding, ShapeBorder? shape, CustomImage? customImage})
SignInButton.mini({required ButtonType buttonType, required VoidCallback? onPressed, ButtonSize buttonSize = ButtonSize.small, Color? btnColor, Color? btnDisabledColor, double elevation = 5.0, double? padding, CustomImage? customImage})

Properties

btnColor ↔ Color?
btnColor Set the background color of the button.
getter/setter pair
btnDisabledColor ↔ Color?
btnDisabledColor Set the background color of the disabled button.
getter/setter pair
btnDisabledTextColor ↔ Color?
btnDisabledTextColor set the disabled button's text color.
getter/setter pair
btnText ↔ String?
btnText set the button's text.
getter/setter pair
btnTextColor ↔ Color?
btnTextColor set the button's text color.
getter/setter pair
buttonSize ↔ ButtonSize
buttonSize set the size of the button. (small medium large)
getter/setter pair
buttonType ↔ ButtonType
buttonType sets the style and icons of the button.
getter/setter pair
customImage ↔ CustomImage?
customImage use to assign an image, otherwise _image is used
getter/setter pair
elevation ↔ double
elevation set the button's elevation value.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
imagePosition ↔ ImagePosition?
imagePosition set the position of the icon.(left or right)
getter/setter pair
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mini ↔ bool
mini It automatically takes value according to the selected constructor.
getter/setter pair
onPressed ↔ VoidCallback?
onPressed Send a function to trigger the button.
getter/setter pair
padding ↔ double?
padding set the button's padding value.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shape ↔ ShapeBorder?
shape set the button's shape.
getter/setter pair
width ↔ double?
You can change the value of width when the text size becomes too small.
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, 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