v4.1.1expandable_sliver_list
コンテンツを表示または非表示にするために、展開または折りたたみ可能なスリバー・リストです。
ユーザーが展開可能なスリーバーリストを作成できるFlutterウィジェット。カスタムスクロールビュー内でアイテムのリストを展開および折りたたみます!
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
A Flutter widget which creates a Sliver List that you can then either expand or collapse, in order to show or hide the contents of the list.

In your Flutter project, add the package to your dependencies
flutter pub add expandable_sliver_list
or
dependencies:
...
expandable_sliver_list: ^4.1.0
...
A complete example on how to use this widget can be found in the example directory. But the basics are:
Import the package
import 'package:expandable_sliver_list/expandable_sliver_list.dart';
Create a controller and a list of items to display
ExpandableSliverListController controller = ExpandableSliverListController();
List<int> items = [1, 2, 3, 4, 5];
Create the widget
ExpandableSliverList<int>(
initialItems: items,
controller: controller,
builder: (context, item, index) {
return ListTile(
title: Text(item.toString()),
);
},
)
Now you can use the controller to expand or collapse the list
controller.collapse();
controller.expand();
Or to add items to the list
controller.insertItem(54, 2);
controller.removeItem(4);
依存関係一覧 3 件
{"sdk":"flutter"}^2.0.1{"sdk":"flutter"}用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗