DeviceLabTester extension

Drives flutter_test from the same device specs as the preview.

Import package:device_lab/device_lab_testing.dart to use these.

on

Methods

applyDevice(DeviceSpec device, {Orientation orientation = Orientation.portrait, FoldPosture posture = FoldPosture.flat}) → void

Available on WidgetTester, provided by the DeviceLabTester extension

Configures the test view to match device.
pumpOnDevice(Widget widget, DeviceSpec device, {Orientation orientation = Orientation.portrait, FoldPosture posture = FoldPosture.flat, Duration? duration}) → Future<void>

Available on WidgetTester, provided by the DeviceLabTester extension

Calls applyDevice, pumps widget and settles.