GitHub 代码仓wu9007/multiple_select

multiple_select

wu9007/multiple_select open-source repository details.

multiple_select 项目封面
星标
8
复刻
11
最近推送(UTC)
2022年2月17日
项目状态
未归档

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

multiple_select

License Pub

A versatile and beautiful multi-drop-down component for App developers.🚀

Getting Started

dependencies:
 multiple_select: ^0.1.24

Usage example

Matching query and Multiple select

List<Item<num, String, String>> items = List.generate(
  150,
      (index) =>
      Item.build(
        value: index,
        display: '$index display',
        content: '$index content' * (index + 1),
      ),
);

List<num> _initValue = [1, 2, 6];

MultiFilterSelect(
          allItems: items,
          initValue: _initValue,
          selectCallback: (List selectedValue) => print(selectedValue.length,
          textColor: Colors.black,
          backgroundColor: Colors.blue,
          selectedTextColor: Colors.black,
          selectedBackgroundColor: Colors.grey,),
        )
Drop down with no filter

/// Simulate 15 data
List<MultipleSelectItem> elements = List.generate(
  15,
  (index) => MultipleSelectItem.build(
    value: index,
    display: '$index display',
    content: '$index content',
  ),
);

List _selectedValues = [];

MultipleDropDown(
          hintText: '请选择',
          disabled: false,
          values: _selectedValues,
          elements: elements,
        )

Contribute

We would ❤️ to see your contribution!

License

Distributed under the MIT license. See LICENSE for more information.

About

Created by Shusheng.

wu9007 GitHub avatar
GitHub 作者

wu9007 ↗

业精于勤荒于嬉 行成于思毁于随

石家庄
语言DartShellObjective-CJava

分类

使用的依赖

依赖清单 2 项

  • flutter{"sdk":"flutter"}
  • flutter_test开发依赖{"sdk":"flutter"}

如何选择适合项目的代码仓?

先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。

  1. 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
  2. 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
  3. 使用前在 GitHub 核对 README、许可证与 Issues。

来源与维护

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗