GenericLaptopFramePainter constructor
const
GenericLaptopFramePainter({
- required TargetPlatform platform,
- required Rect windowPosition,
- Color outerBodyColor = defaultOuterBodyColor,
- Color innerBodyColor = defaultInnerBodyColor,
- Radius outerBodyRadius = defaultOuterBodyRadius,
- Radius innerBodyRadius = defaultInnerBodyRadius,
- EdgeInsets innerBodyInsets = defaultInnerBodyInsets,
- EdgeInsets screenInsets = defaultScreenInsets,
- Radius screenRadius = defaultScreenRadius,
- Radius windowRadius = defaultWindowRadius,
- double bodyHeight = defaultBodyHeight,
- double bodyPadHeight = defaultBodyPadHeight,
- double bodyInsets = defaultBodyInsets,
- Color cameraBorderColor = defaultCameraBorderColor,
- Color cameraInnerColor = defaultCameraInnerColor,
- Color cameraReflectColor = defaultCameraReflectColor,
- double cameraRadius = defaultCameraRadius,
- double cameraBorderWidth = defaultCameraBorderWidth,
- Color baseBodyBottomColor = defaultBaseBodyBottomColor,
- Color baseBodyTopColor = defaultBaseBodyTopColor,
- Color baseBodyPadColor = defaultBaseBodyPadColor,
Implementation
const GenericLaptopFramePainter({
required this.platform,
required this.windowPosition,
this.outerBodyColor = defaultOuterBodyColor,
this.innerBodyColor = defaultInnerBodyColor,
this.outerBodyRadius = defaultOuterBodyRadius,
this.innerBodyRadius = defaultInnerBodyRadius,
this.innerBodyInsets = defaultInnerBodyInsets,
this.screenInsets = defaultScreenInsets,
this.screenRadius = defaultScreenRadius,
this.windowRadius = defaultWindowRadius,
this.bodyHeight = defaultBodyHeight,
this.bodyPadHeight = defaultBodyPadHeight,
this.bodyInsets = defaultBodyInsets,
this.cameraBorderColor = defaultCameraBorderColor,
this.cameraInnerColor = defaultCameraInnerColor,
this.cameraReflectColor = defaultCameraReflectColor,
this.cameraRadius = defaultCameraRadius,
this.cameraBorderWidth = defaultCameraBorderWidth,
this.baseBodyBottomColor = defaultBaseBodyBottomColor,
this.baseBodyTopColor = defaultBaseBodyTopColor,
this.baseBodyPadColor = defaultBaseBodyPadColor,
});