photos saved to media library
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
<uses-permission android:name="android.permission.WAKE_LOCK"/>
|
||||
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
|
||||
<uses-permission android:name="android.permission.CAMERA"/>
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
||||
<application
|
||||
android:label="岐阜ナビ"
|
||||
android:name="${applicationName}"
|
||||
|
||||
@ -38,6 +38,8 @@
|
||||
<string>プロフィールに動画を投稿してください。</string>
|
||||
<key>NSPhotoLibraryUsageDescription</key>
|
||||
<string>写真ライブラリへのアクセス警告</string>
|
||||
<key>NSPhotoLibraryUsageDescription</key>
|
||||
<string>Need to save image in phone Album</string>
|
||||
<key>UILaunchStoryboardName</key>
|
||||
<string>LaunchScreen</string>
|
||||
<key>UIMainStoryboardFile</key>
|
||||
|
||||
@ -24,6 +24,7 @@ import 'dart:async';
|
||||
|
||||
import 'package:modal_bottom_sheet/modal_bottom_sheet.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'package:gallery_saver/gallery_saver.dart';
|
||||
|
||||
class DestinationController extends GetxController {
|
||||
late LocationSettings locationSettings;
|
||||
@ -487,6 +488,8 @@ class DestinationController extends GetxController {
|
||||
await db.insertDestination(destination);
|
||||
}
|
||||
|
||||
await GallerySaver.saveImage(imageurl);
|
||||
|
||||
PopulateDestinations();
|
||||
|
||||
/// post to NATNAT
|
||||
|
||||
@ -440,6 +440,14 @@ packages:
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "10.5.0"
|
||||
gallery_saver:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: gallery_saver
|
||||
sha256: df8b7e207ca12d64c71e0710a7ee3bc48aa7206d51cc720716fedb1543a66712
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.3.2"
|
||||
geodesy:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
||||
@ -75,6 +75,7 @@ dependencies:
|
||||
connectivity_plus: ^4.0.2
|
||||
flutter_map_tile_caching: ^8.0.1
|
||||
shared_preferences: ^2.0.15
|
||||
gallery_saver: ^2.3.2
|
||||
|
||||
|
||||
flutter_icons:
|
||||
|
||||
Reference in New Issue
Block a user