From 26f34977c1b0da9e9aadb98c6a85f41a53c21aed Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Wed, 27 Dec 2023 20:20:24 +0100 Subject: [PATCH] [iOS] fixed stub image cover fit --- .../camera_preview/widget_camera_preview.dart | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/screens/metering/components/camera_container/components/camera_preview/widget_camera_preview.dart b/lib/screens/metering/components/camera_container/components/camera_preview/widget_camera_preview.dart index e6f1699..fb86870 100644 --- a/lib/screens/metering/components/camera_container/components/camera_preview/widget_camera_preview.dart +++ b/lib/screens/metering/components/camera_container/components/camera_preview/widget_camera_preview.dart @@ -84,7 +84,16 @@ class _CameraPreviewBuilderState extends State<_CameraPreviewBuilder> { @override Widget build(BuildContext context) { if (PlatformConfig.cameraStubImage.isNotEmpty) { - return Image.asset(PlatformConfig.cameraStubImage); + return Stack( + children: [ + Positioned.fill( + child: Image.asset( + PlatformConfig.cameraStubImage, + fit: BoxFit.cover, + ), + ), + ], + ); } return ValueListenableBuilder( valueListenable: _initializedNotifier,