diff --git a/lib/src/golden_test_adapter.dart b/lib/src/golden_test_adapter.dart index 852c002..c8252b2 100644 --- a/lib/src/golden_test_adapter.dart +++ b/lib/src/golden_test_adapter.dart @@ -262,7 +262,10 @@ class FlutterGoldenTestAdapter extends GoldenTestAdapter { minHeight: constraints.minHeight, maxWidth: constraints.maxWidth, maxHeight: constraints.maxHeight, - child: Center(child: widget), + child: Center( + key: childKey, + child: widget, + ), ), ); },