GlassDisclosureGroup constructor
const
GlassDisclosureGroup({
- Key? key,
- required Widget title,
- required List<
Widget> children, - Widget? subtitle,
- Widget? leading,
- Widget? trailing,
- bool? isExpanded,
- bool initiallyExpanded = false,
- ValueChanged<
bool> ? onExpansionChanged, - EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
- EdgeInsetsGeometry? childrenPadding,
- Duration animationDuration = const Duration(milliseconds: 250),
- Curve animationCurve = Curves.easeInOutCubic,
- SpringDescription? spring,
- bool enableHaptics = true,
- bool showDividers = true,
- TextStyle? titleStyle,
- TextStyle? subtitleStyle,
- Color? leadingIconColor,
- Widget headerBuilder(
- BuildContext context,
- bool isExpanded,
- VoidCallback toggle
Creates a GlassDisclosureGroup designed to be nested inside a GlassGroupedSection or GlassContainer.card.
Implementation
const GlassDisclosureGroup({
super.key,
required this.title,
required this.children,
this.subtitle,
this.leading,
this.trailing,
this.isExpanded,
this.initiallyExpanded = false,
this.onExpansionChanged,
this.contentPadding = const EdgeInsets.symmetric(
horizontal: 16,
vertical: 12,
),
this.childrenPadding,
this.animationDuration = const Duration(milliseconds: 250),
this.animationCurve = Curves.easeInOutCubic,
this.spring,
this.enableHaptics = true,
this.showDividers = true,
this.titleStyle,
this.subtitleStyle,
this.leadingIconColor,
this.headerBuilder,
}) : _useOwnLayer = false,
_settings = null,
_quality = null;