Skip to content

Commit 899b12a

Browse files
committed
fix bug with trend
1 parent 0aa7d82 commit 899b12a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/model/SearchUserQL.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class SearchUserQL {
2626
lang = map["lang"]["nodes"][0]["languages"]["nodes"][0]["name"];
2727
}
2828
return SearchUserQL(
29-
followers: map["followers"]["totalCount"],
29+
followers: map["followers"]?["totalCount"],
3030
name: map["name"],
3131
avatarUrl: map["avatarUrl"],
3232
bio: map["bio"],

lib/page/user/widget/user_item.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class UserItem extends StatelessWidget {
3232
placeholder: GSYICons.DEFAULT_USER_ICON,
3333
//预览图
3434
fit: BoxFit.fitWidth,
35-
image: userItemViewModel.userPic!,
35+
image: userItemViewModel.userPic ?? "https://github.com/CarGuo/gsy_github_app_flutter/blob/master/logo.png?raw=true",
3636
width: 40.0,
3737
height: 40.0,
3838
),

0 commit comments

Comments
 (0)