Skip to content

[Bug]: The app cannot be used after sharing pictures to rednote #3635

@JamieYee

Description

@JamieYee

Platform

ios 18.5

Plugin

share_plus

Version

11.0.0

Flutter SDK

3.32.4 3.19.6

Steps to reproduce

Reproduction Steps:

  1. Use the SharePlus.instance.share(ShareParams(files: [imagePath] )) method of share_plus to share a local image to RedNote.
  2. Select RedNote and complete the share.
  3. Return to the original Flutter app.

Actual Result:

  • The app freezes and you cannot continue.
  • You need to force close or restart the app to recover.

reproduction video:

ScreenRecording_08-03-2025.18-11-17_1.mov

Code Sample

await SharePlus.instance.share(ShareParams( files: [XFile('${a.path}/billPic/1754213228585.jpg')]));

Logs

No error

Flutter Doctor

[✓] Flutter (Channel stable, 3.19.6, on macOS 15.5 24F74 darwin-arm64, locale zh-Hans-CN)
    • Flutter version 3.19.6 on channel stable at /Users/yee/Documents/develop/flutter_3.19.6
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 54e66469a9 (1 year, 4 months ago), 2024-04-17 13:08:03 -0700
    • Engine revision c4cd48e186
    • Dart version 3.3.4
    • DevTools version 2.31.1

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
    • Android SDK at /Users/yee/Documents/develop/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 16.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16F6
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2025.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13391695-b895.109)

[✓] VS Code (version 1.101.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.114.0

Checklist before submitting a bug

  • I searched issues in this repository and couldn't find such bug/problem
  • I Google'd a solution and I couldn't find it
  • I searched on StackOverflow for a solution and I couldn't find it
  • I read the README.md file of the plugin
  • I'm using the latest version of the plugin
  • All dependencies are up to date with flutter pub upgrade
  • I did a flutter clean
  • I tried running the example project

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions