evan 4 years ago
parent
commit
7d791875d4

+ 6 - 0
ios/Podfile.lock

@@ -61,6 +61,8 @@ PODS:
   - Mantle (2.1.6):
     - Mantle/extobjc (= 2.1.6)
   - Mantle/extobjc (2.1.6)
+  - number_precision (0.0.1):
+    - Flutter
   - package_info (0.0.1):
     - Flutter
   - package_info_plus (0.4.5):
@@ -109,6 +111,7 @@ DEPENDENCIES:
   - image_picker (from `.symlinks/plugins/image_picker/ios`)
   - install_plugin (from `.symlinks/plugins/install_plugin/ios`)
   - launch_review (from `.symlinks/plugins/launch_review/ios`)
+  - number_precision (from `.symlinks/plugins/number_precision/ios`)
   - package_info (from `.symlinks/plugins/package_info/ios`)
   - package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
   - path_provider (from `.symlinks/plugins/path_provider/ios`)
@@ -169,6 +172,8 @@ EXTERNAL SOURCES:
     :path: ".symlinks/plugins/install_plugin/ios"
   launch_review:
     :path: ".symlinks/plugins/launch_review/ios"
+  number_precision:
+    :path: ".symlinks/plugins/number_precision/ios"
   package_info:
     :path: ".symlinks/plugins/package_info/ios"
   package_info_plus:
@@ -213,6 +218,7 @@ SPEC CHECKSUMS:
   launch_review: 75d5a956ba8eaa493e9c9d4bf4c05e505e8d5ed0
   libwebp: 3aa3dfd4b00d3caf4c12b4bbc17e9b7b2df3f6fb
   Mantle: 4c0ed6ce47c96eccc4dc3bb071deb3def0e2c3be
+  number_precision: 26fa2be2212f9d1429f92d667d6b0aa4df0058d8
   package_info: 873975fc26034f0b863a300ad47e7f1ac6c7ec62
   package_info_plus: 6c92f08e1f853dc01228d6f553146438dafcd14e
   path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c

+ 6 - 6
ios/Runner.xcodeproj/project.pbxproj

@@ -380,7 +380,7 @@
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_ENTITLEMENTS = Runner/RunnerProfile.entitlements;
-				CURRENT_PROJECT_VERSION = 57;
+				CURRENT_PROJECT_VERSION = 64;
 				DEVELOPMENT_TEAM = 4699C5C3US;
 				ENABLE_BITCODE = NO;
 				FRAMEWORK_SEARCH_PATHS = (
@@ -396,7 +396,7 @@
 					"$(inherited)",
 					"$(PROJECT_DIR)/Flutter",
 				);
-				MARKETING_VERSION = 1.1.18;
+				MARKETING_VERSION = 1.1.24;
 				PRODUCT_BUNDLE_IDENTIFIER = com.bh.bbyyy;
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
@@ -522,7 +522,7 @@
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
-				CURRENT_PROJECT_VERSION = 57;
+				CURRENT_PROJECT_VERSION = 64;
 				DEVELOPMENT_TEAM = 4699C5C3US;
 				ENABLE_BITCODE = NO;
 				FRAMEWORK_SEARCH_PATHS = (
@@ -538,7 +538,7 @@
 					"$(inherited)",
 					"$(PROJECT_DIR)/Flutter",
 				);
-				MARKETING_VERSION = 1.1.18;
+				MARKETING_VERSION = 1.1.24;
 				PRODUCT_BUNDLE_IDENTIFIER = com.bh.bbyyy;
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
@@ -556,7 +556,7 @@
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_ENTITLEMENTS = Runner/RunnerRelease.entitlements;
-				CURRENT_PROJECT_VERSION = 57;
+				CURRENT_PROJECT_VERSION = 64;
 				DEVELOPMENT_TEAM = 4699C5C3US;
 				ENABLE_BITCODE = NO;
 				FRAMEWORK_SEARCH_PATHS = (
@@ -572,7 +572,7 @@
 					"$(inherited)",
 					"$(PROJECT_DIR)/Flutter",
 				);
-				MARKETING_VERSION = 1.1.18;
+				MARKETING_VERSION = 1.1.24;
 				PRODUCT_BUNDLE_IDENTIFIER = com.bh.bbyyy;
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";

+ 1 - 0
lib/my_tools/my_tools.dart

@@ -335,6 +335,7 @@ getAddressByLatitudeAndLongitude(
         longitude: longitude);
     context.read<MyLocationProvider>().getLocation(latitude, longitude);
     EventBus().emit('getLocation');
+    EventBus().emit('getLocation1');
   });
 }
 

+ 6 - 2
lib/paegs/gang_page/create_a_gang_page/create_a_gang_page.dart

@@ -77,7 +77,6 @@ class _CreateAGangPageState extends State<CreateAGangPage> {
     super.dispose();
     _image = null;
 
-
   }
   @override
   void initState() {
@@ -262,6 +261,9 @@ class _CreateAGangPageState extends State<CreateAGangPage> {
                                         File cropperImg =
                                             await ImageCropper.cropImage(
                                                 sourcePath: pickedFile.path,
+                                                cropStyle: CropStyle.rectangle,
+                                                aspectRatio: CropAspectRatio(
+                                                    ratioX: 1, ratioY: 1),
                                                 aspectRatioPresets: [
                                                   CropAspectRatioPreset.square,
                                                 ],
@@ -282,6 +284,7 @@ class _CreateAGangPageState extends State<CreateAGangPage> {
                                         if (cropperImg != null) {
                                           setState(() {
                                             _image = cropperImg;
+                                            cropperImg = null;
                                           });
                                         }
                                       }
@@ -1308,7 +1311,8 @@ class _CreateAGangPageState extends State<CreateAGangPage> {
                         return;
                       }
                       if (!private) {
-                        EventBus().on('getLocation', (arg) {
+                        EventBus().on('getLocation1', (arg) {
+                          EventBus().off('getLocation1');
                           upload(_image, (r, hE) {
                             if (!hE) {
                               UploadImageBeanEntity data =