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
| Scenario | What it does |
| Card to fullscreen with slot | A product card expands to a fullscreen page while its image flies as a shared element, then collapses. |
| Spring card with blur | An editorial card springs open with background blur (sigma 6) and 30% scrim, then collapses. |
| Drag to dismiss | The music player expands, is dragged down by the finger and dismissed, with velocity-matched collapse. |
| Plain content | A card of solid color and text expands to a fullscreen list of text rows, then collapses. No artwork. |
| Plain content with blur | The 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)
| Scenario | Frames | Build avg | Build p99 | Raster avg | Raster p90 | Over budget (build / raster) |
| Card to fullscreen with slot | 455 | 1.16 | 6.84 | 2.45 | 4.13 | 0 / 5 |
| Spring card with blur | 555 | 0.79 | 5.56 | 3.36 | 7.72 | 0 / 19 |
| Drag to dismiss | 1096 | 1.51 | 14.05 | 2.00 | 2.77 | 6 / 0 |
| Plain content (package only) | 448 | 1.28 | 8.35 | 1.42 | 1.77 | 0 / 0 |
| Plain content with blur | 560 | 1.22 | 8.22 | 1.93 | 2.47 | 0 / 0 |
Android phone (vivo I2011, Snapdragon 765G, Android 13)
| Scenario | Frames | Build avg | Build p99 | Raster avg | Raster p90 | Over budget (build / raster) |
| Card to fullscreen with slot | 419 | 2.64 | 12.60 | 8.74 | 14.27 | 3 / 36 |
| Spring card with blur | 482 | 2.33 | 15.36 | 14.13 | 23.97 | 4 / 190 |
| Drag to dismiss | 1053 | 4.31 | 33.30 | 7.25 | 9.34 | 23 / 6 |
| Plain content (package only) | 415 | 3.54 | 28.07 | 4.65 | 6.00 | 11 / 1 |
| Plain content with blur | 519 | 3.23 | 21.89 | 5.99 | 7.57 | 14 / 3 |
MacBook Pro (M1 Pro, macOS desktop)
| Scenario | Frames | Build avg | Build p99 | Raster avg | Raster p90 | Over budget (build / raster) |
| Card to fullscreen with slot | 710 | 0.36 | 1.66 | 7.88 | 11.64 | 0 / 19 |
| Spring card with blur | 1004 | 0.29 | 0.98 | 4.84 | 8.77 | 0 / 6 |
| Drag to dismiss | 1925 | 0.32 | 2.26 | 4.74 | 5.28 | 0 / 0 |
| Plain content (package only) | 829 | 0.80 | 3.17 | 1.34 | 1.94 | 0 / 0 |
| Plain content with blur | 1041 | 0.80 | 3.23 | 1.67 | 2.33 | 0 / 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.