Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeafter_layout

Execute code after the first layout of your widget has been performed.

pub.devRemove
persistent_header_adaptive

Provides a SliverPersistentHeader that automatically adapts its height to its child content.

pub.devRemove
ScoresHealth5053 (best)
Maintenance08 (best)
Quality100100
Popularity95 (best)44
Community69 (best)46
Compatibility100100
UsageDownloads (30 days)244k (best)5.7k
Likes779 (best)13
Pub points160 / 160160 / 160
GitHub stars476 (best)6
MaintenanceLatest release1.2.0, 5 years ago2.1.3, a year ago (best)
Major versions in 12 months00
Contributors6 (best)2
Publisherfluttercommunity.devcamillobucciarelli.dev
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAndroid, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindFlutter widgetsFlutter widgets
Code generationNoNo
Direct dependencies00
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Prevents crashes caused by triggering layout-dependent code in initState
  • Simple mixin-based usage
  • Automatically checks if the widget is mounted before executing the callback
  • Eliminates manual height calculations
  • Works with pinned and floating headers
  • Simple API with optional initialHeight for performance
Weaknesses
  • Limited to a single specific lifecycle utility scope
  • May encourage imperative patterns when declarative approaches could work
  • Adds a measurement step that may impact performance on very dynamic content
  • Limited to Flutter’s sliver system
WarningsNoneNone
after_layout vs persistent_header_adaptive: which Flutter package should you use? | pubscout