fix: update collapse props

This commit is contained in:
Rongjian Zhang 2022-10-27 00:41:57 +08:00
parent 19a87870bb
commit 0f4192f0be
2 changed files with 2 additions and 2 deletions

View File

@ -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
},

View File

@ -80,7 +80,7 @@ class _ReleaseItemState extends State<ReleaseItem> {
const SizedBox(height: 10),
],
AntCollapse(
activeKey: _isExpanded ? [''] : [],
activeKey: _isExpanded ? {''} : {},
onChange: (_) {
setState(() {
_isExpanded = !_isExpanded;