Skip to content

Commit

Permalink
fix: assertion in toggle list
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 committed Nov 4, 2024
1 parent d6bd6ea commit 9a03c7c
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,15 @@ class _ToggleListBlockComponentWidgetState
Widget buildComponentWithChildren(BuildContext context) {
return Stack(
children: [
Positioned.fill(
left: cachedLeft,
top: padding.top,
child: Container(
width: double.infinity,
color: backgroundColor,
if (backgroundColor != Colors.transparent)
Positioned.fill(
left: cachedLeft,
top: padding.top,
child: Container(
width: double.infinity,
color: backgroundColor,
),
),
),
NestedListWidget(
indentPadding: indentPadding,
child: buildComponent(context),
Expand Down

0 comments on commit 9a03c7c

Please sign in to comment.