Skip to content

Version 0.11.0

Choose a tag to compare

@Autocrab Autocrab released this 18 May 06:52
· 55 commits to main since this release

Pure additive release — existing goldens unaffected.

Added

wrapApp — app-level decorator for matrixGolden
New optional parameter that wraps the auto-built MaterialApp from the outside — the seam for DI providers that live above MaterialApp:

matrixGolden(
  'ProfileCard',
  scenarios: [...],
  axes: axes,
  wrapApp: (app, combination) => ProviderScope(
    overrides: [userRepoProvider.overrideWithValue(FakeUserRepo())],
    child: app,
  ),
);

Works with ProviderScope (Riverpod), BlocProvider / MultiBlocProvider, MultiProvider, or any root-level InheritedWidget. The callback receives the current MatrixCombination so providers can vary per scenario.

Complementary to existing wrapChild (which sits inside MaterialApp.home for layout shells).

Other

  • Added pub.dev topics: testing, golden-tests, widget-testing, visual-regression, snapshot-testing.