fluttercommunity / plus_plugins

Flutter Community Plus Plugins
BSD 3-Clause "New" or "Revised" License
1.5k stars 877 forks source link

[Bug]: share_plus doesn't share dwg files #3025

Closed hjkimu closed 1 day ago

hjkimu commented 6 days ago

Platform

iOS

Plugin

share_plus

Version

7.2.1

Flutter SDK

3.19.5

Steps to reproduce

normal case

  1. share a doc file
  2. menu showing image

error case

  1. share a dwg file
  2. no menu showing image

Code Sample

Share.shareXFiles([XFile(file.path)],
        sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size);

Logs

-

Flutter Doctor

% flutter doctor -v
[✓] Flutter (Channel stable, 3.19.5, on macOS 14.4.1 23E224 darwin-arm64, locale ja)
    • Flutter version 3.19.5 on channel stable at /Users/hjkimu/Developer/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 300451adae (3달 전), 2024-03-27 21:54:07 -0500
    • Engine revision e76c956498
    • Dart version 3.3.3
    • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/hjkimu/Library/Android/sdk
    • Platform android-34, build-tools 33.0.2
    • Java binary at: /Users/hjkimu/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

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

[✓] Android Studio (version 2023.1)
    • Android Studio at /Users/hjkimu/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 17.0.7+0-17.0.7b1000.6-10550314)

[✓] Android Studio (version 2022.3)
    • Android Studio at /Users/hjkimu/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/223.8836.35.2231.10406996/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 17.0.6+0-17.0.6b829.9-10027231)

[✓] Android Studio (version 2022.3)
    • Android Studio at /Users/hjkimu/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/223.8836.35.2231.10811636/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 17.0.6+0-17.0.6b829.9-10027231)

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

[✓] Connected device (4 available)
    • iPhone (mobile)        • 00008101-001144540A82001E            • ios            • iOS 17.5.1 21F90
    • iPhone 15 Pro (mobile) • 57A253B9-E232-4296-BFED-92D7FFED78A2 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-4 (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 14.4.1 23E224 darwin-arm64
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 125.0.6422.142

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Checklist before submitting a bug

miquelbeltran commented 5 days ago

You can try to provide the mime type manually and see if that makes a difference. Otherwise, this is just how the OS handles it, nothing to do with the plugin.

hjkimu commented 1 day ago

I successfully shared DWG files by specifying the MIME type. Thank you @miquelbeltran.