|
|
@@ -83,26 +83,60 @@ void showTalkShareDialog(String? title, TalkShareCallback callback) {
|
|
|
);
|
|
|
}),
|
|
|
SizedBox(height: 16.h),
|
|
|
- Text(
|
|
|
- '发送至',
|
|
|
- style: TextStyle(
|
|
|
- fontSize: 14.sp, color: ColorName.secondaryTextColor),
|
|
|
- ),
|
|
|
- SizedBox(height: 8.h),
|
|
|
- Row(
|
|
|
- children: [
|
|
|
- _buildShareItem(StringName.dialogSendFriend.tr,
|
|
|
- Assets.images.iconWx.provider(), () {
|
|
|
- callback(shareType.value, ShareTo.wechat, getFileName(),
|
|
|
- tag);
|
|
|
- }),
|
|
|
- _buildShareItem(StringName.dialogSendFriend.tr,
|
|
|
- Assets.images.iconQq.provider(), () {
|
|
|
- callback(
|
|
|
- shareType.value, ShareTo.qq, getFileName(), tag);
|
|
|
- }),
|
|
|
- ],
|
|
|
- )
|
|
|
+ GetPlatform.isIOS
|
|
|
+ ? GestureDetector(
|
|
|
+ onTap: () {
|
|
|
+ callback(shareType.value, ShareTo.ios, tag);
|
|
|
+ },
|
|
|
+ child: Container(
|
|
|
+ margin: EdgeInsets.only(top: 8.h),
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ borderRadius: BorderRadius.circular(8),
|
|
|
+ gradient: LinearGradient(
|
|
|
+ colors: [
|
|
|
+ '#6177F2'.toColor(),
|
|
|
+ '#8B9DFF'.toColor()
|
|
|
+ ],
|
|
|
+ begin: Alignment.centerLeft,
|
|
|
+ end: Alignment.centerRight,
|
|
|
+ stops: const [0, 1.0],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ // width: 240.w,
|
|
|
+ height: 48.w,
|
|
|
+ child: Center(
|
|
|
+ child: Text(
|
|
|
+ "分享",
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 16.sp, color: ColorName.white),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ : Column(
|
|
|
+ children: [
|
|
|
+ Text(
|
|
|
+ '发送至',
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 14.sp,
|
|
|
+ color: ColorName.secondaryTextColor),
|
|
|
+ ),
|
|
|
+ SizedBox(height: 8.h),
|
|
|
+ Row(
|
|
|
+ children: [
|
|
|
+ _buildShareItem(StringName.dialogSendFriend.tr,
|
|
|
+ Assets.images.iconWx.provider(), () {
|
|
|
+ callback(
|
|
|
+ shareType.value, ShareTo.wechat, tag);
|
|
|
+ }),
|
|
|
+ _buildShareItem(StringName.dialogSendFriend.tr,
|
|
|
+ Assets.images.iconQq.provider(), () {
|
|
|
+ callback(shareType.value, ShareTo.qq, tag);
|
|
|
+ }),
|
|
|
+ ],
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
],
|
|
|
),
|
|
|
),
|
|
|
@@ -159,4 +193,4 @@ Widget _buildShareItem(
|
|
|
|
|
|
enum ShareTalkType { summary, original }
|
|
|
|
|
|
-enum ShareTo { wechat, qq }
|
|
|
+enum ShareTo { wechat, qq, ios }
|