Skip to content

Commit 504fcf7

Browse files
committed
branch
1 parent b231898 commit 504fcf7

5 files changed

Lines changed: 34 additions & 3 deletions

File tree

‎RECORD.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# gsy_github_app_flutter
2+
3+
Github Application
4+
5+
## Getting Started
6+
7+
For help getting started with Flutter, view our online
8+
[documentation](https://flutter.io/).
9+
10+
11+
准备:网络请求库使用dio、flutter-redux、sqflite、css_colors
12+
13+
14+
在哪里存储字符串? 如何存储不同的语言
15+
目前,最好的做法是创建一个名为Strings的类
16+
class Strings{
17+
static String welcomeMessage = "Welcome To Flutter";
18+
}
19+
然后在你的代码中,你可以像访问你的字符串一样:new Text(Strings.welcomeMessage)
20+
21+
welcome -> login
22+
23+
生成序列化模板
24+
flutter packages pub run build_runner build
25+
26+
### 配合AutomaticKeepAliveClientMixin可以keep住tab
27+
28+
### 如何主动刷新refresh,如何设置appbar上的leading和bottom,如何设置tabbar的live
29+
30+
https://github.com/flutter/flutter/issues/19030 没有webview,残念

‎lib/common/dao/ReposDao.dart‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class ReposDao {
7373
* 仓库活动事件
7474
*/
7575
static getRepositoryEventDao(userName, reposName, {page = 0, branch = "master"}) async {
76-
String url = Address.getReposEvent(userName, reposName) + Address.getPageParams("?", page) + "&ref=" + branch;
76+
String url = Address.getReposEvent(userName, reposName) + Address.getPageParams("?", page);
7777
var res = await HttpManager.netFetch(url, null, null, null);
7878
if (res != null && res.result) {
7979
List<EventViewModel> list = new List();
@@ -106,7 +106,7 @@ class ReposDao {
106106
* 获取仓库的提交列表
107107
*/
108108
static getReposCommitsDao(userName, reposName, {page = 0, branch = "master"}) async {
109-
String url = Address.getReposCommits(userName, reposName) + Address.getPageParams("?", page) + "&ref=" + branch;
109+
String url = Address.getReposCommits(userName, reposName) + Address.getPageParams("?", page) + "&sha=" + branch;
110110
var res = await HttpManager.netFetch(url, null, null, null);
111111
if (res != null && res.result) {
112112
List<EventViewModel> list = new List();

‎lib/page/WelcomePage.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class WelcomePage extends StatelessWidget {
3232
return new Container(
3333
color: Colors.white,
3434
child: new Center(
35-
child: new Text("Welcome", style: new TextStyle(color: Colors.black, fontSize: 22.0)),
35+
child: new Image(image: new AssetImage('static/images/logo.png'), width: 90.0, height: 90.0),
3636
),
3737
);
3838
},

‎pubspec.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ flutter:
6767

6868
assets:
6969
- static/images/logo.png
70+
- static/images/welcome.png
7071

7172
fonts:
7273
- family: wxcIconFont

‎static/images/welcome.png‎

904 KB
Loading

0 commit comments

Comments
 (0)