disclosure library

Classes

Disclosure
A versatile widget for creating accessible and visually appealing disclosures, commonly used for accordion-style content.
DisclosureButton
A button that controls the disclosure state.
DisclosureButtonAction
DisclosureButtonWrapper
DisclosureConsumer
A widget that consumes DisclosureController from the closest instance.
DisclosureController
Controller of the disclosure state and how it behaves
DisclosureGroup
A widget that manages a group of disclosures and provides a controller for state management.
DisclosureGroupController
A controller for managing the state of a disclosure group.
DisclosureGroupProvider
An inherited widget that provides access to the DisclosureGroupController.
DisclosureIcon
An interactive icon that visually indicates the disclosure state (open or closed) and allows toggling the state.
DisclosureProvider
An inherited widget for a DisclosureController, which updates its dependencies when the notifier is triggered
DisclosureSwitcher
A widget that switches between two child widgets based on a state value from a DisclosureController.
DisclosureTheme
A Widget that controls how descendant Disclosure should look like.
DisclosureThemeData
Defines the visual properties of Disclosure.
DisclosureTile
A ListTile with an expansion arrow icon that expands or collapses the tile to reveal or hide its children.
DisclosureView
A widget that provides a scrollable container for a single child, often used within a Disclosure widget.

Typedefs

DisclosureBuilder = Widget Function(DisclosureController state, Widget? child)
DisclosureButtonBuilder = Widget Function(VoidCallback action, Widget child)
Invoked to construct the button's container
DisclosureButtonCallback = VoidCallback Function(DisclosureController state)
Determines button behavior based on the disclosure state