DeviceFrame constructor

DeviceFrame({
  1. Key? key,
  2. required DeviceInfo device,
  3. required Widget screen,
  4. Orientation orientation = Orientation.portrait,
  5. 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);