Skip to content
Türkçe
All snippets

WFormSelect example

A select that plugs into Flutter Form validation.

  • WDiv
  • WFormSelect
preview
example_w_form_select.dart
WDiv(
  className: "w-full p-4",
  child: WFormSelect(
    label: "Team role",
    labelClassName: "text-lg text-[#adbac7] mb-2",
    options: [
      SelectOption(value: "Designer", label: "Designer"),
      SelectOption(value: "Developer", label: "Developer"),
      SelectOption(value: "Product manager", label: "Product manager"),
    ],
    value: "Designer",
    className: "w-full h-12 px-3 bg-[#22272e] border border-[#444c56] text-[#cdd9e5] text-lg rounded-xl",
  ),
)