|
|
@ -185,7 +185,6 @@ class _SettingsListItemState<T> extends State<SettingsListItem<T>>
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
_handleExpansion();
|
|
|
|
_handleExpansion();
|
|
|
|
final closed = !widget.isExpanded && _controller.isDismissed;
|
|
|
|
|
|
|
|
final theme = Theme.of(context);
|
|
|
|
final theme = Theme.of(context);
|
|
|
|
|
|
|
|
|
|
|
|
final optionsList = <Widget>[];
|
|
|
|
final optionsList = <Widget>[];
|
|
|
@ -227,9 +226,7 @@ class _SettingsListItemState<T> extends State<SettingsListItem<T>>
|
|
|
|
return AnimatedBuilder(
|
|
|
|
return AnimatedBuilder(
|
|
|
|
animation: _controller.view,
|
|
|
|
animation: _controller.view,
|
|
|
|
builder: _buildHeaderWithChildren,
|
|
|
|
builder: _buildHeaderWithChildren,
|
|
|
|
child: closed
|
|
|
|
child: Container(
|
|
|
|
? null
|
|
|
|
|
|
|
|
: Container(
|
|
|
|
|
|
|
|
margin: const EdgeInsetsDirectional.only(start: 24, bottom: 40),
|
|
|
|
margin: const EdgeInsetsDirectional.only(start: 24, bottom: 40),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: BorderDirectional(
|
|
|
|
border: BorderDirectional(
|
|
|
|