Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/searchable_listview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ class SearchableList<T> extends StatefulWidget {
this.closeKeyboardWhenScrolling = false,
this.hideEmptyExpansionItems = false,
this.expansionTileEnabled = true,
this.initiallyExpanded = false,
this.sortWidget,
this.sortPredicate,
this.displaySearchIcon = true,
Expand Down Expand Up @@ -456,6 +457,9 @@ class SearchableList<T> extends StatefulWidget {
/// Indicate whether the expansion tile will be enabled or not
late bool expansionTileEnabled = true;

/// Indicate whether the expansion tiles are initially expanded.
bool initiallyExpanded = false;

/// max width of search text field
final double? searchFieldWidth;

Expand Down Expand Up @@ -679,6 +683,7 @@ class _SearchableListState<T> extends State<SearchableList<T>> {
var entryKey = widget.expansionListData.keys.toList()[index];
var entryValueList = widget.expansionListData[entryKey];
return ExpansionTile(
initiallyExpanded: widget.initiallyExpanded,
title: widget.expansionTitleBuilder.call(entryKey),
enabled: widget.expansionTileEnabled,
controller: expansionTileControllers[index],
Expand Down