diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 38baa3da..e776a71e 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -1,51 +1,53 @@ - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleDisplayName - camelus - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - camelus - CFBundlePackageType - APPL - CFBundleShortVersionString - $(FLUTTER_BUILD_NAME) - CFBundleSignature - ???? - CFBundleVersion - $(FLUTTER_BUILD_NUMBER) - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UIViewControllerBasedStatusBarAppearance - - CADisableMinimumFrameDurationOnPhone - - UIApplicationSupportsIndirectInputEvents - - + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + camelus + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + camelus + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + CADisableMinimumFrameDurationOnPhone + + UIApplicationSupportsIndirectInputEvents + + NSPhotoLibraryUsageDescription + Photo access is used to add account profile, include pictures in posts + diff --git a/lib/presentation_layer/components/write_post.dart b/lib/presentation_layer/components/write_post.dart index b763dc56..e980d82f 100644 --- a/lib/presentation_layer/components/write_post.dart +++ b/lib/presentation_layer/components/write_post.dart @@ -41,7 +41,11 @@ class _WritePostState extends ConsumerState { List _mentionedInPost = []; _addImage() async { - FilePickerResult? result = await FilePicker.platform.pickFiles(); + FilePickerResult? result = await FilePicker.platform.pickFiles( + allowMultiple: false, + type: FileType.image, + dialogTitle: "select image", + ); if (result != null) { File file = File(result.files.single.path!); diff --git a/lib/presentation_layer/routes/nostr/onboarding/onboarding_picture.dart b/lib/presentation_layer/routes/nostr/onboarding/onboarding_picture.dart index a331ec0a..de12a690 100644 --- a/lib/presentation_layer/routes/nostr/onboarding/onboarding_picture.dart +++ b/lib/presentation_layer/routes/nostr/onboarding/onboarding_picture.dart @@ -32,7 +32,11 @@ class _OnboardingPictureState extends ConsumerState { bool pictureSelected = false; _pickFile() async { - FilePickerResult? result = await FilePicker.platform.pickFiles(); + FilePickerResult? result = await FilePicker.platform.pickFiles( + allowMultiple: false, + type: FileType.image, + dialogTitle: "select image", + ); if (result != null) { File file = File(result.files.single.path!); diff --git a/lib/presentation_layer/routes/nostr/onboarding/onboarding_profile.dart b/lib/presentation_layer/routes/nostr/onboarding/onboarding_profile.dart index b31caeea..84b7c70a 100644 --- a/lib/presentation_layer/routes/nostr/onboarding/onboarding_profile.dart +++ b/lib/presentation_layer/routes/nostr/onboarding/onboarding_profile.dart @@ -28,7 +28,11 @@ class OnboardingProfile extends ConsumerStatefulWidget { class _OnboardingProfileState extends ConsumerState { Future _pickFile() async { - FilePickerResult? result = await FilePicker.platform.pickFiles(); + FilePickerResult? result = await FilePicker.platform.pickFiles( + allowMultiple: false, + type: FileType.image, + dialogTitle: "select image", + ); if (result != null) { File file = File(result.files.single.path!);