ðŠķ Quill Native Bridge
An internal plugin for flutter_quill
package to access platform-specific APIs.
NOTE
Internal Use Only: Exclusively for
flutter_quill
. Breaking changes may occur.
Feature | iOS | Android | macOS | Windows | Linux | Web |
---|---|---|---|---|---|---|
isIOSSimulator | â | ⊠| ⊠| ⊠| ⊠| ⊠|
getClipboardHtml | â | â | â | â | â | â |
copyHtmlToClipboard | â | â | â | â | â | â |
copyImageToClipboard | â | â | â | â | â | â |
getClipboardImage | â | â | â | â | â | â |
getClipboardGif | â | â | ⊠| ⊠| ⊠| ⊠|
getClipboardFiles | ⊠| ⊠| â | â | â | â |
ð§ Platform Configuration
To support copying images to the system clipboard on Android. A platform configuration setup is required.
If not set up, a warning will appear in the log during debug mode only
if copyImageToClipboard
was called without configuring the Android project.
An exception with less details will be thrown in production mode.
IMPORTANT
This configuration is required on Android platform for using
copyImageToClipboard
. Other features on Android will work without it if this method isn't used. For more information, refer to the Android FileProvider documentation.
1. Update AndroidManifest.xml
Open your_project/android/app/src/main/AndroidManifest.xml
and add the following inside the <application>
tag:
<manifest>
<application>
...
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:grantUriPermissions="true" >
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
...
</application>
</manifest>
2. Create file_paths.xml
Create the file your_project/android/app/src/main/res/xml/file_paths.xml
with the following content:
<paths>
<cache-path name="cache" path="." />
</paths>
ð§ Experimental
This package is in early development despite the version since it previously had the same version as flutter_quill, now they have been separated. The Flutter Quill publishing workflow releases one stable version for all packages even if no changes were introduced.
Fixing the version requires discounting the support for quill_native_bridge and publishing a new package.
Libraries
- quill_native_bridge
- An internal plugin for
flutter_quill
package to access platform-specific APIs.