SignInButtonBuilder class

Inheritance
Annotations

Constructors

SignInButtonBuilder({Key? key, required Color backgroundColor, required Function onPressed, required String text, IconData? icon, Widget? image, double fontSize = 14.0, Color textColor = Colors.white, Color iconColor = Colors.white, Color splashColor = Colors.white30, Color highlightColor = Colors.white30, EdgeInsets? padding, EdgeInsets? innerPadding, bool mini = false, double elevation = 2.0, ShapeBorder? shape, double? height, double? width})
The constructor is self-explanatory.

Properties

backgroundColor Color
backgroundColor is required but textColor is default to Colors.white splashColor is defalt to Colors.white30
final
elevation double
elevation has defalt value of 2.0
final
fontSize double
The size of the label font
final
hashCode int
The hash code for this object.
no setterinherited
height double?
the height of the button
final
highlightColor Color
backgroundColor is required but textColor is default to Colors.white splashColor is defalt to Colors.white30
final
icon IconData?
This is a builder class for signin button
final
iconColor Color
backgroundColor is required but textColor is default to Colors.white splashColor is defalt to Colors.white30
final
image Widget?
Override the icon section with a image logo For example, Google requires a colorized logo, which FontAwesome cannot display. If both image and icon are provided, image will take precedence
final
innerPadding EdgeInsets?
padding is default to EdgeInsets.all(3.0)
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mini bool
mini tag is used to switch from a full-width signin button to
final
onPressed Function
onPressed should be specified as a required field to indicate the callback.
final
padding EdgeInsets?
padding is default to EdgeInsets.all(3.0)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape ShapeBorder?
shape is to specify the custom shape of the widget. However the flutter widgets contains restriction or bug on material button, hence, comment out.
final
splashColor Color
backgroundColor is required but textColor is default to Colors.white splashColor is defalt to Colors.white30
final
text String
the button's text
final
textColor Color
backgroundColor is required but textColor is default to Colors.white splashColor is defalt to Colors.white30
final
width double?
width is default to be 1/1.5 of the screen
final

Methods

build(BuildContext context) Widget
The build funtion will be help user to build the signin button 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