Skip to content

Commit 0f4192f

Browse files
committed
fix: update collapse props
1 parent 19a8787 commit 0f4192f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/widgets/files_item.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class FilesItem extends StatelessWidget {
2727
final theme = Provider.of<ThemeModel>(context);
2828
final codeProvider = Provider.of<CodeModel>(context);
2929
return AntCollapse(
30-
activeKey: const [''],
30+
activeKey: const {},
3131
onChange: (_) {
3232
// TODO: set active
3333
},

lib/widgets/release_item.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class _ReleaseItemState extends State<ReleaseItem> {
8080
const SizedBox(height: 10),
8181
],
8282
AntCollapse(
83-
activeKey: _isExpanded ? [''] : [],
83+
activeKey: _isExpanded ? {''} : {},
8484
onChange: (_) {
8585
setState(() {
8686
_isExpanded = !_isExpanded;

0 commit comments

Comments
 (0)