style: apply dart format across project
This commit is contained in:
@@ -28,14 +28,14 @@ class CategoryProvider extends ChangeNotifier {
|
||||
sortedCategories.sort((a, b) {
|
||||
final aIndex = _categoryOrder.indexOf(a.name);
|
||||
final bIndex = _categoryOrder.indexOf(b.name);
|
||||
|
||||
|
||||
// 순서 목록에 없는 카테고리는 맨 뒤로
|
||||
if (aIndex == -1) return 1;
|
||||
if (bIndex == -1) return -1;
|
||||
|
||||
|
||||
return aIndex.compareTo(bIndex);
|
||||
});
|
||||
|
||||
|
||||
return sortedCategories;
|
||||
}
|
||||
|
||||
@@ -59,9 +59,17 @@ class CategoryProvider extends ChangeNotifier {
|
||||
{'name': 'storageCloud', 'color': '#2196F3', 'icon': 'cloud'},
|
||||
{'name': 'telecomInternetTv', 'color': '#00BCD4', 'icon': 'wifi'},
|
||||
{'name': 'lifestyle', 'color': '#4CAF50', 'icon': 'home'},
|
||||
{'name': 'shoppingEcommerce', 'color': '#FF9800', 'icon': 'shopping_cart'},
|
||||
{
|
||||
'name': 'shoppingEcommerce',
|
||||
'color': '#FF9800',
|
||||
'icon': 'shopping_cart'
|
||||
},
|
||||
{'name': 'programming', 'color': '#795548', 'icon': 'code'},
|
||||
{'name': 'collaborationOffice', 'color': '#607D8B', 'icon': 'business_center'},
|
||||
{
|
||||
'name': 'collaborationOffice',
|
||||
'color': '#607D8B',
|
||||
'icon': 'business_center'
|
||||
},
|
||||
{'name': 'aiService', 'color': '#673AB7', 'icon': 'smart_toy'},
|
||||
{'name': 'other', 'color': '#9E9E9E', 'icon': 'category'},
|
||||
];
|
||||
@@ -117,7 +125,7 @@ class CategoryProvider extends ChangeNotifier {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 카테고리 이름을 현재 언어에 맞게 반환
|
||||
String getLocalizedCategoryName(BuildContext context, String categoryKey) {
|
||||
final localizations = AppLocalizations.of(context);
|
||||
|
||||
Reference in New Issue
Block a user