golden_utils library

Constants

smallPhone → const Device
Small phone Device (375x667) with iPhone-style safe area insets.
smallPhoneWithZoom2 → const Device
Same Device as smallPhone but with text scaled by 2.

Functions

screenTestGoldens(String title, {required Widget widget, Future<void> initScreen(WidgetTester)?, Future<void> afterPumpAction(WidgetTester)?, int? waitDurationForAnimationInMs, bool onlyDark = false, bool onlyLight = false, List<Device> additionalDevices = const [], List<Device>? overrideDevices, Iterable<LocalizationsDelegate>? localizations}) → void
Full-screen golden test of a widget on multiple Devices.
simpleTestGoldens(String title, {required Widget widget, required double height, ThemeData? lightTheme, ThemeData? darkTheme, double? width, Iterable<LocalizationsDelegate>? localizations}) → void
Golden test of a single widget on a fixed surface (width x height).
testGoldensWithTextScale(String title, {required Widget widget, required double height, ThemeData? lightTheme, ThemeData? darkTheme, double? width, Iterable<LocalizationsDelegate>? localizations}) → void
Golden test of a single widget rendered at several text scale factors.