DeviceFrame constructor
DeviceFrame({
- Key? key,
- required DeviceInfo device,
- required Widget screen,
- Orientation orientation = Orientation.portrait,
- bool isFrameVisible = true,
Displays the given screen
into the given info
simulated device.
The orientation of the device can be updated if the frame supports it (else it is ignored).
If isFrameVisible
is true
, only the screen
is displayed, but clipped with
the device screen shape.
Implementation
DeviceFrame({
Key? key,
required this.device,
required this.screen,
this.orientation = Orientation.portrait,
this.isFrameVisible = true,
}) : identifier = device.identifier,
super(key: key);