didvan-app/lib/constants/assets.dart

61 lines
2.7 KiB
Dart

import 'package:didvan/config/design_config.dart';
import 'package:flutter/cupertino.dart';
class Assets {
static const String _basePath = 'lib/assets';
static const String _baseImagesPath = _basePath + '/images';
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 = _baseImagesPath + '/records';
static const String _baseLogosPath = _baseImagesPath + '/logos';
static String get verticalLogoWithText =>
_baseLogosPath + '/logo-vertical-$_themeSuffix.svg';
static String get horizontalLogoWithText =>
_baseLogosPath + '/logo-horizontal-$_themeSuffix.svg';
static String get studioLogo => _baseLogosPath + '/studio-$_themeSuffix.svg';
static String get logoLoadingAnimation =>
_baseAnimationsPath + '/indicator-$_themeSuffix.riv';
static String get businessCategoryIcon =>
_baseCategoriesPath + '/business-$_themeSuffix.svg';
static String get economicCategoryIcon =>
_baseCategoriesPath + '/economic-$_themeSuffix.svg';
static String get enviromentalCategoryIcon =>
_baseCategoriesPath + '/enviromental-$_themeSuffix.svg';
static String get politicalCategoryIcon =>
_baseCategoriesPath + '/political-$_themeSuffix.svg';
static String get socialCategoryIcon =>
_baseCategoriesPath + '/social-$_themeSuffix.svg';
static String get techCategoryIcon =>
_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';
static String get emptyChart =>
_baseEmptyStatesPath + '/chart-$_themeSuffix.svg';
static String get emptyChat =>
_baseEmptyStatesPath + '/chat-$_themeSuffix.svg';
static String get emptyConnection =>
_baseEmptyStatesPath + '/connection-$_themeSuffix.svg';
static String get emptyResult =>
_baseEmptyStatesPath + '/result-$_themeSuffix.svg';
static const String lightTheme = _baseThemesPath + '/theme-light.svg';
static const String darkTheme = _baseThemesPath + '/theme-dark.svg';
static String get record => _baseRecordsPath + '/record-$_themeSuffix.svg';
static String get _themeSuffix =>
DesignConfig.brightness == Brightness.dark ? 'dark' : 'light';
}