Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-fluwx
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
clx-fluwx
Commits
0f236174
提交
0f236174
authored
8月 14, 2018
作者:
JarvanMo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
结构调整
上级
07539a8e
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
13 行增加
和
8 行删除
+13
-8
build.gradle
example/android/app/build.gradle
+1
-1
main.dart
example/lib/main.dart
+4
-5
fluwx.dart
lib/fluwx.dart
+6
-0
wechat_plugin.dart
lib/src/wechat_plugin.dart
+1
-1
wechat_share_models.dart
lib/src/wechat_share_models.dart
+1
-1
没有找到文件。
example/android/app/build.gradle
浏览文件 @
0f236174
...
@@ -49,7 +49,7 @@ flutter {
...
@@ -49,7 +49,7 @@ flutter {
}
}
dependencies
{
dependencies
{
implementation
"org.jetbrains.kotlin:kotlin-stdlib-j
re
7:$kotlin_version"
implementation
"org.jetbrains.kotlin:kotlin-stdlib-j
dk
7:$kotlin_version"
testImplementation
'junit:junit:4.12'
testImplementation
'junit:junit:4.12'
androidTestImplementation
'com.android.support.test:runner:1.0.1'
androidTestImplementation
'com.android.support.test:runner:1.0.1'
androidTestImplementation
'com.android.support.test.espresso:espresso-core:3.0.1'
androidTestImplementation
'com.android.support.test.espresso:espresso-core:3.0.1'
...
...
example/lib/main.dart
浏览文件 @
0f236174
...
@@ -2,8 +2,7 @@ import 'dart:async';
...
@@ -2,8 +2,7 @@ import 'dart:async';
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/services.dart'
;
import
'package:flutter/services.dart'
;
import
'package:wechat_plugin/src/wechat_share_models.dart'
;
import
'package:wechat_plugin/fluwx.dart'
;
import
'package:wechat_plugin/wechat_plugin.dart'
;
void
main
(
)
=>
runApp
(
new
MyApp
());
void
main
(
)
=>
runApp
(
new
MyApp
());
...
@@ -20,8 +19,8 @@ class _MyAppState extends State<MyApp> {
...
@@ -20,8 +19,8 @@ class _MyAppState extends State<MyApp> {
@override
@override
void
initState
()
{
void
initState
()
{
super
.
initState
();
super
.
initState
();
WechatPlugin
.
init
(
"wxd930ea5d5a258f4f"
);
initPlatformState
();
initPlatformState
();
Fluwx
.
init
(
"wxd930ea5d5a258f4f"
);
}
}
// Platform messages are asynchronous, so we initialize in an async method.
// Platform messages are asynchronous, so we initialize in an async method.
...
@@ -54,8 +53,8 @@ class _MyAppState extends State<MyApp> {
...
@@ -54,8 +53,8 @@ class _MyAppState extends State<MyApp> {
body:
new
Center
(
body:
new
Center
(
child:
GestureDetector
(
child:
GestureDetector
(
onTap:
(){
onTap:
(){
var
wx
=
WechatPlugin
();
var
fluwx
=
Fluwx
();
wx
.
shareText
(
WeChatShareTextModel
(
text:
"wq kcg r"
,
flu
wx
.
shareText
(
WeChatShareTextModel
(
text:
"wq kcg r"
,
transaction:
"xxxx
${DateTime.now().millisecondsSinceEpoch}
"
,
transaction:
"xxxx
${DateTime.now().millisecondsSinceEpoch}
"
,
));
));
}
,
}
,
...
...
lib/fluwx.dart
0 → 100644
浏览文件 @
0f236174
library
fluwe
;
export
'src/wechat_plugin.dart'
;
export
'src/wechat_share_models.dart'
;
export
'src/wechat_scene.dart'
;
export
'src/wechat_reponse.dart'
;
\ No newline at end of file
lib/wechat_plugin.dart
→
lib/
src/
wechat_plugin.dart
浏览文件 @
0f236174
...
@@ -3,7 +3,7 @@ import 'dart:async';
...
@@ -3,7 +3,7 @@ import 'dart:async';
import
'package:flutter/services.dart'
;
import
'package:flutter/services.dart'
;
import
'package:wechat_plugin/src/wechat_share_models.dart'
;
import
'package:wechat_plugin/src/wechat_share_models.dart'
;
class
WechatPlugin
{
class
Fluwx
{
static
const
MethodChannel
_channel
=
const
MethodChannel
(
'wechat_plugin'
);
static
const
MethodChannel
_channel
=
const
MethodChannel
(
'wechat_plugin'
);
...
...
lib/src/wechat_share_models.dart
浏览文件 @
0f236174
import
'
package:wechat_plugin/src/
wechat_scene.dart'
;
import
'wechat_scene.dart'
;
const
String
_scene
=
"scene"
;
const
String
_scene
=
"scene"
;
const
String
_transaction
=
"transaction"
;
const
String
_transaction
=
"transaction"
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论