fix: update collapse props
This commit is contained in:
parent
19a87870bb
commit
0f4192f0be
|
@ -27,7 +27,7 @@ class FilesItem extends StatelessWidget {
|
|||
final theme = Provider.of<ThemeModel>(context);
|
||||
final codeProvider = Provider.of<CodeModel>(context);
|
||||
return AntCollapse(
|
||||
activeKey: const [''],
|
||||
activeKey: const {},
|
||||
onChange: (_) {
|
||||
// TODO: set active
|
||||
},
|
||||
|
|
|
@ -80,7 +80,7 @@ class _ReleaseItemState extends State<ReleaseItem> {
|
|||
const SizedBox(height: 10),
|
||||
],
|
||||
AntCollapse(
|
||||
activeKey: _isExpanded ? [''] : [],
|
||||
activeKey: _isExpanded ? {''} : {},
|
||||
onChange: (_) {
|
||||
setState(() {
|
||||
_isExpanded = !_isExpanded;
|
||||
|
|
Loading…
Reference in New Issue