Skip to content

Commit

Permalink
Initial images internet case handled. Also fixed release gradle.
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham16g committed Aug 31, 2024
1 parent 7c85f5a commit c7282b1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
3 changes: 2 additions & 1 deletion example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.example">
<application
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:label="example"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
Expand Down
8 changes: 4 additions & 4 deletions example/lib/custom/initial_images_custom_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c7282b1

Please sign in to comment.