From 80458c9ba8cf5e9277c523a0fa409d0f327095ab Mon Sep 17 00:00:00 2001 From: MohammadTaha Basiri Date: Sat, 1 Jan 2022 19:46:36 +0330 Subject: [PATCH] update assets --- lib/assets/images/records/record-dark.svg | 38 +++++++++++++++++++ lib/assets/images/records/record-light.svg | 38 +++++++++++++++++++ .../themes/{dark-theme.svg => theme-dark.svg} | 0 .../{light-theme.svg => theme-light.svg} | 0 lib/constants/assets.dart | 3 ++ pubspec.yaml | 6 ++- 6 files changed, 83 insertions(+), 2 deletions(-) create mode 100644 lib/assets/images/records/record-dark.svg create mode 100644 lib/assets/images/records/record-light.svg rename lib/assets/images/themes/{dark-theme.svg => theme-dark.svg} (100%) rename lib/assets/images/themes/{light-theme.svg => theme-light.svg} (100%) diff --git a/lib/assets/images/records/record-dark.svg b/lib/assets/images/records/record-dark.svg new file mode 100644 index 0000000..a95f8e3 --- /dev/null +++ b/lib/assets/images/records/record-dark.svg @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/assets/images/records/record-light.svg b/lib/assets/images/records/record-light.svg new file mode 100644 index 0000000..375ee5b --- /dev/null +++ b/lib/assets/images/records/record-light.svg @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/assets/images/themes/dark-theme.svg b/lib/assets/images/themes/theme-dark.svg similarity index 100% rename from lib/assets/images/themes/dark-theme.svg rename to lib/assets/images/themes/theme-dark.svg diff --git a/lib/assets/images/themes/light-theme.svg b/lib/assets/images/themes/theme-light.svg similarity index 100% rename from lib/assets/images/themes/light-theme.svg rename to lib/assets/images/themes/theme-light.svg diff --git a/lib/constants/assets.dart b/lib/constants/assets.dart index e22b26f..cf1b73a 100644 --- a/lib/constants/assets.dart +++ b/lib/constants/assets.dart @@ -6,6 +6,7 @@ class Assets { static const String _baseImagesPath = _basePath + '/images'; static const String _baseThemesPath = _basePath + '/images/themes'; static const String _baseAnimationsPath = _basePath + '/animations'; + static const String _baseRecordsPath = _basePath + '/records'; static String get verticalLogoWithText => _baseImagesPath + '/logos/logo-vertical-$_themeSuffix.svg'; @@ -31,6 +32,8 @@ class Assets { static const String lightTheme = _baseThemesPath + '/light-theme.svg'; static const String darkTheme = _baseThemesPath + '/dark-theme.svg'; + static String get recordDark => _baseRecordsPath + '/$_themeSuffix-theme.svg'; + static String get _themeSuffix => DesignConfig.brightness == Brightness.dark ? 'dark' : 'light'; } diff --git a/pubspec.yaml b/pubspec.yaml index 395295a..748390f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -97,8 +97,10 @@ flutter: - lib/assets/images/categories/political-dark.svg - lib/assets/images/categories/social-dark.svg - lib/assets/images/categories/tech-dark.svg - - lib/assets/images/themes/light-theme.svg - - lib/assets/images/themes/dark-theme.svg + - lib/assets/images/themes/theme-light.svg + - lib/assets/images/themes/theme-dark.svg + - lib/assets/images/records/record-dark.svg + - lib/assets/images/records/record-light.svg - lib/assets/animations/indicator.riv