搜尋套件、儲存庫與 APP 分類

cupertino_radio_choice 封面
套件詳情v1.0.2

cupertino_radio_choice

Cupertino 按鈕,用於作為單選按鈕以選擇一個值。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
2020
喜歡數
19
Pub 分數
150

安裝套件

flutter pub add cupertino_radio_choice

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Flutter 套件,提供類似 Cupertino 的單選按鈕,用於從清單中選擇單一選項。此套件設計符合 Apple 的 iOS 設計語言,在 Android、Web、macOS、Windows 及 Linux 等平台皆能呈現原生外觀與體驗。該套件以最少的樣板程式碼簡化單選按鈕群組的實作,確保行為一致且視覺吸引力。非常適合需要在多個選項中選擇一個的表單或設定情境。

適用情境

  • 需要單選的表單輸入
  • iOS 風格的設定介面
  • 需要一致單選按鈕的跨平台應用
  • 使用者偏好選擇
  • 可自訂的單選按鈕群組

主要特色

  • Cupertino 風格的單選按鈕
  • 從多個選項中進行單選
  • 跨平台相容性
  • 所需的設定最少
  • 可自訂的外觀與行為

適合對象

  • 針對 iOS 設計美學的開發者
  • 基於表單導航的應用程式
  • 重視平台原生 UI 的團隊
  • 以UI為主的應用程式
  • 需要輕量級單選按鈕解決方案的專案

使用建議

  • 限於單選使用情境
  • 需要手動處理值更新
  • 可能無法與非Cupertino主題無縫整合
  • 最適合以iOS為中心的設計
  • 不適合複雜的表單驗證場景

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Flutter Cupertino Radio Choice

Cupertino buttons which are used as radio buttons in order to select one value.

Tutorial

A complete tutorial how to use CupertinoRadioChoice can be found here: Tutorial

Quick Usage

Just fill the required parameters of CupertinoRadioChoice and you're ready to go, e.g.:

CupertinoRadioChoice(
    choices: {'male' : 'Male', 'female' : 'Female', 'other': 'Other'},
    onChange: (selectedGender) {},
    initialKeyValue: 'male')

Please refer to the example for usage: Quick-Link

Example

Bugs/Requests

If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on Github and I'll look into it. Pull Request are also welcome.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。