From 7ccc11562e1f840fcb69c40370745ddbd2a1d413 Mon Sep 17 00:00:00 2001 From: Justin Enerio Date: Sat, 30 Nov 2024 05:06:46 +0800 Subject: [PATCH] feat: update kyc camera resolution (#1625) --- .../features/kyc_sharing/screens/basic_information_screen.dart | 1 + .../lib/features/kyc_sharing/screens/kyc_camera_screen.dart | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/espressocash_app/lib/features/kyc_sharing/screens/basic_information_screen.dart b/packages/espressocash_app/lib/features/kyc_sharing/screens/basic_information_screen.dart index 0642e3dab..1eb548cc8 100644 --- a/packages/espressocash_app/lib/features/kyc_sharing/screens/basic_information_screen.dart +++ b/packages/espressocash_app/lib/features/kyc_sharing/screens/basic_information_screen.dart @@ -83,6 +83,7 @@ class _BasicInformationScreenState extends State { dob != null ? DateFormat('dd/MM/yyyy').format(dob) : ''; _idType = user?.documentType?.toDocumentType(); _idNumberController.text = user?.documentNumber ?? ''; + _isShareData = user?.firstName?.isNotEmpty ?? false; } Future _handleSubmitted() async { diff --git a/packages/espressocash_app/lib/features/kyc_sharing/screens/kyc_camera_screen.dart b/packages/espressocash_app/lib/features/kyc_sharing/screens/kyc_camera_screen.dart index 9c577a0be..7615b5555 100644 --- a/packages/espressocash_app/lib/features/kyc_sharing/screens/kyc_camera_screen.dart +++ b/packages/espressocash_app/lib/features/kyc_sharing/screens/kyc_camera_screen.dart @@ -66,6 +66,7 @@ class _KycCameraScreenState extends State { _controller = FaceCameraController( autoCapture: false, defaultCameraLens: CameraLens.front, + imageResolution: ImageResolution.high, onCapture: (image) { setState(() => _capturedImage = image); },