搜尋套件、儲存庫與 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

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。