These are measured frame times for the transitions in the example app, run in Flutter's profile mode on real hardware. Profile mode is what release performance looks like; debug-mode numbers are not meaningful. Every figure below comes from a recorded run — nothing is estimated.

How these were measured

  • Package: expandable_animation main branch after 0.3.0 (with the constant-radius blur), the example app.
  • Flutter: 3.47.9 (stable), profile mode, measured on 2026-12-01.
  • Method: IntegrationTestWidgetsFlutterBinding.watchPerformance with fully live frames, 8 open/close cycles per scenario (example/benchmark/perf_test.dart).
  • Budget: "over budget" counts frames slower than 16.7 ms (60 Hz). On 90 and 120 Hz displays the per-frame budget is tighter.
  • The first three scenarios include the example's own content (generated gradient artwork). The two "plain content" scenarios use solid colors and text, so they show the cost of the package itself.

Scenarios

ScenarioWhat it does
Card to fullscreen with slotA product card expands to a fullscreen page while its image flies as a shared element, then collapses.
Spring card with blurAn editorial card springs open with background blur (sigma 6) and 30% scrim, then collapses.
Drag to dismissThe music player expands, is dragged down by the finger and dismissed, with velocity-matched collapse.
Plain contentA card of solid color and text expands to a fullscreen list of text rows, then collapses. No artwork.
Plain content with blurThe same, with a spring and background blur (sigma 6).

Results

Times are milliseconds per frame. Build is UI-thread work (where the package's own logic runs); raster is GPU-thread work (drawing).

iPhone 12 (A14, iOS 27.2)

ScenarioFramesBuild avgBuild p99Raster avgRaster p90Over budget (build / raster)
Card to fullscreen with slot4551.166.842.454.130 / 5
Spring card with blur5550.795.563.367.720 / 19
Drag to dismiss10961.5114.052.002.776 / 0
Plain content (package only)4481.288.351.421.770 / 0
Plain content with blur5601.228.221.932.470 / 0

Android phone (vivo I2011, Snapdragon 765G, Android 13)

ScenarioFramesBuild avgBuild p99Raster avgRaster p90Over budget (build / raster)
Card to fullscreen with slot4192.6412.608.7414.273 / 36
Spring card with blur4822.3315.3614.1323.974 / 190
Drag to dismiss10534.3133.307.259.3423 / 6
Plain content (package only)4153.5428.074.656.0011 / 1
Plain content with blur5193.2321.895.997.5714 / 3

MacBook Pro (M1 Pro, macOS desktop)

ScenarioFramesBuild avgBuild p99Raster avgRaster p90Over budget (build / raster)
Card to fullscreen with slot7100.361.667.8811.640 / 19
Spring card with blur10040.290.984.848.770 / 6
Drag to dismiss19250.322.264.745.280 / 0
Plain content (package only)8290.803.171.341.940 / 0
Plain content with blur10410.803.231.672.330 / 0

What the numbers say

  • The package itself is cheap. With plain content, raster time averages 1.3 to 1.4 ms on the iPhone and the Mac and 4.7 ms on the mid-range Android phone, with at most one frame over budget.
  • Heavy content costs raster time. Most raster time in the other scenarios comes from the example's gradient artwork, which is drawn in both layers during the cross-fade; simpler content renders faster.
  • Background blur is the expensive option. On the mid-range Android phone, blur over the artwork still pushed 190 of 482 frames over budget. Leave backgroundBlur at 0 (the default) or keep it small for low-end hardware.
  • Blur got cheaper. The blur now keeps a constant radius and fades in with opacity instead of animating its radius. On the Android phone this cut the plain-content blur scenario from 12.51 to 7.57 ms raster p90 and from 23 to 3 frames over budget. The iPhone 12 was unchanged.
  • Build time stays low on average (under 4.5 ms everywhere). Build p99 shows a few isolated long frames per run, which count toward the build over-budget column.

Run it yourself

git clone https://github.com/boffincoders/expandable_animation.git
cd expandable_animation
./scripts/benchmark.sh -d <device-id>   # for example: macos, or a phone id from `flutter devices`

Profile mode needs a physical phone or a desktop target; the iOS Simulator does not support it. Results are printed and saved to example/build/benchmark/. To measure your own app, wrap a transition in binding.watchPerformance the same way. See also the performance notes.