Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-fluwx
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
clx-fluwx
Commits
3555761d
提交
3555761d
authored
3月 08, 2020
作者:
JarvanMo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename constructor of WeChatImage
上级
64126edd
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
10 行增加
和
10 行删除
+10
-10
share_image_page.dart
example/lib/share_image_page.dart
+2
-2
share_mini_program.dart
example/lib/share_mini_program.dart
+1
-1
share_music.dart
example/lib/share_music.dart
+1
-1
share_video_page.dart
example/lib/share_video_page.dart
+1
-1
share_web_page.dart
example/lib/share_web_page.dart
+1
-1
wechat_image.dart
lib/src/wechat_image.dart
+4
-4
没有找到文件。
example/lib/share_image_page.dart
浏览文件 @
3555761d
...
@@ -54,7 +54,7 @@ class _ShareImagePageState extends State<ShareImagePage> {
...
@@ -54,7 +54,7 @@ class _ShareImagePageState extends State<ShareImagePage> {
text:
text:
"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1534614311230&di=b17a892b366b5d002f52abcce7c4eea0&imgtype=0&src=http%3A%2F%2Fimg.mp.sohu.com%2Fupload%2F20170516%2F51296b2673704ae2992d0a28c244274c_th.png"
),
"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1534614311230&di=b17a892b366b5d002f52abcce7c4eea0&imgtype=0&src=http%3A%2F%2Fimg.mp.sohu.com%2Fupload%2F20170516%2F51296b2673704ae2992d0a28c244274c_th.png"
),
onChanged:
(
value
)
{
onChanged:
(
value
)
{
source
=
WeChatImage
.
fromN
etwork
(
value
);
source
=
WeChatImage
.
n
etwork
(
value
);
},
},
keyboardType:
TextInputType
.
multiline
,
keyboardType:
TextInputType
.
multiline
,
),
),
...
@@ -62,7 +62,7 @@ class _ShareImagePageState extends State<ShareImagePage> {
...
@@ -62,7 +62,7 @@ class _ShareImagePageState extends State<ShareImagePage> {
decoration:
InputDecoration
(
labelText:
"缩略地址"
),
decoration:
InputDecoration
(
labelText:
"缩略地址"
),
controller:
TextEditingController
(
text:
"//images/logo.png"
),
controller:
TextEditingController
(
text:
"//images/logo.png"
),
onChanged:
(
value
)
{
onChanged:
(
value
)
{
thumbnail
=
WeChatImage
.
fromA
sset
(
value
);
thumbnail
=
WeChatImage
.
a
sset
(
value
);
},
},
),
),
new
Row
(
new
Row
(
...
...
example/lib/share_mini_program.dart
浏览文件 @
3555761d
...
@@ -95,7 +95,7 @@ class _ShareMiniProgramPageState extends State<ShareMiniProgramPage> {
...
@@ -95,7 +95,7 @@ class _ShareMiniProgramPageState extends State<ShareMiniProgramPage> {
title:
_title
,
title:
_title
,
path:
_path
,
path:
_path
,
description:
_description
,
description:
_description
,
thumbnail:
WeChatImage
.
fromN
etwork
(
_thumbnail
)
thumbnail:
WeChatImage
.
n
etwork
(
_thumbnail
)
);
);
shareToWeChat
(
model
);
shareToWeChat
(
model
);
}
}
...
...
example/lib/share_music.dart
浏览文件 @
3555761d
...
@@ -122,7 +122,7 @@ class _ShareMusicPageState extends State<ShareMusicPage> {
...
@@ -122,7 +122,7 @@ class _ShareMusicPageState extends State<ShareMusicPage> {
musicUrl:
_musicUrl
,
musicUrl:
_musicUrl
,
scene:
scene
,
scene:
scene
,
musicLowBandUrl:
_musicLowBandUrl
,
musicLowBandUrl:
_musicLowBandUrl
,
thumbnail:
WeChatImage
.
fromN
etwork
(
_thumnail
));
thumbnail:
WeChatImage
.
n
etwork
(
_thumnail
));
shareToWeChat
(
model
);
shareToWeChat
(
model
);
}
}
...
...
example/lib/share_video_page.dart
浏览文件 @
3555761d
...
@@ -118,7 +118,7 @@ class _ShareMusicPageState extends State<ShareVideoPage> {
...
@@ -118,7 +118,7 @@ class _ShareMusicPageState extends State<ShareVideoPage> {
var
model
=
new
WeChatShareVideoModel
(
var
model
=
new
WeChatShareVideoModel
(
videoUrl:
_videoUrl
,
videoUrl:
_videoUrl
,
videoLowBandUrl:
_videoLowBandUrl
,
videoLowBandUrl:
_videoLowBandUrl
,
thumbnail:
WeChatImage
.
fromN
etwork
(
_thumnail
),
thumbnail:
WeChatImage
.
n
etwork
(
_thumnail
),
description:
_description
,
description:
_description
,
scene:
this
.
scene
,
scene:
this
.
scene
,
title:
_title
);
title:
_title
);
...
...
example/lib/share_web_page.dart
浏览文件 @
3555761d
...
@@ -102,7 +102,7 @@ class ShareWebPagePageState extends State<ShareWebPagePage> {
...
@@ -102,7 +102,7 @@ class ShareWebPagePageState extends State<ShareWebPagePage> {
var
model
=
WeChatShareWebPageModel
(
var
model
=
WeChatShareWebPageModel
(
_url
,
_url
,
title:
_title
,
title:
_title
,
thumbnail:
WeChatImage
.
fromN
etwork
(
_thumnail
),
thumbnail:
WeChatImage
.
n
etwork
(
_thumnail
),
scene:
scene
,
scene:
scene
,
);
);
shareToWeChat
(
model
);
shareToWeChat
(
model
);
...
...
lib/src/wechat_image.dart
浏览文件 @
3555761d
...
@@ -25,25 +25,25 @@ class WeChatImage {
...
@@ -25,25 +25,25 @@ class WeChatImage {
final
ImageSchema
schema
;
final
ImageSchema
schema
;
final
String
suffix
;
final
String
suffix
;
WeChatImage
.
fromN
etwork
(
String
source
,
{
String
suffix
})
WeChatImage
.
n
etwork
(
String
source
,
{
String
suffix
})
:
assert
(
source
!=
null
&&
source
.
startsWith
(
"http"
)),
:
assert
(
source
!=
null
&&
source
.
startsWith
(
"http"
)),
this
.
source
=
source
,
this
.
source
=
source
,
this
.
schema
=
ImageSchema
.
NETWORK
,
this
.
schema
=
ImageSchema
.
NETWORK
,
this
.
suffix
=
source
.
readSuffix
(
suffix
);
this
.
suffix
=
source
.
readSuffix
(
suffix
);
WeChatImage
.
fromA
sset
(
String
source
,
{
String
suffix
})
WeChatImage
.
a
sset
(
String
source
,
{
String
suffix
})
:
assert
(
source
!=
null
&&
source
.
trim
().
isNotEmpty
),
:
assert
(
source
!=
null
&&
source
.
trim
().
isNotEmpty
),
this
.
source
=
source
,
this
.
source
=
source
,
this
.
schema
=
ImageSchema
.
ASSET
,
this
.
schema
=
ImageSchema
.
ASSET
,
this
.
suffix
=
source
.
readSuffix
(
suffix
);
this
.
suffix
=
source
.
readSuffix
(
suffix
);
WeChatImage
.
f
romF
ile
(
File
source
,
{
String
suffix
=
".jpeg"
})
WeChatImage
.
file
(
File
source
,
{
String
suffix
=
".jpeg"
})
:
assert
(
source
!=
null
),
:
assert
(
source
!=
null
),
this
.
source
=
source
.
path
,
this
.
source
=
source
.
path
,
this
.
schema
=
ImageSchema
.
FILE
,
this
.
schema
=
ImageSchema
.
FILE
,
this
.
suffix
=
source
.
path
.
readSuffix
(
suffix
);
this
.
suffix
=
source
.
path
.
readSuffix
(
suffix
);
WeChatImage
.
fromB
inary
(
Uint8List
source
,
{
String
suffix
=
".jpeg"
})
WeChatImage
.
b
inary
(
Uint8List
source
,
{
String
suffix
=
".jpeg"
})
:
assert
(
source
!=
null
),
:
assert
(
source
!=
null
),
assert
(
suffix
!=
null
&&
suffix
.
trim
().
isNotEmpty
),
assert
(
suffix
!=
null
&&
suffix
.
trim
().
isNotEmpty
),
this
.
source
=
source
,
this
.
source
=
source
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论