pumpWidgetAndMatchWithGesture method
Future<void>
pumpWidgetAndMatchWithGesture({
- required String groupTitle,
- required GoldenBuilder builder,
- Future gestureBuilder()?,
- bool? autoHeight = true,
- Size? surfaceSize,
- double? textScaleSize,
- Iterable<
LocalizationsDelegate> ? localizationsDelegates, - Iterable<
Locale> ? supportedLocales, - WildnessProperties? config,
- TextStyle? defaultTextStyle,
- Color? primaryColor,
Implementation
Future<void> pumpWidgetAndMatchWithGesture({
required String groupTitle,
required GoldenBuilder builder,
Future Function()? gestureBuilder,
bool? autoHeight = true,
Size? surfaceSize,
double? textScaleSize,
Iterable<LocalizationsDelegate<dynamic>>? localizationsDelegates,
Iterable<Locale>? supportedLocales,
WildnessProperties? config,
TextStyle? defaultTextStyle,
Color? primaryColor,
}) async {
await pumpWidgetBuilder(
builder.build(),
wrapper: wildnessWidgetWrapper(
config: config,
defaultTextStyle: defaultTextStyle,
localizationsDelegates: localizationsDelegates,
supportedLocales: supportedLocales,
primaryColor: primaryColor,
),
surfaceSize: surfaceSize ?? const Size(800, 600),
textScaleSize: textScaleSize ?? 1.0,
);
await pumpAndSettle();
await gestureBuilder?.call();
await screenMatchesGolden(
this,
screenMatchesName(groupTitle),
autoHeight: autoHeight,
);
}