From 27e44fb764e1a04cfa628ae111854ef685b91eff Mon Sep 17 00:00:00 2001 From: MohammadTaha Basiri Date: Sat, 16 Apr 2022 14:37:51 +0430 Subject: [PATCH] statistic category icons added --- lib/assets/images/categories/glob-dark.svg | 54 +++++++++++++++++++ lib/assets/images/categories/glob-light.svg | 54 +++++++++++++++++++ lib/assets/images/categories/steel-dark.svg | 9 ++++ lib/assets/images/categories/steel-light.svg | 9 ++++ lib/assets/images/categories/stock-dark.svg | 42 +++++++++++++++ lib/assets/images/categories/stock-light.svg | 42 +++++++++++++++ lib/constants/assets.dart | 27 ++++++---- lib/views/home/statistic/statistic_state.dart | 6 +-- 8 files changed, 230 insertions(+), 13 deletions(-) create mode 100644 lib/assets/images/categories/glob-dark.svg create mode 100644 lib/assets/images/categories/glob-light.svg create mode 100644 lib/assets/images/categories/steel-dark.svg create mode 100644 lib/assets/images/categories/steel-light.svg create mode 100644 lib/assets/images/categories/stock-dark.svg create mode 100644 lib/assets/images/categories/stock-light.svg diff --git a/lib/assets/images/categories/glob-dark.svg b/lib/assets/images/categories/glob-dark.svg new file mode 100644 index 0000000..a70de82 --- /dev/null +++ b/lib/assets/images/categories/glob-dark.svg @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/assets/images/categories/glob-light.svg b/lib/assets/images/categories/glob-light.svg new file mode 100644 index 0000000..3888540 --- /dev/null +++ b/lib/assets/images/categories/glob-light.svg @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/assets/images/categories/steel-dark.svg b/lib/assets/images/categories/steel-dark.svg new file mode 100644 index 0000000..6b56bc0 --- /dev/null +++ b/lib/assets/images/categories/steel-dark.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/lib/assets/images/categories/steel-light.svg b/lib/assets/images/categories/steel-light.svg new file mode 100644 index 0000000..1c1cc9b --- /dev/null +++ b/lib/assets/images/categories/steel-light.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/lib/assets/images/categories/stock-dark.svg b/lib/assets/images/categories/stock-dark.svg new file mode 100644 index 0000000..818f6e5 --- /dev/null +++ b/lib/assets/images/categories/stock-dark.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/assets/images/categories/stock-light.svg b/lib/assets/images/categories/stock-light.svg new file mode 100644 index 0000000..22ccde7 --- /dev/null +++ b/lib/assets/images/categories/stock-light.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/constants/assets.dart b/lib/constants/assets.dart index 602abbb..f582dff 100644 --- a/lib/constants/assets.dart +++ b/lib/constants/assets.dart @@ -4,11 +4,12 @@ import 'package:flutter/cupertino.dart'; class Assets { static const String _basePath = 'lib/assets'; static const String _baseImagesPath = _basePath + '/images'; - static const String _baseThemesPath = _basePath + '/images/themes'; - static const String _baseEmptyStatesPath = _basePath + '/images/empty_states'; + static const String _baseCategoriesPath = _baseImagesPath + '/categories'; + static const String _baseThemesPath = _baseImagesPath + '/themes'; + static const String _baseEmptyStatesPath = _baseImagesPath + '/empty_states'; static const String _baseAnimationsPath = _basePath + '/animations'; - static const String _baseRecordsPath = _basePath + '/images/records'; - static const String _baseLogosPath = _basePath + '/images/logos'; + static const String _baseRecordsPath = _baseImagesPath + '/records'; + static const String _baseLogosPath = _baseImagesPath + '/logos'; static String get verticalLogoWithText => _baseLogosPath + '/logo-vertical-$_themeSuffix.svg'; @@ -20,17 +21,23 @@ class Assets { _baseAnimationsPath + '/indicator-$_themeSuffix.riv'; static String get businessCategoryIcon => - _baseImagesPath + '/categories/business-$_themeSuffix.svg'; + _baseCategoriesPath + '/business-$_themeSuffix.svg'; static String get economicCategoryIcon => - _baseImagesPath + '/categories/economic-$_themeSuffix.svg'; + _baseCategoriesPath + '/economic-$_themeSuffix.svg'; static String get enviromentalCategoryIcon => - _baseImagesPath + '/categories/enviromental-$_themeSuffix.svg'; + _baseCategoriesPath + '/enviromental-$_themeSuffix.svg'; static String get politicalCategoryIcon => - _baseImagesPath + '/categories/political-$_themeSuffix.svg'; + _baseCategoriesPath + '/political-$_themeSuffix.svg'; static String get socialCategoryIcon => - _baseImagesPath + '/categories/social-$_themeSuffix.svg'; + _baseCategoriesPath + '/social-$_themeSuffix.svg'; static String get techCategoryIcon => - _baseImagesPath + '/categories/tech-$_themeSuffix.svg'; + _baseCategoriesPath + '/tech-$_themeSuffix.svg'; + static String get steelCategoryIcon => + _baseCategoriesPath + '/steel-$_themeSuffix.svg'; + static String get stockCategoryIcon => + _baseCategoriesPath + '/stock-$_themeSuffix.svg'; + static String get globCategoryIcon => + _baseCategoriesPath + '/glob-$_themeSuffix.svg'; static String get emptyBookmark => _baseEmptyStatesPath + '/bookmark-$_themeSuffix.svg'; diff --git a/lib/views/home/statistic/statistic_state.dart b/lib/views/home/statistic/statistic_state.dart index 2cbcaca..19d7883 100644 --- a/lib/views/home/statistic/statistic_state.dart +++ b/lib/views/home/statistic/statistic_state.dart @@ -98,17 +98,17 @@ class StatisticState extends CoreProvier { CategoryData( id: 2, label: 'اقتصاد کلان', - asset: Assets.economicCategoryIcon, + asset: Assets.globCategoryIcon, ), CategoryData( id: 3, label: 'صنعت فولاد', - asset: Assets.politicalCategoryIcon, + asset: Assets.steelCategoryIcon, ), CategoryData( id: 4, label: 'بازار سرمایه', - asset: Assets.techCategoryIcon, + asset: Assets.stockCategoryIcon, ), ]; }