We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0aa7d82 commit 899b12aCopy full SHA for 899b12a
lib/model/SearchUserQL.dart
@@ -26,7 +26,7 @@ class SearchUserQL {
26
lang = map["lang"]["nodes"][0]["languages"]["nodes"][0]["name"];
27
}
28
return SearchUserQL(
29
- followers: map["followers"]["totalCount"],
+ followers: map["followers"]?["totalCount"],
30
name: map["name"],
31
avatarUrl: map["avatarUrl"],
32
bio: map["bio"],
lib/page/user/widget/user_item.dart
@@ -32,7 +32,7 @@ class UserItem extends StatelessWidget {
placeholder: GSYICons.DEFAULT_USER_ICON,
33
//预览图
34
fit: BoxFit.fitWidth,
35
- image: userItemViewModel.userPic!,
+ image: userItemViewModel.userPic ?? "https://github.com/CarGuo/gsy_github_app_flutter/blob/master/logo.png?raw=true",
36
width: 40.0,
37
height: 40.0,
38
),
0 commit comments