Skip to content

Commit

Permalink
feat(contact-icons): sort url types
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-the-shark committed Aug 9, 2024
1 parent ce52f85 commit a6fea1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/config/url_icons.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ abstract class ContactIconsConfig {
"maps": 1,
"tel": 2,
"mailto:": 3,
"linkedin": 5,
"facebook": 6,
"instagram": 7,
"youtu": 8,
"github": 9,
"facebook": 5,
"instagram": 6,
"linkedin": 7,
"github": 8,
"youtu": 9,
};
static const defaultIconOrder = 4;
static const defaultIcon = "assets/contact_icons/web.svg";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class ContactSection extends StatelessWidget {

@override
Widget build(BuildContext context) {
list.sort((a, b) => a.order.compareTo(b.order));
return Container(
padding: const EdgeInsets.only(top: 24, left: 24, right: 24, bottom: 8),
color: context.colorTheme.greyLight,
Expand Down

0 comments on commit a6fea1b

Please sign in to comment.