diff --git a/gallery/gallery/lib/pages/settings_list_item.dart b/gallery/gallery/lib/pages/settings_list_item.dart index 17df8b65f..0ec8b71d3 100644 --- a/gallery/gallery/lib/pages/settings_list_item.dart +++ b/gallery/gallery/lib/pages/settings_list_item.dart @@ -185,7 +185,6 @@ class _SettingsListItemState extends State> @override Widget build(BuildContext context) { _handleExpansion(); - final closed = !widget.isExpanded && _controller.isDismissed; final theme = Theme.of(context); final optionsList = []; @@ -227,25 +226,23 @@ class _SettingsListItemState extends State> return AnimatedBuilder( animation: _controller.view, builder: _buildHeaderWithChildren, - child: closed - ? null - : Container( - margin: const EdgeInsetsDirectional.only(start: 24, bottom: 40), - decoration: BoxDecoration( - border: BorderDirectional( - start: BorderSide( - width: 2, - color: theme.colorScheme.background, - ), - ), - ), - child: ListView.builder( - shrinkWrap: true, - physics: NeverScrollableScrollPhysics(), - itemBuilder: (context, index) => optionsList[index], - itemCount: optionsList.length, - ), + child: Container( + margin: const EdgeInsetsDirectional.only(start: 24, bottom: 40), + decoration: BoxDecoration( + border: BorderDirectional( + start: BorderSide( + width: 2, + color: theme.colorScheme.background, ), + ), + ), + child: ListView.builder( + shrinkWrap: true, + physics: NeverScrollableScrollPhysics(), + itemBuilder: (context, index) => optionsList[index], + itemCount: optionsList.length, + ), + ), ); } }