fix:调整分享密码时改为使用插件
This commit is contained in:
parent
a5006b28fa
commit
02d395b7a4
@ -1,8 +1,8 @@
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:fluwx/fluwx.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:star_lock/flavors.dart';
|
||||
import 'package:star_lock/main/lockDetail/passwordKey/passwordKeyDetail/passwordKeyDetail_logic.dart';
|
||||
@ -84,8 +84,8 @@ class _PasswordKeyDetailPageState extends State<PasswordKeyDetailPage>
|
||||
// showCupertinoAlertDialog(
|
||||
// context, state.inputNameController);
|
||||
// })),
|
||||
Obx(() => lockDataListItem('姓名'.tr,
|
||||
state.keyboardPwdName.value, () {
|
||||
Obx(() =>
|
||||
lockDataListItem('姓名'.tr, state.keyboardPwdName.value, () {
|
||||
showCupertinoAlertDialog(
|
||||
context, state.inputNameController);
|
||||
})),
|
||||
@ -436,7 +436,18 @@ class _PasswordKeyDetailPageState extends State<PasswordKeyDetailPage>
|
||||
final String pwdShareStr = logic.getShareContentStr();
|
||||
switch (itemIndex) {
|
||||
case 0: //微信好友
|
||||
NativeInteractionTool().loadNativeShare(shareText: pwdShareStr);
|
||||
Fluwx fluwx = Fluwx();
|
||||
fluwx.registerApi(
|
||||
appId: F.wechatAppInfo.wechatAppId,
|
||||
universalLink: F.wechatAppInfo.universalLink,
|
||||
);
|
||||
fluwx.share(
|
||||
WeChatShareTextModel(
|
||||
pwdShareStr,
|
||||
scene: WeChatScene.session,
|
||||
),
|
||||
);
|
||||
// NativeInteractionTool().loadNativeShare(shareText: pwdShareStr);
|
||||
break;
|
||||
case 1: //短信
|
||||
case 2: //邮件
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user