diff --git a/lib/presentation/mixins/single_image_picker_mixin.dart b/lib/presentation/mixins/single_image_picker_mixin.dart index 24fcae85be..f4a08282db 100644 --- a/lib/presentation/mixins/single_image_picker_mixin.dart +++ b/lib/presentation/mixins/single_image_picker_mixin.dart @@ -32,10 +32,11 @@ mixin SingleImagePickerMixin on CommonMediaPickerMixin { context: context, controller: imagePickerController, backgroundImageCamera: const AssetImage("assets/verification.png"), - initialChildSize: 0.6, + initialChildSize: MediaPickerStyle.initialChildSize, permissionStatus: permissionStatusPhotos, assetBackgroundColor: LinagoraSysColors.material().background, - expandedWidget: const SizedBox(height: 50), + expandedWidget: + const SizedBox(height: MediaPickerStyle.expandedWidgetHeight), counterImageBuilder: (_) => const SizedBox.shrink(), goToSettingsWidget: Column( mainAxisAlignment: MainAxisAlignment.center, diff --git a/lib/presentation/style/media_picker_style.dart b/lib/presentation/style/media_picker_style.dart index 88adf053b5..c8d31a491f 100644 --- a/lib/presentation/style/media_picker_style.dart +++ b/lib/presentation/style/media_picker_style.dart @@ -48,4 +48,6 @@ class MediaPickerStyle { static double photoPermissionFontSize = 16; static FontWeight photoPermissionFontWeight = FontWeight.w600; + + static const double expandedWidgetHeight = 50; }