Package-level declarations
Types
How a character appears when it's typed into a cell.
Default values for CountdownTimer. Pass only what you want to change:
Spacing for CountdownTimer. Get one from CountdownTimerDefaults.dimensions.
Counts down to endTimeMillis, a wall clock time in milliseconds since the epoch.
Colors and text for CountdownTimer. Get one from CountdownTimerDefaults.style.
Animation settings for OTP cells. Get one from OtpInputDefaults.animationSpec.
Colors for an OTP cell in each of its states.
Sizes used by an OTP cell. Get one from OtpInputDefaults.dimensions.
Padding inside each OTP cell. Get one from OtpInputDefaults.contentPadding.
What a single cell needs to know to draw itself. OtpInputField passes one to its cell slot.
The blinking bar shown in the focused cell while it's empty. Get one from OtpInputDefaults.cursorConfig.
Default values for OtpInputField and the built-in cells.
Keeps a text field to at most otpLength ASCII digits.
Hides entered digits behind maskCharacter after they have been visible for maskDelay milliseconds, the way password fields on phones do. Get one from OtpInputDefaults.maskConfig.
Text styles for a cell holding a character and for an empty cell showing the placeholder. Get one from OtpInputDefaults.textStyles.
Functions
Shows the time left on state as HH : MM : SS boxes, and hides itself when it reaches zero.
The rounded box cell OtpInputField uses when you don't pass your own cell.
True once the field holds length characters.
An input for one-time codes that draws each digit in its own cell.
OtpInputField for state you keep as a String, for example in a ViewModel's UI state.
A round cell with a transparent background. It's DefaultOtpCell with different defaults.
Remembers a timer that ends at endTimeMillis, for example an expiry time sent by your backend. A different endTimeMillis creates a new timer.
Remembers a timer that ends duration after it's first created. The end time is saved, so rotating the device or coming back to the screen doesn't restart the countdown.
A cell drawn as a character above a line that changes color and thickness with the cell's state. The container colors from colors are not used.