From 0cf3f6447c6a8bb6ebeb54981b2919e6d6737db7 Mon Sep 17 00:00:00 2001 From: Nguyen Phuoc Sang <47568867+ppupha@users.noreply.github.com> Date: Thu, 14 Sep 2023 16:48:21 +0700 Subject: [PATCH] Sang/postcard/download postcard (#1232) * Update Postcard Detail Pop-up * Update Api and Auth Interceptor * Update Asset * Call Http post * Add FileHelper * Update * Implement for stamp preview * Add Callback * Update Asset * Update * Use Image Gallery Saver * Support iOS * Update Permisstion and perm decs * Update * Update * add HttpHelper * Fix lint * Update Colors * Fix comment --- android/app/src/main/AndroidManifest.xml | 39 +++-- ios/Runner/Info.plist | 3 + .../postcard_detail_page.dart | 132 +++++++++------- .../interactive_postcard/stamp_preview.dart | 113 ++++++++++++-- lib/service/postcard_service.dart | 82 ++++++++++ lib/util/asset_token_ext.dart | 11 ++ lib/util/dio_interceptors.dart | 7 +- lib/util/file_helper.dart | 11 ++ lib/util/http_helper.dart | 37 +++++ lib/util/moma_style_color.dart | 1 + lib/util/share_helper.dart | 38 +++++ lib/util/ui_helper.dart | 142 +++++++++++++++++- lib/view/postcard_common_widget.dart | 90 +++++++++++ pubspec.lock | 12 +- pubspec.yaml | 3 +- 15 files changed, 641 insertions(+), 80 deletions(-) create mode 100644 lib/util/file_helper.dart create mode 100644 lib/util/http_helper.dart create mode 100644 lib/util/share_helper.dart create mode 100644 lib/view/postcard_common_widget.dart diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index aabda1123..38c01fac0 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,7 +1,7 @@ + xmlns:tools="http://schemas.android.com/tools" + package="com.bitmark.autonomy_flutter"> @@ -9,6 +9,7 @@ + @@ -18,12 +19,12 @@ + android:usesCleartextTraffic="true" + tools:replace="android:label"> + - - - + + + + + - - + + +