搜索插件、代码仓与 APP 分类

cupertino_setting_control 封面
插件详情v1.1.0

cupertino_setting_control

用于多种类型 Cupertino 输入控件(文本框、下拉框、滑块)的包装器

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
83
喜欢数
34
Pub 分数
140

安装插件

flutter pub add cupertino_setting_control

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个 Flutter 包,提供各种 Cupertino 风格输入控件的统一包装,包括文本字段、下拉框和滑块。旨在简化在 iOS 及其他平台上创建一致且平台自适应设置界面的过程。通过将常见输入类型整合到一个连贯的 API 下,该包简化了 UI 开发,确保在 Android、iOS、Web、macOS、Windows 和 Linux 上均能实现原生体验。非常适合需要直观且视觉和谐的设置面板的应用。

适合场景

  • 构建原生 iOS 风格的设置屏幕
  • 创建跨平台配置面板
  • 简化设置界面中的表单输入
  • 通过一致的控件提升用户体验
  • 使用最少样板代码开发应用偏好设置

主要特点

  • 多种输入类型的统一接口
  • Cupertino 设计语言合规性
  • 跨平台支持
  • 与现有表单的轻松集成
  • 响应式布局处理
  • 可自定义的输入样式

适合对象

  • 专注于iOS的应用开发人员
  • 跨平台UI设计工具
  • 设置密集型应用
  • 寻求一致输入模式的开发人员
  • 注重原生外观和感觉的团队

使用建议

  • 仅限Cupertino风格组件
  • 需要理解 Flutter 的 widget 树
  • 可能需要额外的样式以适应非 Cupertino 主题
  • 不适合复杂的动态表单
  • 依赖外部仓库获取更新

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Flutter Cupertino Setting Control

With cupertino_setting_control you can create a settings page or a simple form very easy. Therefore, cupertino_setting_control offers multiple Cupertino-Widgets which can be used very flexible and abstracted.

Quick Usage

A few examples:

Example for a drop down widget displayed as text field:

new SettingRow(
    rowData: SettingsDropDownConfig(
        title: 'Search Area',
        initialKey: _searchAreaResult,
        choices: {
            'Germany': 'Germany',
            'Spain': 'Spain',
            'France': 'France'
        }),
    onSettingDataRowChange: onSearchAreaChange,
    config: const SettingsRowConfiguration(
        showAsTextField: true,
        showTitleLeft: false,
    showAsSingleSetting: false),
)

Example for a yes/no widget with a setting title on the left side:

new SettingRow(
    rowData: SettingsYesNoConfig(
        initialValue: _chatResult, title: 'Allow Chat'),
    onSettingDataRowChange: onChatSettingChange,
),

A complete tutorial how to use Cupertino Setting Control can be found here: Tutorial

Please refer to the example for more examples: Quick-Link

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.

所属分类

依赖

依赖清单 3 项

源码仓库

使用此插件的项目

暂无相关数据。