GlassDisclosureGroup constructor

const GlassDisclosureGroup({
  1. Key? key,
  2. required Widget title,
  3. required List<Widget> children,
  4. Widget? subtitle,
  5. Widget? leading,
  6. Widget? trailing,
  7. bool? isExpanded,
  8. bool initiallyExpanded = false,
  9. ValueChanged<bool>? onExpansionChanged,
  10. EdgeInsetsGeometry contentPadding = const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
  11. EdgeInsetsGeometry? childrenPadding,
  12. Duration animationDuration = const Duration(milliseconds: 250),
  13. Curve animationCurve = Curves.easeInOutCubic,
  14. SpringDescription? spring,
  15. bool enableHaptics = true,
  16. bool showDividers = true,
  17. TextStyle? titleStyle,
  18. TextStyle? subtitleStyle,
  19. Color? leadingIconColor,
  20. Widget headerBuilder(
    1. BuildContext context,
    2. bool isExpanded,
    3. 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;