搜索插件、代码仓与 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.

所属分类

源码仓库

使用此插件的项目

暂无相关数据。