Showing
13 changed files
with
71 additions
and
62 deletions
| @@ -548,7 +548,7 @@ | @@ -548,7 +548,7 @@ | ||
| 548 | CODE_SIGN_ENTITLEMENTS = Runner/RunnerProfile.entitlements; | 548 | CODE_SIGN_ENTITLEMENTS = Runner/RunnerProfile.entitlements; |
| 549 | CODE_SIGN_IDENTITY = "Apple Development"; | 549 | CODE_SIGN_IDENTITY = "Apple Development"; |
| 550 | CODE_SIGN_STYLE = Automatic; | 550 | CODE_SIGN_STYLE = Automatic; |
| 551 | - CURRENT_PROJECT_VERSION = 522; | 551 | + CURRENT_PROJECT_VERSION = 5230; |
| 552 | DEVELOPMENT_TEAM = 8J59HM8B82; | 552 | DEVELOPMENT_TEAM = 8J59HM8B82; |
| 553 | ENABLE_BITCODE = NO; | 553 | ENABLE_BITCODE = NO; |
| 554 | FLUTTER_BUILD_MODE = release; | 554 | FLUTTER_BUILD_MODE = release; |
| @@ -558,15 +558,12 @@ | @@ -558,15 +558,12 @@ | ||
| 558 | ); | 558 | ); |
| 559 | INFOPLIST_FILE = Runner/Info.plist; | 559 | INFOPLIST_FILE = Runner/Info.plist; |
| 560 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; | 560 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; |
| 561 | - LD_RUNPATH_SEARCH_PATHS = ( | ||
| 562 | - "$(inherited)", | ||
| 563 | - "@executable_path/Frameworks", | ||
| 564 | - ); | 561 | + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; |
| 565 | LIBRARY_SEARCH_PATHS = ( | 562 | LIBRARY_SEARCH_PATHS = ( |
| 566 | "$(inherited)", | 563 | "$(inherited)", |
| 567 | "$(PROJECT_DIR)/Flutter", | 564 | "$(PROJECT_DIR)/Flutter", |
| 568 | ); | 565 | ); |
| 569 | - MARKETING_VERSION = 5.2.2; | 566 | + MARKETING_VERSION = 5.2.3; |
| 570 | PRODUCT_BUNDLE_IDENTIFIER = com.naji.reserveLine; | 567 | PRODUCT_BUNDLE_IDENTIFIER = com.naji.reserveLine; |
| 571 | PRODUCT_NAME = Runner; | 568 | PRODUCT_NAME = Runner; |
| 572 | PROVISIONING_PROFILE_SPECIFIER = ""; | 569 | PROVISIONING_PROFILE_SPECIFIER = ""; |
| @@ -699,7 +696,7 @@ | @@ -699,7 +696,7 @@ | ||
| 699 | CODE_SIGN_ENTITLEMENTS = "Runner/一键订Debug.entitlements"; | 696 | CODE_SIGN_ENTITLEMENTS = "Runner/一键订Debug.entitlements"; |
| 700 | CODE_SIGN_IDENTITY = "Apple Development"; | 697 | CODE_SIGN_IDENTITY = "Apple Development"; |
| 701 | CODE_SIGN_STYLE = Automatic; | 698 | CODE_SIGN_STYLE = Automatic; |
| 702 | - CURRENT_PROJECT_VERSION = 522; | 699 | + CURRENT_PROJECT_VERSION = 5230; |
| 703 | DEVELOPMENT_TEAM = 8J59HM8B82; | 700 | DEVELOPMENT_TEAM = 8J59HM8B82; |
| 704 | ENABLE_BITCODE = NO; | 701 | ENABLE_BITCODE = NO; |
| 705 | FLUTTER_BUILD_MODE = debug; | 702 | FLUTTER_BUILD_MODE = debug; |
| @@ -709,15 +706,12 @@ | @@ -709,15 +706,12 @@ | ||
| 709 | ); | 706 | ); |
| 710 | INFOPLIST_FILE = Runner/Info.plist; | 707 | INFOPLIST_FILE = Runner/Info.plist; |
| 711 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; | 708 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; |
| 712 | - LD_RUNPATH_SEARCH_PATHS = ( | ||
| 713 | - "$(inherited)", | ||
| 714 | - "@executable_path/Frameworks", | ||
| 715 | - ); | 709 | + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; |
| 716 | LIBRARY_SEARCH_PATHS = ( | 710 | LIBRARY_SEARCH_PATHS = ( |
| 717 | "$(inherited)", | 711 | "$(inherited)", |
| 718 | "$(PROJECT_DIR)/Flutter", | 712 | "$(PROJECT_DIR)/Flutter", |
| 719 | ); | 713 | ); |
| 720 | - MARKETING_VERSION = 5.2.2; | 714 | + MARKETING_VERSION = 5.2.3; |
| 721 | PRODUCT_BUNDLE_IDENTIFIER = com.naji.reserveLine; | 715 | PRODUCT_BUNDLE_IDENTIFIER = com.naji.reserveLine; |
| 722 | PRODUCT_NAME = Runner; | 716 | PRODUCT_NAME = Runner; |
| 723 | PROVISIONING_PROFILE_SPECIFIER = ""; | 717 | PROVISIONING_PROFILE_SPECIFIER = ""; |
| @@ -738,7 +732,7 @@ | @@ -738,7 +732,7 @@ | ||
| 738 | CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; | 732 | CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; |
| 739 | CODE_SIGN_IDENTITY = "Apple Development"; | 733 | CODE_SIGN_IDENTITY = "Apple Development"; |
| 740 | CODE_SIGN_STYLE = Automatic; | 734 | CODE_SIGN_STYLE = Automatic; |
| 741 | - CURRENT_PROJECT_VERSION = 522; | 735 | + CURRENT_PROJECT_VERSION = 5230; |
| 742 | DEVELOPMENT_TEAM = 8J59HM8B82; | 736 | DEVELOPMENT_TEAM = 8J59HM8B82; |
| 743 | ENABLE_BITCODE = NO; | 737 | ENABLE_BITCODE = NO; |
| 744 | FLUTTER_BUILD_MODE = release; | 738 | FLUTTER_BUILD_MODE = release; |
| @@ -748,15 +742,12 @@ | @@ -748,15 +742,12 @@ | ||
| 748 | ); | 742 | ); |
| 749 | INFOPLIST_FILE = Runner/Info.plist; | 743 | INFOPLIST_FILE = Runner/Info.plist; |
| 750 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; | 744 | IPHONEOS_DEPLOYMENT_TARGET = 12.0; |
| 751 | - LD_RUNPATH_SEARCH_PATHS = ( | ||
| 752 | - "$(inherited)", | ||
| 753 | - "@executable_path/Frameworks", | ||
| 754 | - ); | 745 | + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; |
| 755 | LIBRARY_SEARCH_PATHS = ( | 746 | LIBRARY_SEARCH_PATHS = ( |
| 756 | "$(inherited)", | 747 | "$(inherited)", |
| 757 | "$(PROJECT_DIR)/Flutter", | 748 | "$(PROJECT_DIR)/Flutter", |
| 758 | ); | 749 | ); |
| 759 | - MARKETING_VERSION = 5.2.2; | 750 | + MARKETING_VERSION = 5.2.3; |
| 760 | PRODUCT_BUNDLE_IDENTIFIER = com.naji.reserveLine; | 751 | PRODUCT_BUNDLE_IDENTIFIER = com.naji.reserveLine; |
| 761 | PRODUCT_NAME = Runner; | 752 | PRODUCT_NAME = Runner; |
| 762 | PROVISIONING_PROFILE_SPECIFIER = ""; | 753 | PROVISIONING_PROFILE_SPECIFIER = ""; |
| @@ -63,6 +63,8 @@ | @@ -63,6 +63,8 @@ | ||
| 63 | <string></string> | 63 | <string></string> |
| 64 | <key>LSApplicationQueriesSchemes</key> | 64 | <key>LSApplicationQueriesSchemes</key> |
| 65 | <array> | 65 | <array> |
| 66 | + <string>wxworklocal</string> | ||
| 67 | + <string>wxwork</string> | ||
| 66 | <string>weixinULAPI</string> | 68 | <string>weixinULAPI</string> |
| 67 | <string>wechat</string> | 69 | <string>wechat</string> |
| 68 | <string>weixin</string> | 70 | <string>weixin</string> |
| @@ -606,7 +606,8 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { | @@ -606,7 +606,8 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { | ||
| 606 | _user.morning = sellerInfoSunModel.data.dailyShow.morning; | 606 | _user.morning = sellerInfoSunModel.data.dailyShow.morning; |
| 607 | _user.noon = sellerInfoSunModel.data.dailyShow.noon; | 607 | _user.noon = sellerInfoSunModel.data.dailyShow.noon; |
| 608 | _user.night = sellerInfoSunModel.data.dailyShow.night; | 608 | _user.night = sellerInfoSunModel.data.dailyShow.night; |
| 609 | - _user.sellerAddr = sellerInfoSunModel.data.realAddress; | 609 | + _user.sellerAddr = |
| 610 | + '${sellerInfoSunModel.data.mapAddress}${sellerInfoSunModel.data.realAddress ?? ''}'; | ||
| 610 | await UserModel().saveUserInfo(_user); | 611 | await UserModel().saveUserInfo(_user); |
| 611 | } | 612 | } |
| 612 | } | 613 | } |
| @@ -175,7 +175,7 @@ class _IfNeedCreateStoreState extends State<IfNeedCreateStore> | @@ -175,7 +175,7 @@ class _IfNeedCreateStoreState extends State<IfNeedCreateStore> | ||
| 175 | "sellerimage": seller['seller_image'], | 175 | "sellerimage": seller['seller_image'], |
| 176 | "sellername": seller['sellername'], | 176 | "sellername": seller['sellername'], |
| 177 | "sellerphone": seller['seller_tel'], | 177 | "sellerphone": seller['seller_tel'], |
| 178 | - "sellerAddr": '', | 178 | + "sellerAddr": seller['address'], |
| 179 | "scatter": 0, | 179 | "scatter": 0, |
| 180 | "room": 0, | 180 | "room": 0, |
| 181 | "cassette": 0, | 181 | "cassette": 0, |
| @@ -246,7 +246,7 @@ class _BaseInfoPageState extends State<BaseInfoPage> { | @@ -246,7 +246,7 @@ class _BaseInfoPageState extends State<BaseInfoPage> { | ||
| 246 | "sellercode": seller['seller_code'], | 246 | "sellercode": seller['seller_code'], |
| 247 | "sellername": seller['sellername'], | 247 | "sellername": seller['sellername'], |
| 248 | "sellerphone": seller['seller_tel'], | 248 | "sellerphone": seller['seller_tel'], |
| 249 | - "sellerAddr": '', | 249 | + "sellerAddr": seller['address'], |
| 250 | "scatter": 0, | 250 | "scatter": 0, |
| 251 | "room": 0, | 251 | "room": 0, |
| 252 | "cassette": 0, | 252 | "cassette": 0, |
| @@ -428,7 +428,11 @@ class _FeastDishSharePageState extends State<FeastDishSharePage> { | @@ -428,7 +428,11 @@ class _FeastDishSharePageState extends State<FeastDishSharePage> { | ||
| 428 | fontSize: 36, | 428 | fontSize: 36, |
| 429 | isBold: false, | 429 | isBold: false, |
| 430 | onPressed: () { | 430 | onPressed: () { |
| 431 | - ShareHelper.onShareWx( | 431 | + // ShareHelper.onShareWx( |
| 432 | + // context, | ||
| 433 | + // boundaryKey: boundaryKey, | ||
| 434 | + // ); | ||
| 435 | + ShareHelper.onShareWxwork( | ||
| 432 | context, | 436 | context, |
| 433 | boundaryKey: boundaryKey, | 437 | boundaryKey: boundaryKey, |
| 434 | ); | 438 | ); |
| @@ -100,7 +100,7 @@ class UserModel with ChangeNotifier { | @@ -100,7 +100,7 @@ class UserModel with ChangeNotifier { | ||
| 100 | "sellercode": params['seller_code'], | 100 | "sellercode": params['seller_code'], |
| 101 | "sellername": seller['sellername'], | 101 | "sellername": seller['sellername'], |
| 102 | "sellerphone": seller['seller_tel'], | 102 | "sellerphone": seller['seller_tel'], |
| 103 | - "sellerAddr": '', | 103 | + "sellerAddr": seller['address'], |
| 104 | "scatter": 0, | 104 | "scatter": 0, |
| 105 | "room": 0, | 105 | "room": 0, |
| 106 | "cassette": 0, | 106 | "cassette": 0, |
| @@ -6,6 +6,8 @@ | @@ -6,6 +6,8 @@ | ||
| 6 | * @Description: 分享工具 | 6 | * @Description: 分享工具 |
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | +import 'dart:io'; | ||
| 10 | + | ||
| 9 | import 'package:flutter/material.dart'; | 11 | import 'package:flutter/material.dart'; |
| 10 | import 'package:flutter_wxwork/flutter_wxwork.dart'; | 12 | import 'package:flutter_wxwork/flutter_wxwork.dart'; |
| 11 | import 'package:one_key/utils/repaint_boundary_utils.dart'; | 13 | import 'package:one_key/utils/repaint_boundary_utils.dart'; |
| @@ -45,24 +47,25 @@ class ShareHelper { | @@ -45,24 +47,25 @@ class ShareHelper { | ||
| 45 | //企业微信分享 | 47 | //企业微信分享 |
| 46 | static Future<bool> onShareWxwork(BuildContext context, {boundaryKey}) async { | 48 | static Future<bool> onShareWxwork(BuildContext context, {boundaryKey}) async { |
| 47 | FlutterWxwork flutterWxwork = FlutterWxwork(); | 49 | FlutterWxwork flutterWxwork = FlutterWxwork(); |
| 48 | - String ddd = await flutterWxwork.isAppInstalled(); | ||
| 49 | - print(ddd); | 50 | + bool isAppInstalled = await flutterWxwork.isAppInstalled(); |
| 51 | + print(isAppInstalled); | ||
| 50 | 52 | ||
| 51 | //收回键盘,如果有输入的情况下,先收回键盘,再截图 | 53 | //收回键盘,如果有输入的情况下,先收回键盘,再截图 |
| 52 | FocusScope.of(context).requestFocus(FocusNode()); | 54 | FocusScope.of(context).requestFocus(FocusNode()); |
| 53 | 55 | ||
| 54 | - // if (ddd) { | ||
| 55 | - //分享 | ||
| 56 | - // WxSdk.ShareText("sdgsfds",title:"标题"); | ||
| 57 | - //获取截图地址 | ||
| 58 | - String filePath = await RepaintBoundaryUtils().captureImage(boundaryKey); | 56 | + if (isAppInstalled) { |
| 57 | + //分享 | ||
| 58 | + // WxSdk.ShareText("sdgsfds",title:"标题"); | ||
| 59 | + //获取截图地址 | ||
| 60 | + String filePath = await RepaintBoundaryUtils().captureImage(boundaryKey); | ||
| 59 | 61 | ||
| 60 | - print(filePath); | ||
| 61 | - await flutterWxwork.registerApp("wwauthbdca186ec4257973000006", "wwbdca186ec4257973", "1000006"); | ||
| 62 | - await flutterWxwork.shareImagePath(filePath); | ||
| 63 | - // } else { | ||
| 64 | - // //提示未安装微信 | ||
| 65 | - // Utils.showToast("未安装企业微信"); | ||
| 66 | - // } | 62 | + print(filePath); |
| 63 | + await flutterWxwork.registerApp( | ||
| 64 | + "wwauthbdca186ec4257973000006", "wwbdca186ec4257973", "1000006"); | ||
| 65 | + await flutterWxwork.shareImagePath(filePath); | ||
| 66 | + } else { | ||
| 67 | + //提示未安装微信 | ||
| 68 | + Utils.showToast("未安装企业微信"); | ||
| 69 | + } | ||
| 67 | } | 70 | } |
| 68 | } | 71 | } |
| @@ -2067,7 +2067,7 @@ class Utils { | @@ -2067,7 +2067,7 @@ class Utils { | ||
| 2067 | String _description = "进入查看包间详情,转发同行好友,还可一键导航到饭店"; | 2067 | String _description = "进入查看包间详情,转发同行好友,还可一键导航到饭店"; |
| 2068 | // Uint8List source = await testComporessList(context, _thumbnail); | 2068 | // Uint8List source = await testComporessList(context, _thumbnail); |
| 2069 | 2069 | ||
| 2070 | - bool isSuccess; | 2070 | + bool isSuccess = false; |
| 2071 | if (isWechat) { | 2071 | if (isWechat) { |
| 2072 | //跳转小程序 | 2072 | //跳转小程序 |
| 2073 | String _userName = "gh_487873d353b3"; | 2073 | String _userName = "gh_487873d353b3"; |
| @@ -2089,22 +2089,26 @@ class Utils { | @@ -2089,22 +2089,26 @@ class Utils { | ||
| 2089 | 2089 | ||
| 2090 | isSuccess = await shareToWeChat(model); | 2090 | isSuccess = await shareToWeChat(model); |
| 2091 | } else { | 2091 | } else { |
| 2092 | - | ||
| 2093 | String _path = | 2092 | String _path = |
| 2094 | "pages/customer/index.html?id=$rid&hasInvitation=1&hasSellerShare=1&uid=$uid"; | 2093 | "pages/customer/index.html?id=$rid&hasInvitation=1&hasSellerShare=1&uid=$uid"; |
| 2095 | FlutterWxwork flutterWxwork = FlutterWxwork(); | 2094 | FlutterWxwork flutterWxwork = FlutterWxwork(); |
| 2096 | - | ||
| 2097 | - bool registerResult = await flutterWxwork.registerApp( | ||
| 2098 | - 'wwauthbdca186ec4257973000003', 'wwbdca186ec4257973', '1000003'); | ||
| 2099 | - print(registerResult); | ||
| 2100 | - bool isSuccess = await flutterWxwork.shareMiniProgram( | ||
| 2101 | - userName: 'gh_487873d353b3@app', | ||
| 2102 | - path: _path, | ||
| 2103 | - hdImageData: _thumbnail, | ||
| 2104 | - title: _title); | ||
| 2105 | - | ||
| 2106 | - // var isSuccess = await flutterWxwork.shareImage(); | ||
| 2107 | - print(isSuccess); | 2095 | + bool isAppInstalled = await flutterWxwork.isAppInstalled(); |
| 2096 | + print(isAppInstalled); | ||
| 2097 | + if (isAppInstalled) { | ||
| 2098 | + bool registerResult = await flutterWxwork.registerApp( | ||
| 2099 | + 'wwauthbdca186ec4257973000003', 'wwbdca186ec4257973', '1000003'); | ||
| 2100 | + print(registerResult); | ||
| 2101 | + isSuccess = await flutterWxwork.shareMiniProgram( | ||
| 2102 | + userName: 'gh_487873d353b3@app', | ||
| 2103 | + path: _path, | ||
| 2104 | + hdImageData: _thumbnail, | ||
| 2105 | + title: _title); | ||
| 2106 | + | ||
| 2107 | + // var isSuccess = await flutterWxwork.shareImage(); | ||
| 2108 | + print(isSuccess); | ||
| 2109 | + } else { | ||
| 2110 | + Utils.showToast('未安装企业微信'); | ||
| 2111 | + } | ||
| 2108 | } | 2112 | } |
| 2109 | 2113 | ||
| 2110 | return isSuccess; | 2114 | return isSuccess; |
| @@ -18,8 +18,8 @@ FlutterMethodChannel *channel; | @@ -18,8 +18,8 @@ FlutterMethodChannel *channel; | ||
| 18 | 18 | ||
| 19 | - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result { | 19 | - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result { |
| 20 | if([@"isAppInstalled" isEqualToString:call.method]){ | 20 | if([@"isAppInstalled" isEqualToString:call.method]){ |
| 21 | - NSString *str = [NSString stringWithFormat:@"%hhd",[WWKApi isAppInstalled]]; | ||
| 22 | - result(str); | 21 | + |
| 22 | + result(@([WWKApi isAppInstalled])); | ||
| 23 | }else if ([@"register" isEqualToString:call.method]) { | 23 | }else if ([@"register" isEqualToString:call.method]) { |
| 24 | NSDictionary *dic = call.arguments; | 24 | NSDictionary *dic = call.arguments; |
| 25 | NSString *scheme = dic[@"scheme"]; | 25 | NSString *scheme = dic[@"scheme"]; |
| @@ -60,7 +60,7 @@ FlutterMethodChannel *channel; | @@ -60,7 +60,7 @@ FlutterMethodChannel *channel; | ||
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | - (void)shareImageNetWork:(FlutterMethodCall *)call result:(FlutterResult)result { | 62 | - (void)shareImageNetWork:(FlutterMethodCall *)call result:(FlutterResult)result { |
| 63 | - [WWKApi registerApp:@"wwauthbdca186ec4257973000006" corpId:@"wwbdca186ec4257973" agentId:@"1000006"]; | 63 | + // [WWKApi registerApp:@"wwauthbdca186ec4257973000006" corpId:@"wwbdca186ec4257973" agentId:@"1000006"]; |
| 64 | 64 | ||
| 65 | dispatch_queue_t globalQueue = dispatch_get_global_queue(0, 0); | 65 | dispatch_queue_t globalQueue = dispatch_get_global_queue(0, 0); |
| 66 | dispatch_async(globalQueue, ^{ | 66 | dispatch_async(globalQueue, ^{ |
| 1 | +import 'dart:io'; | ||
| 2 | + | ||
| 1 | import 'package:flutter_wxwork/flutter_wxwork_method_channel.dart'; | 3 | import 'package:flutter_wxwork/flutter_wxwork_method_channel.dart'; |
| 2 | 4 | ||
| 3 | import 'flutter_wxwork_platform_interface.dart'; | 5 | import 'flutter_wxwork_platform_interface.dart'; |
| @@ -15,7 +17,7 @@ class FlutterWxwork { | @@ -15,7 +17,7 @@ class FlutterWxwork { | ||
| 15 | return FlutterWxworkPlatform.instance.auth(); | 17 | return FlutterWxworkPlatform.instance.auth(); |
| 16 | } | 18 | } |
| 17 | 19 | ||
| 18 | - Future<String> isAppInstalled() { | 20 | + Future<bool> isAppInstalled() { |
| 19 | return FlutterWxworkPlatform.instance.isAppInstalled(); | 21 | return FlutterWxworkPlatform.instance.isAppInstalled(); |
| 20 | } | 22 | } |
| 21 | 23 |
| 1 | import 'dart:convert'; | 1 | import 'dart:convert'; |
| 2 | +import 'dart:io'; | ||
| 2 | 3 | ||
| 3 | import 'package:flutter/foundation.dart'; | 4 | import 'package:flutter/foundation.dart'; |
| 4 | import 'package:flutter/services.dart'; | 5 | import 'package:flutter/services.dart'; |
| @@ -30,23 +31,22 @@ class MethodChannelFlutterWxwork extends FlutterWxworkPlatform { | @@ -30,23 +31,22 @@ class MethodChannelFlutterWxwork extends FlutterWxworkPlatform { | ||
| 30 | } | 31 | } |
| 31 | 32 | ||
| 32 | @override | 33 | @override |
| 33 | - Future<String> isAppInstalled() async { | 34 | + Future<bool> isAppInstalled() async { |
| 34 | final isAppInstalled = | 35 | final isAppInstalled = |
| 35 | - await methodChannel.invokeMethod<String>('isAppInstalled'); | 36 | + await methodChannel.invokeMethod<bool>('isAppInstalled'); |
| 36 | return isAppInstalled; | 37 | return isAppInstalled; |
| 37 | } | 38 | } |
| 38 | 39 | ||
| 39 | @override | 40 | @override |
| 40 | Future<bool> shareImageNetWork(String path) async { | 41 | Future<bool> shareImageNetWork(String path) async { |
| 41 | - final shareImageNetWork = | ||
| 42 | - await methodChannel.invokeMethod<bool>('shareImageNetWork', <String, String>{ | 42 | + final shareImageNetWork = await methodChannel |
| 43 | + .invokeMethod<bool>('shareImageNetWork', <String, String>{ | ||
| 43 | 'path': path, | 44 | 'path': path, |
| 44 | }); | 45 | }); |
| 45 | return shareImageNetWork; | 46 | return shareImageNetWork; |
| 46 | } | 47 | } |
| 47 | 48 | ||
| 48 | - | ||
| 49 | - @override | 49 | + @override |
| 50 | Future<bool> shareImagePath(String path) async { | 50 | Future<bool> shareImagePath(String path) async { |
| 51 | final shareImagePath = | 51 | final shareImagePath = |
| 52 | await methodChannel.invokeMethod<bool>('shareImagePath', <String, String>{ | 52 | await methodChannel.invokeMethod<bool>('shareImagePath', <String, String>{ |
| 1 | +import 'dart:io'; | ||
| 2 | + | ||
| 1 | import 'package:plugin_platform_interface/plugin_platform_interface.dart'; | 3 | import 'package:plugin_platform_interface/plugin_platform_interface.dart'; |
| 2 | 4 | ||
| 3 | import 'flutter_wxwork_method_channel.dart'; | 5 | import 'flutter_wxwork_method_channel.dart'; |
| @@ -31,7 +33,7 @@ abstract class FlutterWxworkPlatform extends PlatformInterface { | @@ -31,7 +33,7 @@ abstract class FlutterWxworkPlatform extends PlatformInterface { | ||
| 31 | throw UnimplementedError('registerApp() has not been implemented.'); | 33 | throw UnimplementedError('registerApp() has not been implemented.'); |
| 32 | } | 34 | } |
| 33 | 35 | ||
| 34 | - Future<String> isAppInstalled() { | 36 | + Future<bool> isAppInstalled() { |
| 35 | throw UnimplementedError('isAppInstalled() has not been implemented.'); | 37 | throw UnimplementedError('isAppInstalled() has not been implemented.'); |
| 36 | } | 38 | } |
| 37 | 39 |
-
Please register or login to post a comment