simulate_core
library
Functions
buildGenericDesktopMonitorDevice ({required TargetPlatform platform , required String id , required String name , required Size screenSize , required Rect windowPosition , EdgeInsets safeAreas = EdgeInsets.zero , double pixelRatio = 2.0 , EdgeInsets ? rotatedSafeAreas , GenericDesktopMonitorFramePainter ? framePainter })
→ DeviceInfo
Creates a generic desktop monitor device definition for the given name
, target
platform
and screenSize
. The windowPosition
defines the position of a virtual
window with a window frame adapted for the given platform.
buildGenericLaptopDevice ({required TargetPlatform platform , required String id , required String name , required Size screenSize , required Rect windowPosition , EdgeInsets safeAreas = EdgeInsets.zero , double pixelRatio = 2.0 , EdgeInsets ? rotatedSafeAreas , GenericLaptopFramePainter ? framePainter })
→ DeviceInfo
Creates a generic laptop device definition.
buildGenericPhoneDevice ({required TargetPlatform platform , required String id , required String name , required Size screenSize , EdgeInsets safeAreas = EdgeInsets.zero , EdgeInsets rotatedSafeAreas = EdgeInsets.zero , double pixelRatio = 2.0 , GenericPhoneFramePainter framePainter = const GenericPhoneFramePainter() })
→ DeviceInfo
Creates a generic phone device definition.
buildGenericTabletDevice ({required TargetPlatform platform , required String id , required String name , required Size screenSize , EdgeInsets safeAreas = EdgeInsets.zero , EdgeInsets rotatedSafeAreas = EdgeInsets.zero , double pixelRatio = 2.0 , GenericTabletFramePainter framePainter = const GenericTabletFramePainter() })
→ DeviceInfo
Creates a generic tablet device definition.