OtpFooter class

Footer widget for OTP verification widget

Inheritance

Constructors

OtpFooter({Key? key, required VoidCallback onVerifyPressed, required VoidCallback onResendPressed, required bool isLoading, required int remainingTime, required Color primaryColor, required Color secondaryColor, required double spacing, String? buttonText, String? resendText, String? timerPrefix, Widget? verifyButtonWidget, Widget? resendWidget, Widget? timerWidget, TextStyle? buttonStyle, TextStyle? resendStyle, TextStyle? timerStyle, bool showTimer = true, Color? buttonBackgroundColor, Color? buttonTextColor, double buttonBorderRadius = 8.0, double buttonHeight = 50.0, double buttonWidth = double.infinity, double buttonElevation = 0.0, Color? loadingIndicatorColor, double loadingIndicatorSize = 24.0, EdgeInsets? buttonPadding, BorderSide? buttonBorderSide})
Creates a new OTP footer
const

Properties

buttonBackgroundColor → Color?
Background color for the button
final
buttonBorderRadius → double
Border radius for the button
final
buttonBorderSide → BorderSide?
Border side for the button
final
buttonElevation → double
Elevation for the button
final
buttonHeight → double
Height for the button
final
buttonPadding → EdgeInsets?
Padding for the button
final
buttonStyle → TextStyle?
Style for button text
final
buttonText → String?
Text for verify button (optional - defaults to "Verify")
final
buttonTextColor → Color?
Text color for the button
final
buttonWidth → double
Width for the button
final
hashCode → int
The hash code for this object.
no setterinherited
isLoading → bool
Whether the verify button is loading
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loadingIndicatorColor → Color?
Color for the loading indicator
final
loadingIndicatorSize → double
Size for the loading indicator
final
onResendPressed → VoidCallback
Callback when resend button is pressed
final
onVerifyPressed → VoidCallback
Callback when verify button is pressed
final
primaryColor → Color
Primary color for styling
final
remainingTime → int
Remaining time for resend timer
final
resendStyle → TextStyle?
Style for resend text
final
resendText → String?
Text for resend button (optional - defaults to "Resend Code")
final
resendWidget → Widget?
Custom resend widget
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secondaryColor → Color
Secondary color for styling
final
showTimer → bool
Whether to show the timer
final
spacing → double
Spacing between elements
final
timerPrefix → String?
Prefix for timer text (optional - defaults to "Resend in")
final
timerStyle → TextStyle?
Style for timer text
final
timerWidget → Widget?
Custom timer widget
final
verifyButtonWidget → Widget?
Custom verify button widget
final

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