SignInButtonBuilder class
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