FlatStyle class

Flat design: solid colours, no shadows, crisp 1px borders.

This is the base look implemented by AuthyoStyle itself and matches the dialog shipped in 1.0.x, so it is the safe default.

Inheritance

Constructors

FlatStyle(AuthyoResolvedTheme theme)

Properties

barrierColor Color
Colour drawn behind the dialog.
no setterinherited
bodyStyle TextStyle
no setterinherited
brandStyle TextStyle
no setterinherited
buttonHeight double
Height of the primary button.
no setterinherited
buttonRadius double
Corner radius for buttons (driven by the dashboard buttonStyle).
no setterinherited
cardPadding EdgeInsets
Padding inside the card.
no setterinherited
cardRadius double
Card corner radius.
no setterinherited
fontFamily String?
Base font family applied to everything in the dialog.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
headerStyle TextStyle
no setterinherited
iconTint Color
Colour used to tint the channel/social icon images.
no setterinherited
id AuthyoDesignStyle
no setteroverride
infoStyle TextStyle
no setterinherited
inputRadius double
Corner radius for the OTP input.
no setterinherited
linkStyle TextStyle
no setterinherited
mutedStyle TextStyle
no setterinherited
otpBoxGap double
Gap between OTP digit boxes.
no setterinherited
otpBoxSize Size
Size of one OTP digit box (the web widget uses 40px boxes, 8px apart).
no setterinherited
otpTextStyle TextStyle
Text style of the digits typed in the OTP field.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
socialButtonRadius double
Corner radius for the social login buttons (dashboard "Social Button Style"; follows buttonRadius when not set).
no setterinherited
theme AuthyoResolvedTheme
Resolved (non-nullable) theme tokens.
finalinherited

Methods

attemptsPill(int remaining, int max) Widget
"N of M attempts remaining" pill. Colour escalates as the number drops, matching the expiry bar's urgency language.
inherited
backButton(VoidCallback onTap) Widget
Round "back" control in the card's top-left corner (the web widget's back button). Leaves the OTP screen so the identity can be changed.
inherited
backdrop(BuildContext context, Widget dialog) Widget
Full-screen layer drawn behind the (already centred, scrollable) dialog. Styles with a special backdrop (blur, gradient) override this and must return dialog on top of their own layers.
inherited
buttonInk({required VoidCallback? onPressed, required double radius, required Widget child}) Widget
inherited
buttonLabel(String label, bool loading, Color color) Widget
inherited
cardDecoration() BoxDecoration
Decoration of the dialog card.
inherited
checkbox({required String label, required bool value, required ValueChanged<bool> onChanged}) Widget
"Remember me" checkbox (only rendered when the dashboard enabled it).
inherited
circleIconButton({required Widget icon, required VoidCallback? onTap, String? tooltip, double size = 48}) Widget
Circular icon button used for the resend channels (SMS / WhatsApp / Call).
inherited
decorateCard(Widget card) Widget
Wraps the decorated card (e.g. with a blur filter or an overlay).
inherited
decorateInput(Widget field) Widget
Extra chrome a style paints around an input (inset shadow, frost, clay drop…). Applied to the single-field otpField and to every digit box of otpBox, so both looks stay identical. Not used for the underline input style, which is chrome-less in every design.
inherited
divider(String label) Widget
Thin separator used between social buttons and the OTP form.
inherited
errorText(String text, {TextAlign? align}) Widget
Red "Invalid OTP. Please try again." line under the boxes.
inherited
logoFrame() Widget
Frame around the logo (e.g. a plate in skeuomorphic style).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
otpBox({required TextEditingController controller, required FocusNode focusNode, required ValueChanged<String> onChanged, bool autofocus = false}) Widget
One digit box of the OTP entry; the dialog renders one per digit, with auto-advance and auto-verify like the web widget.
inherited
otpField({required TextEditingController controller, required String hint, String? label, FormFieldValidator<String>? validator, ValueChanged<String>? onSubmitted, int? maxLength}) Widget
Single-field OTP input (kept for hosts that build their own layout).
inherited
otpInputDecoration({required String hint, String? label}) InputDecoration
Decoration for the OTP input field.
inherited
primaryButton({required String label, required VoidCallback? onPressed, bool loading = false}) Widget
The main "Verify" button.
inherited
progress() Widget
Progress indicator shown while a request is in flight.
inherited
progressBar({required double fraction, required Color color, double height = 6}) Widget
Slim rounded bar that drains as fraction (1 → 0) falls: the OTP expiry and the resend cooldown both use it.
inherited
sentToRow({required String target, VoidCallback? onChange, bool verified = false}) Widget
"OTP sent to: …" chip with the "Change" link beside it, like the web widget's row under the header. onChange null hides the link (verified state). verified swaps the "OTP sent to:" prefix for the widget's green-ticked envelope / phone icon in front of the identity.
inherited
socialButton({required Widget icon, required String label, required VoidCallback? onTap}) Widget
Full-width social login button ("Continue with Google").
inherited
socialIconButton({required Widget icon, required VoidCallback? onTap, String? tooltip}) Widget
Compact social button (icon only) used when there are many providers.
inherited
statusText(String text, {bool error = false, TextAlign? align, Color? color, FontWeight? weight}) Widget
Countdown / expiry line under the OTP boxes. error switches to the red "OTP expired…" look; color overrides the text colour (the expiry label shifts blue → amber → red as time runs out).
inherited
textButton({required String label, required VoidCallback? onPressed}) Widget
A flat text-only action (e.g. "Resend OTP").
inherited
toString() String
A string representation of this object.
inherited
underlineInputDecoration({required String hint, String? label}) InputDecoration
Borderless variant used when the dashboard "Input Style" is set to underline: no fill, only a bottom line, in every design style.
inherited
verifiedBadge({String message = 'Verified successfully'}) Widget
Green ring + check + "Verified successfully", shown inside the card once verification succeeds (same as the web widget).
inherited
verifiedIdentityIcon({required bool email}) Widget
Green-ticked envelope (email) or phone icon shown in front of the identity once it is verified.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited