From c7282b15f9477999807ef4c87141f0e6843ee042 Mon Sep 17 00:00:00 2001 From: Shubham Gupta Date: Sat, 31 Aug 2024 15:57:10 +0530 Subject: [PATCH] Initial images internet case handled. Also fixed release gradle. --- example/android/app/build.gradle | 3 +++ example/android/app/src/main/AndroidManifest.xml | 3 ++- example/lib/custom/initial_images_custom_example.dart | 8 ++++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 7457277..f90a859 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -57,6 +57,9 @@ android { release { // TODO: Add your own signing config for the release build. // Signing with the debug keys for now, so `flutter run --release` works. + minifyEnabled true + shrinkResources true + crunchPngs false signingConfig signingConfigs.debug } } diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index 3f41384..fddc487 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -1,6 +1,7 @@ - + diff --git a/example/lib/custom/initial_images_custom_example.dart b/example/lib/custom/initial_images_custom_example.dart index df6cf99..a8f9fdb 100644 --- a/example/lib/custom/initial_images_custom_example.dart +++ b/example/lib/custom/initial_images_custom_example.dart @@ -22,14 +22,14 @@ class _InitialImagesCustomExampleState name: "test-image.jpg", extension: "jpg", path: - "https://cc-prod.scene7.com/is/image/CCProdAuthor/What-is-Stock-Photography_P1_mobile", + "https://cdn.pixabay.com/photo/2024/06/18/21/37/bali-8838762_640.jpg", ), ImageFile( UniqueKey().toString(), - name: "test-document.pdf", - extension: "pdf", + name: "test-image-2.jpg", + extension: "jpg", path: - "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf", + "https://cdn.pixabay.com/photo/2024/07/20/18/49/stars-8908843_640.jpg", ), ], picker: (bool allowMultiple) {