Skip to content

Commit

Permalink
Fix flutter anlyze errors
Browse files Browse the repository at this point in the history
  • Loading branch information
solo-daemon committed Mar 15, 2023
1 parent cf90124 commit a0debbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/pages/home/leaderboard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ class _LeaderBoardState extends ConsumerState<LeaderBoard> {
.withOpacity(0.42)
: Colors.white,
leading:
buildAvatar(leaderList![index].image),
buildAvatar(leaderList[index].image),
title: Text(
leaderList[index].user,
style: GoogleFonts.ubuntu(
Expand Down
4 changes: 2 additions & 2 deletions lib/src/util/api/leaderboard_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class LeaderboardApiClient {
static Future<LeaderData> getMonthlyLeaderData(String paginatedUrl,int? year , int? month) async{
final queryParams = {
"filter" : '1',
"year" : year.toString() ?? DateTime.now().year.toString(),
"month" : month.toString() ?? DateTime.now().month.toString(),
"year" : year.toString() ,
"month" : month.toString() ,
};
print(Uri.parse(paginatedUrl).replace(queryParameters: queryParams));
return http
Expand Down

0 comments on commit a0debbd

Please sign in to comment.