v0.0.8expandable_group
一个新的Flutter小部件支持用户展开和折叠列表。
7喜欢 69近 30 天下载70Pub 分数
平台暂无数据
liemvo/expandable_group open-source repository details.
以下为英文项目原文快照,最新内容请访问 GitHub。
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.
pubspec.yaml and run pub getdependencies:
expandable_group: ^0.0.6
expandable_group_widget.dart to your file project where is going to use the ListExpandableWidget.import 'package:expandable_group/expandable_group_widget.dart';
ExpandableGroup has some properties as belowheader the header widget and will display in the listitems the list of ListTile will display for each groupisExpanded 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 widgetheaderBackgroundColor can customise header background colorExpandableGroup(
isExpanded: index == 0,
header: _header('Group $index'),
items: _buildItems(context, group),
headerEdgeInsets: EdgeInsets.only(left: 16.0, right: 16.0)
)
Please file feature requests and bugs with GitHub issues tab
依赖清单 2 项
{"sdk":"flutter"}{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗