multi_state_sheet/state_snapping/models/components_snapping_model library

Classes

ComponentsSnappingModel
Represents a snapping model for calculating snapping positions and states based on the sizes of Widgets in a MultiStateSheet. It generates snapping positions using the provided descriptions of components.
SnapComponent
Abstract base class for snap components, providing a contract for calculating the size of components within a snapping behavior.
SnapComponentAtFraction
Represents a snap component that stops at a specified fraction position.
SnapComponentAtPosition
Represents a snap component that stops at a specific pixel position in the MultiStateSheet.
SnapComponentMap
A wrapper around a snap component that applies a mapping function to its size.
SnapComponentMerge
A snap component that merges the sizes of two components using a custom merge function.
SnapComponentSize
Represents a snap component with a specified size based on a multiplier of the component's initial size.
SnapComponentWithOffset
Represents a snap component with a specified size and an additional pixel offset.
SnapComponentWithOffsetFraction
Represents a snap component with a size and an fraction, where the fraction is a fraction of viewport.

Enums

Components
Enum representing the various components of a MultiStateSheet layout.

Typedefs

OffsetMap = double Function(double offset)
OffsetMerge = double Function(double a, double b)