-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hey there! I've tried to implement this package in two projects now, but both times I somehow couldn't get a simple Gallery to run. I must do something wrong because I've legitimately tried everyting I could think of (in the time I had), and I couldn't get past the layout issues even in the most basic cases.
Minimal repro:
testWidgets('can be used', (tester) async {
final gallery = Gallery(
'What am I doing wrong?',
fileName: 'test',
layout: const GridGoldenSceneLayout(),
);
for (final thickness in [0.0, 5, 10, 15, 20, 40, 100]) {
gallery.itemFromWidget(
description: 'thickness $thickness',
widget: FlutterLogo(size: 200),
);
}
await gallery.run(tester);
});
Produces this golden, along with a bunch of overflow exceptions

Things I've tried
ColumnSceneLayout
andRowSceneLayout
- Passing
itemConstraints
to the gallery - A bunch of ways of trying to size the child explicitly
Metadata
Metadata
Assignees
Labels
No labels