Gallery class

A golden builder that builds independent widget tree UIs and then either renders those into a single scene file, or compares them against an existing scene file.

Constructors

Gallery(String sceneDescription, {Directory? directory, required String fileName, GoldenSceneItemScaffold? itemScaffold, BoxConstraints? itemConstraints, Finder? itemBoundsFinder, required SceneLayout layout, GoldenSetup? itemSetup})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

itemFromBuilder({String? id, required String description, TargetPlatform? platform, bool forEachPlatform = false, GoldenSceneItemScaffold? scaffold, BoxConstraints? constraints, Finder? boundsFinder, GoldenSetup? setup, int tolerancePx = 0, required WidgetBuilder builder}) Gallery
Adds a screenshot item to the scene, based on a widget created with a given builder.
itemFromPumper({String? id, required String description, TargetPlatform? platform, bool forEachPlatform = false, GoldenSceneItemScaffold? scaffold, BoxConstraints? constraints, Finder? boundsFinder, GoldenSetup? setup, int tolerancePx = 0, required GoldenSceneItemPumper pumper}) Gallery
Adds a screenshot item to the scene, based on a widget tree that's pumped with pumper.
itemFromWidget({String? id, required String description, TargetPlatform? platform, bool forEachPlatform = false, GoldenSceneItemScaffold? scaffold, BoxConstraints? constraints, Finder? boundsFinder, GoldenSetup? setup, int tolerancePx = 0, required Widget widget}) Gallery
Adds a screenshot item to the scene, based on a given widget.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(WidgetTester tester, {FlutterCamera? camera}) Future<void>
Either renders a new golden to a scene file, or compares new screenshots against an existing golden scene file.
toString() String
A string representation of this object.
inherited

Operators

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