Skip to content

Commit

Permalink
fix: expansion panel list to expand properly
Browse files Browse the repository at this point in the history
  • Loading branch information
zeshuaro committed Aug 20, 2023
1 parent d4ff757 commit e12b423
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/widgets/list_views/expansion_panel_list.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:appainter/common/common.dart';
import 'package:appainter/widgets/widgets.dart';
import 'package:collection/collection.dart';
import 'package:flutter/material.dart';
import 'package:appainter/common/common.dart';

abstract class ExpansionPanelItem extends StatelessWidget {
String get header;
Expand Down Expand Up @@ -41,9 +41,9 @@ class _MyExpansionPanelListState extends State<MyExpansionPanelList> {
return SingleChildScrollView(
child: ExpansionPanelList(
expandedHeaderPadding: EdgeInsets.zero,
expansionCallback: (int index, bool isExpanded) {
setState(() => _expandStates[index] = !isExpanded);
},
expansionCallback: (int index, bool isExpanded) => setState(
() => _expandStates[index] = isExpanded,
),
children: widget.items.mapIndexed((index, item) {
return ExpansionPanel(
headerBuilder: (context, isExpanded) => _Header(item: item),
Expand Down
2 changes: 1 addition & 1 deletion macos/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0920;
LastUpgradeCheck = 1300;
LastUpgradeCheck = 1430;
ORGANIZATIONNAME = "";
TargetAttributes = {
33CC10EC2044A3C60003C045 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1300"
LastUpgradeVersion = "1430"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down

0 comments on commit e12b423

Please sign in to comment.