feat: save/share in the picture viewer, and a tap hides its chrome
- the viewer's top bar gains Save to Photos and Share on Android: saving writes through MediaStore into Pictures/Chamber Go (no permission on Android 10+, a runtime request on older versions), sharing hands a cache file to the system chooser through a FileProvider; both are a small native channel, not another plugin - dsh-Go keeps its title bar always visible; here a single tap hides the title, keys and page indicator and the next tap brings them back, so they do not cover the picture. Double-tap still zooms, swiping still pages at 1x, dragging pans while zoomed - version 0.6.6+606; the viewer test now covers the platform calls, chrome toggle, zoom, pan and paging
This commit is contained in:
1 parent
c2dabbe187
commit
fedc4dd79c
10 files changed
+471
-45
No files matched your search
@@ -2,6 +2,10 @@
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
<uses-permission android:name="android.permission.CAMERA"/>
|
||||
<!-- Saving to the gallery; Android 10+ uses MediaStore without this. -->
|
||||
<uses-permission
|
||||
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
|
||||
android:maxSdkVersion="28"/>
|
||||
<!-- The camera plugin declares audio for video; the scanner only reads
|
||||
frames, so the app must not end up asking for the microphone. -->
|
||||
<uses-permission android:name="android.permission.RECORD_AUDIO" tools:node="remove"/>
|
||||
@@ -33,6 +37,16 @@
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<!-- Pictures the image viewer shares out of the app's cache. -->
|
||||
<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>
|
||||
<!-- Don't delete the meta-data below.
|
||||
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
||||
<meta-data
|
||||
|
||||
Reference in new issue
Block a user