photos saved to media library

This commit is contained in:
Mohamed Nouffer
2023-09-06 21:04:44 +05:30
parent 7b33468e3f
commit 36751f6ef7
5 changed files with 15 additions and 0 deletions

View File

@ -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}"

View File

@ -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>

View File

@ -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

View File

@ -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:

View File

@ -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: