ScreenshotHelper class
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
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
captureScreenshot({required String testName, required DeviceConfig device, String? customPath, String? screenshotKey, double? pixelRatio})
→ Future<void>
-
Capture screenshot and save to file
-
cleanupScreenshots([String? customPath])
→ Future<void>
-
Clean up all generated screenshots
-
configureDevice(WidgetTester tester, DeviceConfig device)
→ void
-
Configure device-specific settings for the test
-
createScreenshotApp({required Widget child, required DeviceConfig device, String? screenshotKey})
→ Widget
-
Create a screenshot-ready app wrapper
-
expectScreenshotForDevice(WidgetTester tester, DeviceConfig device, String goldenKey, {double threshold = 0.01})
→ Future<void>
-
Extension for WidgetTester with screenshot functionality
-
generateComparisonReport({required String baseDir, required String compareDir, String? outputFile})
→ Future<void>
-
Generate comparison report between screenshots
-
resetDevice(WidgetTester tester)
→ void
-
Reset device configuration after test