AutoHeaderHeight class

Opts the header row into content-measured height instead of a fixed scalar. Headers aren't virtualized, so this is measured synchronously every layout pass — no indexing/estimation machinery needed.

Header content is measured with a height that's loose but bounded by maxHeight (not infinite) — the same constraint Table/IntrinsicHeight users already live with in vanilla Flutter. Avoid Expanded/Spacer, and avoid Align/Container(alignment: ...) without heightFactor: 1.0 — those widgets expand to fill any bounded incoming height by default, so an unguarded one reports maxHeight as the "measured" height regardless of actual content.

Known limitation: the filter row is not measured — it stays at the theme's filterRowHeight.

Constructors

AutoHeaderHeight({double estimatedHeight = 48.0, double minHeight = 0.0, double maxHeight = 300.0})
const

Properties

estimatedHeight double
Seed height used for the very first layout, before the header has been measured once.
final
hashCode int
The hash code for this object.
no setteroverride
maxHeight double
final
minHeight double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override