Skip to content

Commit c0da4a4

Browse files
committed
changes
1 parent 99c3a93 commit c0da4a4

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ You can view information about yourself and someone else by giving the username.
1212

1313
Please go to the [release page](https://github.com/ice1000/code_wars_android/releases).
1414

15+
The apk and flx are uploaded by Travis CI automatically.
16+
1517
## Progress
1618

17-
- [X] Display user basic data
19+
- [X] Display user basic information
20+
- [X] Display user details
1821
- [ ] Display user completed katas
1922
- [ ] Display collections of other users
2023
- [X] View source

lib/view/main.dart

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -269,19 +269,7 @@ class _MainActivityState extends State<MainActivity>
269269
setState(_changeAh);
270270
});
271271
}),
272-
new IconButton(icon: new Icon(Icons.bug_report), onPressed: () {
273-
setState(() {
274-
_performChangeUser("""
275-
{"username": "ice1000","name": "千里冰封","honor": 935,"clan": "Gensokyo",
276-
"leaderboardPosition": 4552,"skills": ["haskell","cross dress","sell moe"],
277-
"ranks": {"overall": {"rank": -4,"name": "4 kyu","color": "blue","score":
278-
1296},"languages": {
279-
"java": {"rank": -8,"name": "8 kyu","color": "white","score": 2 },
280-
"dart": {"rank": -8,"name": "8 kyu","color": "white","score": 3},
281-
"haskell": {"rank": -4,"name": "4 kyu","color": "blue","score": 1291}}},
282-
"codeChallenges": {"totalAuthored": 0,"totalCompleted": 89}}""");
283-
});
284-
}),
272+
_debugDataSourceButton(),
285273
],
286274
bottom: new TabBar(
287275
controller: _tabController,
@@ -300,4 +288,19 @@ class _MainActivityState extends State<MainActivity>
300288
.map(buildTabView)
301289
.toList()),);
302290
}
291+
292+
_debugDataSourceButton() =>
293+
new IconButton(icon: new Icon(Icons.bug_report), onPressed: () {
294+
setState(() {
295+
_performChangeUser("""
296+
{"username": "ice1000","name": "千里冰封","honor": 935,"clan": "Gensokyo",
297+
"leaderboardPosition": 4552,"skills": ["haskell","cross dress","sell moe"],
298+
"ranks": {"overall": {"rank": -4,"name": "4 kyu","color": "blue","score":
299+
1296},"languages": {
300+
"java": {"rank": -8,"name": "8 kyu","color": "white","score": 2 },
301+
"dart": {"rank": -8,"name": "8 kyu","color": "white","score": 3},
302+
"haskell": {"rank": -4,"name": "4 kyu","color": "blue","score": 1291}}},
303+
"codeChallenges": {"totalAuthored": 0,"totalCompleted": 89}}""");
304+
});
305+
});
303306
}

0 commit comments

Comments
 (0)