File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7777** json_serializable** |** json模板**
7878** url_launcher** |** 启动外部浏览器**
7979** iconfont** |** 字库图标**
80+ ** share** |** 系统分享**
81+ ** flutter_spinkit** |** 加载框样式**
8082
8183
8284### 进行中:
8385
8486* IOS未测试
8587* 主页drawer:关于、个人信息
86- * 切换账户后的数据切换。
8788* 仓库的: 动态的背景头像|版本|tag| 浏览器打开|下载、复制克隆间接|分享
8889* 本地数据库
8990
Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ class GSYStrings {
195195 static const String option_share = "分享" ;
196196 static const String option_web_launcher_error = "url异常" ;
197197 static const String option_share_title = "分享自GitHubFlutterApp: " ;
198+ static const String option_share_copy_success = "已经复制到粘贴板" ;
198199
199200 static const String login_text = "登录" ;
200201
Original file line number Diff line number Diff line change 11import 'package:flutter/material.dart' ;
2+ import 'package:flutter/services.dart' ;
23import 'package:fluttertoast/fluttertoast.dart' ;
34import 'package:gsy_github_app_flutter/common/style/GSYStyle.dart' ;
45import 'package:url_launcher/url_launcher.dart' ;
@@ -55,6 +56,8 @@ class GSYCommonOptionWidget extends StatelessWidget {
5556 }),
5657 new GSYOptionModel (GSYStrings .option_copy, GSYStrings .option_copy, (model) {
5758 print ("复制链接" );
59+ Clipboard .setData (new ClipboardData (text: url));
60+ Fluttertoast .showToast (msg: GSYStrings .option_share_copy_success);
5861 }),
5962 new GSYOptionModel (GSYStrings .option_share, GSYStrings .option_share, (model) {
6063 Share .share (text);
You can’t perform that action at this time.
0 commit comments