Simulated.sample constructor

const Simulated.sample({
  1. required Widget child,
  2. Locale? locale,
  3. Key? key,
})

By using this constructor, you can use a very simple sample device frame image. It is not recommended to use this for the actual screenshots for the store.

Implementation

const Simulated.sample({required this.child, this.locale, Key? key})
    : deviceFrameImage = const Image(
          image: AssetImage('assets/sample_device_frame.png',
              package: 'screenshot_maker')),
      innerScreenSize = const Size(1658, 3588),
      innerScreenOffset = const Size(116, 103),
      originalLogicalScreenSize = const Size(414, 896),
      viewPadding =
          const PhysicalViewPadding(left: 0, top: 68, right: 0, bottom: 66),
      super(key: key);