KwikFormsStyle class
Style + content customisations for the KwikForms address flow. Visual props (colors, decorations, text styles) and text overrides (field labels, placeholders, button titles, screen titles) live here. For text/content customisation of the login step, use KwikLoginConfig.
Constructors
-
KwikFormsStyle({Color? primaryColor, ButtonStyle? buttonStyle, TextStyle? buttonTextStyle, InputDecoration? inputStyle, BoxDecoration? cardStyle, TextStyle? headerTitleStyle, TextStyle? fieldLabelStyle, TextStyle? optionalSuffixStyle, TextStyle? hintTextStyle, TextStyle? inputTextStyle, TextStyle? subtitleTextStyle, Map<
String, String> ? fieldLabels, Map<String, String> ? fieldHints, String? optionalSuffixText, String? selectAddressTitle, String? addAddressTitle, String? formScreenTitle, String? deliverButtonText, String? addNewAddressLinkText, String? saveAndDeliverButtonText, String? submitButtonText, String? addressTypeLabel, Map<String, String> ? addressTypeLabels, String? savedAddressesSectionTitle, String? gokwikNetworkSectionTitle, TextStyle? sectionHeaderStyle}) -
const
Properties
- addAddressTitle → String?
-
Header title for the Add Address screen. Default: "Add New Address".
final
- addNewAddressLinkText → String?
-
Label of the inline "Add a new address" link in the Select Address bottom bar.
Default: "Add a new address".
final
- addressTypeLabel → String?
-
Label shown above the Address Type chip row. Default: "Address Type".
final
-
addressTypeLabels
→ Map<
String, String> ? -
Per-type label overrides for the Address Type chips, keyed by
'home'/'work'/'other'. Replaces the title-cased default.final -
Style for the main action buttons (Deliver Here, Save & Deliver, Submit).
final
-
Text style for labels on the main action buttons.
final
- cardStyle → BoxDecoration?
-
Decoration for address tile cards in the Select Address list.
final
- deliverButtonText → String?
-
Label of the primary CTA on the Select Address screen.
Default: "Deliver to Selected Address".
final
-
fieldHints
→ Map<
String, String> ? -
Per-field placeholder/hint overrides, keyed by KfInputField.id.
When absent, the field label is used as the hint (current behaviour).
final
-
fieldLabels
→ Map<
String, String> ? -
Per-field label overrides, keyed by KfInputField.id
(e.g.
'firstName','phone','pincode','fullAddress'). When present, replaces the label coming from the API/default config.final - fieldLabelStyle → TextStyle?
-
Text style for field labels rendered above each input.
final
- formScreenTitle → String?
-
Header title for the Form / Details screen. Falls back to API config,
then to "Details".
final
- gokwikNetworkSectionTitle → String?
-
Section header above the GoKwik network addresses on Select Address.
Default: "FROM YOUR GOKWIK NETWORK".
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerTitleStyle → TextStyle?
-
Text style for the screen header title (e.g. "Select Address").
final
- hintTextStyle → TextStyle?
-
Text style for placeholder/hint text inside input fields.
final
- inputStyle → InputDecoration?
-
Base InputDecoration applied to all text input fields.
Hint text, suffix icons, and error/focus borders are still applied on top.
final
- inputTextStyle → TextStyle?
-
Text style for the value typed inside input fields.
final
- optionalSuffixStyle → TextStyle?
-
Text style for the "(Optional)" suffix shown next to non-required field labels.
final
- optionalSuffixText → String?
-
Suffix shown next to non-required field labels. Defaults to "(Optional)".
final
- primaryColor → Color?
-
Overrides the primary colour from the API config.
Falls back to the API-defined primaryColour, then to GoKwik purple.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- saveAndDeliverButtonText → String?
-
Label of the primary CTA on the Add Address screen.
Default: "Save & Deliver Here".
final
- savedAddressesSectionTitle → String?
-
Section header above the host-app saved addresses on Select Address.
Default: "YOUR SAVED ADDRESSES".
final
- sectionHeaderStyle → TextStyle?
-
Text style for the small section header rows on Select Address.
final
- selectAddressTitle → String?
-
Header title for the Select Address screen. Default: "Select Address".
final
- submitButtonText → String?
-
Label of the primary CTA on the Form screen.
Falls back to API config's
button_text, then to "Submit".final - subtitleTextStyle → TextStyle?
-
Text style for the form sub-title shown above the dynamic form fields.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited