Skip to content

Unexpected Bottom Sheet Opens When Sharing from Gallery App on iOS #135

@ismailgzn

Description

@ismailgzn

Bug Report: Unexpected Bottom Sheet Opens When Sharing from Gallery App on iOS

Description

When using share_handler package to share media files (images/videos) from a gallery app (e.g., Photos app) to my Flutter app on iOS, an unexpected bottom sheet is opening. This bottom sheet appears to be triggered by the share_handler package itself, interfering with the normal share flow.

Steps to Reproduce

  1. Install and configure share_handler package in Flutter app for iOS
  2. Open the Photos app (or any gallery app) on iOS device
  3. Select a media file (image or video)
  4. Tap the share button
  5. Select my app from the share menu
  6. Observed: An unexpected bottom sheet opens instead of directly processing the shared content

Expected Behavior

When sharing from a gallery app on iOS:

  • The app should receive the shared media file via share_handler
  • The file should be processed directly (in my case, imported as an audio/video project)
  • No bottom sheet should appear unless explicitly triggered by my app's logic
  • The share extension should work seamlessly without additional UI interruptions

Actual Behavior

  • An unwanted bottom sheet opens when the share intent is received from gallery apps
  • This appears to be a system or package-level bottom sheet, not from my app's code
  • The bottom sheet interferes with the user experience
  • The issue specifically occurs when sharing from gallery apps (Photos app), but may work correctly from other sources

Environment

  • Flutter Version: Flutter 3.38.0 • channel stable •
  • Dart Version: Dart SDK version: 3.10.0-290.4.beta (beta) (Thu Oct 30 11:12:42 2025 -0700) on "macos_arm64"
  • share_handler Version: share_handler: ^0.0.25
  • Platform: iOS
  • Device: iPhone 13 mini
  • iOS Version: iOS 26.1
  • Xcode Version: Xcode 16.4

Additional Information

  • The issue specifically occurs when sharing from gallery apps (Photos app)
  • Other sharing sources might work correctly
  • The bottom sheet appears to be a system UI element or from the package itself
  • I have a custom Share Extension, but this issue is related to share_handler package behavior
  • The bottom sheet appears even before my app's code processes the shared content
  • This might be related to iOS share sheet behavior or the package's internal UI handling

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions