GithubAuthButton class Null safety

create github authentication button with multiple styles.

default style.

secondary style.

icon style.

Inheritance

Constructors

GithubAuthButton({Key? key = const ValueKey<String>('GithubAuthButton'), VoidCallback? onPressed, VoidCallback? onLongPress, ValueChanged<bool>? onHover, ValueChanged<bool>? onFocusChange, FocusNode? focusNode, bool? autofocus, String? text = 'Sign in with Github', @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})
const

Properties

autofocus bool?
True if this widget will be selected as the initial focus when no other node in its scope is currently focused.
final, inherited
enabled bool
Define if the button is enabled or disabled.
read-only, inherited
focusNode FocusNode?
An optional focus node to use as the focus node for this widget.
final, inherited
hashCode int
The hash code for this object.
@nonVirtual, read-only, inherited
isDark bool
Define if the button is in dark or light appearance, follows the system Brightness by default.
read-only, inherited
isLoading bool
Show ProgressIndicator if this value is true.
final, inherited
key Key?
Controls how one widget replaces another widget in the tree.
final, inherited
materialStyle ButtonStyle?
Customizes this button's appearance within the ButtonStyle.
final, inherited
onFocusChange ValueChanged<bool>?
Called when the focus changes.
final, inherited
onHover ValueChanged<bool>?
Called when a pointer enters or exits the button response area.
final, inherited
onLongPress VoidCallback?
Called when the button is long-pressed.
final, inherited
onPressed VoidCallback?
Called when the button is tapped.
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
style AuthButtonStyle
Customizes this button's appearance.
final, inherited
text String?
The text within the button.
final, inherited
textDirection TextDirection
A direction in which text flows.
final, inherited
themeMode ThemeMode
Describes which theme will be used for the AuthButtons.
final, inherited

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.
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
getButtonStyle() AuthButtonStyle?
Returns an AuthButtonStyle, this method makes more easy buttons styling.
getIcon(BuildContext context) AuthIcon
The method which returns the AuthIcon.
getMaterialStyle(BuildContext context) ButtonStyle?
Returns an AuthButtonStyle, this method makes more easy buttons styling.
inherited
getProgressIndicatorColor() Color?
Returns the color of the ProgressIndicators.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
resolveBackgroundColor(Set<MaterialState> states) Color?
resolveElevation(Set<MaterialState> states) double?
inherited
resolveFixedSize(Set<MaterialState> states) Size?
inherited
resolveForegroundColor(Set<MaterialState> states) Color?
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}) 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.
@nonVirtual, inherited