Skip to content

Commit

Permalink
Merge pull request #8 from thecodepapaya/dev
Browse files Browse the repository at this point in the history
Sort project and blog tags alphabetically
  • Loading branch information
thecodepapaya authored Sep 12, 2021
2 parents 397a824 + 1f96b13 commit 141088b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion lib/blogs/blog_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ class BlogData {
required this.tags,
required this.url,
required this.read,
}) : assert(description.length < Constants.charLimitCardDesc);
}) {
assert(description.length < Constants.charLimitCardDesc);
tags.sort();
}

final String title;
final String description;
Expand Down
5 changes: 4 additions & 1 deletion lib/projects/project_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ class ProjectData {
required this.gitHub,
required this.link,
this.technologies = const [],
}) : assert(description.length < Constants.charLimitCardDesc);
}) {
assert(description.length < Constants.charLimitCardDesc);
technologies.sort();
}

final String title;
final String description;
Expand Down
2 changes: 1 addition & 1 deletion lib/projects/projects.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ final data = [
gitHub: "https://github.com/thecodepapaya/udhari",
link:
"https://play.google.com/store/apps/details?id=com.thecodepapaya.udhari",
technologies: ["Flutter", "Django", "DRF", "Dart"],
technologies: ["Flutter", "Django", "DRF", "Dart", "Python"],
),
ProjectData(
title: "FASE - Post-covid attendance solution",
Expand Down

0 comments on commit 141088b

Please sign in to comment.