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

GitHub 代码仓liemvo/expandable_group

expandable_group

liemvo/expandable_group open-source repository details.

expandable_group 项目封面
星标
5
复刻
4
最近推送(UTC)
2023年9月6日
项目状态
未归档

原始 README

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

ExpandableGroup

A new Flutter widget support expanded and collapsed group items in the list of Flutter application. It supports Android, iOS, Web and Desktop.

Build expandable group widget support expanded and collapsed group data.

Features

  • Expand and collapse header in the List
  • Support customise header and item in the list
  • Single ListView

Getting Started

1. Add dependency to your project's pubspec.yaml and run pub get
dependencies:
  expandable_group: ^0.0.6
2. Import expandable_group_widget.dart to your file project where is going to use the ListExpandableWidget.
import 'package:expandable_group/expandable_group_widget.dart';
3. The ExpandableGroup has some properties as below
3.1 Required
  • header the header widget and will display in the list
  • items the list of ListTile will display for each group
3.2 Optional
  • isExpanded is a boolean to expand or collapse header. isExpanded == true is the header will be expanded and otherwise. The default value is false.
  • expandedIcon and collapsedIcon are the widgets for expanded and collapsed state.
  • headerEdgeInsets the EdgeInsets of header widget
  • headerBackgroundColor can customise header background color
4. Examples
ExpandableGroup(
    isExpanded: index == 0,
    header: _header('Group $index'),
    items: _buildItems(context, group),
    headerEdgeInsets: EdgeInsets.only(left: 16.0, right: 16.0)
)

Submit bugs or request features

Please file feature requests and bugs with GitHub issues tab

Liem Vo GitHub avatar
GitHub 作者

Liem Vo ↗

Just do it

语言CMakeDartC++SwiftHTMLCKotlinObjective-C

此仓库发布的插件

使用的依赖

依赖清单 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 ↗