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

flutter_expanded_tile 封面
插件详情v0.4.0

flutter_expanded_tile

一个类似于列表项的展开项,支持前置小部件,并带有内容展开动画的程序控制。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
1.5万
喜欢数
77
Pub 分数
150

安装插件

flutter pub add flutter_expanded_tile

插件介绍

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

flutter_expanded_tile 是一个可自定义的展开式列表项小部件,它模仿了标准列表项的行为,同时支持前置小部件和带有动画的平滑程序化内容展开。它通过在列表中实现可折叠区域来增强用户界面设计,非常适合以简洁、互动的方式组织内容。该包可在所有主要平台上使用,包括移动设备、网页和桌面端,确保行为一致。它为开发者提供了对展开状态和过渡效果的精细控制。

适合场景

  • 创建可折叠的设置面板
  • 在应用程序中构建常见问题部分
  • 将详细信息整理成列表
  • 设计动态表单区域
  • 实现可展开的产品详情

主要特点

  • 支持前置小部件
  • 程序化展开控制
  • 展开时的平滑动画
  • 跨平台兼容性
  • 可自定义外观
  • 直观的状态管理 API

适合对象

  • 开发交互式列表的开发者
  • 需要可扩展内容的UI设计师
  • 需要可折叠导航或设置的应用程序
  • 具有跨平台部署需求的项目
  • 注重流畅动画的团队

使用建议

  • 在复杂布局中需要仔细处理状态
  • 可能会影响大量图块时的性能
  • 仅限垂直扩展
  • 不适用于非列表容器的用例
  • 依赖Flutter的动画框架以实现流畅性

原始 README

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

flutter_expanded_tile

An Expansion tile similar to the list tile supports leading widget,and programatic control with content expansion animation.

Getting Started

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  flutter_expanded_tile: [latest version]
2. Install it
$ flutter pub get
3. Import it
import 'package:flutter_expanded_tile/flutter_expanded_tile.dart';

Example

See Example page for example code.

ToDo list

[x] Adding Null Safety. [x] Adding Tap Callbacks. [x] Adding Listview widget with available controller for certain index. [x] Adding new separated constructor to the ExpandedTileList widget. [x] Adding border data to the tile with a full tile border feature.

Contributing

Contributing is more than welcomed on any of my packages/plugins. I will try to keep adding suggested features as i go.

Versioning

  • V0.4.0 - Refactored/Updated some code + Resolved some issues + Added 'initialinitiallyOpenedControllersIndexes' Property to the ListTile + Added footer widget to the tile.
  • V0.3.7 - Resolved some issues + Added 'disableAnimation' Property to the Tile.
  • V0.3.6 - Added 'Enabled' Property to the Tile.
  • V0.3.5 - Added ExpandedTileList.separated constructor to the ExpandedTileList widget.
  • V0.3.4 - Added ExpandedTileList widget.
  • V0.3.3 - Added Documentations and refactored code.
  • V0.3.2 - Added initial expansion state to the controller and Tap callbacks to the widget.
  • V0.3.0 - Added Null Safety, Changed some customization properties, Removed checkbox trailing widget as it is possible to implement with a widget,and fixed some bugs.
  • V0.2.1 - Added onChecked callback.
  • V0.2.0 - Added controller for programatic expansion and checkbox functionality.
  • V0.1.0 - Initial Release.

Authors

Michael Aziz (Micazi) - Github

License

This project is licensed under the MIT License - see the LICENSE.md file for details

所属分类

源码仓库

使用此插件的项目

暂无相关数据。