CustomAuthButton class
Allows you to create your custom authentication button, which will be similar to others in auth_button library.
You have to provide your own colors and other stuff.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CustomAuthButton
Constructors
-
CustomAuthButton({required AuthIcon authIcon, Key? key, VoidCallback? onPressed, VoidCallback? onLongPress, ValueChanged<
bool> ? onHover, ValueChanged<bool> ? onFocusChange, FocusNode? focusNode, bool? autofocus, String? text, @Deprecated('Use ThemeMode instead. ' 'This property has no more effect. ' 'This feature was deprecated after v3.0.0') bool darkMode = false, @Deprecated('Use TextDirection instead. ' 'This property has no more effect. ' 'This feature was deprecated after v3.0.0') bool rtl = false, bool isLoading = false, AuthButtonStyle style = const AuthButtonStyle(), ButtonStyle? materialStyle, ThemeMode themeMode = ThemeMode.system, TextDirection textDirection = TextDirection.ltr})
Properties
- authIcon → AuthIcon
-
iconUrl Define the iconUrl.
final
- autofocus → bool?
-
True if this widget will be selected as the initial focus when no other node in its scope is currently focused.
finalinherited
- enabled → bool
-
Define if the button is enabled or disabled.
no setterinherited
- focusNode → FocusNode?
-
An optional focus node to use as the focus node for this widget.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDark → bool
-
Define if the button is in dark or light appearance, follows the system Brightness by default.
no setterinherited
- isLoading → bool
-
Show ProgressIndicator if this value is true.
finalinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- materialStyle → ButtonStyle?
-
Customizes this button's appearance within the ButtonStyle.
finalinherited
-
onFocusChange
→ ValueChanged<
bool> ? -
Called when the focus changes.
finalinherited
-
onHover
→ ValueChanged<
bool> ? -
Called when a pointer enters or exits the button response area.
finalinherited
- onLongPress → VoidCallback?
-
Called when the button is long-pressed.
finalinherited
- onPressed → VoidCallback?
-
Called when the button is tapped.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → AuthButtonStyle
-
Customizes this button's appearance.
finalinherited
- text → String?
-
The text within the button.
finalinherited
- textDirection → TextDirection
-
A direction in which text flows.
finalinherited
- themeMode → ThemeMode
-
Describes which theme will be used for the
AuthButton
s.finalinherited
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
inherited
-
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
-
getButtonStyle(
) → AuthButtonStyle? - Returns a material ButtonStyle, this method makes more easy buttons styling.
-
getIcon(
BuildContext context) → AuthIcon - The method which returns the AuthIcon.
-
getMaterialStyle(
BuildContext context) → ButtonStyle? -
Returns a material ButtonStyle, this method makes more easy buttons styling.
inherited
-
getProgressIndicatorColor(
) → Color? -
Returns the color of the ProgressIndicators.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolveBackgroundColor(
Set< MaterialState> states) → Color? -
inherited
-
resolveElevation(
Set< MaterialState> states) → double? -
inherited
-
resolveFixedSize(
Set< MaterialState> states) → Size? -
inherited
-
resolveForegroundColor(
Set< MaterialState> states) → Color? -
inherited
-
resolveMaximumSize(
Set< MaterialState> states) → Size? -
inherited
-
resolveMinimumSize(
Set< MaterialState> states) → Size? -
inherited
-
resolveMouseCursor(
Set< MaterialState> states) → MouseCursor? -
inherited
-
resolveOverlayColor(
Set< MaterialState> states) → Color? -
inherited
-
resolvePadding(
Set< MaterialState> states) → EdgeInsets? -
inherited
-
resolveShadowColor(
Set< MaterialState> states) → Color? -
inherited
-
resolveShape(
Set< MaterialState> states) → OutlinedBorder? -
inherited
-
resolveSide(
Set< MaterialState> states) → BorderSide? -
inherited
-
resolveSurfaceTintColor(
Set< MaterialState> states) → Color? -
inherited
-
resolveTextStyle(
Set< MaterialState> states) → TextStyle? -
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