54 lines
2.4 KiB
Dart
54 lines
2.4 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 _baseThemesPath = _basePath + '/images/themes';
|
|
static const String _baseEmptyStatesPath = _basePath + '/images/empty_states';
|
|
static const String _baseAnimationsPath = _basePath + '/animations';
|
|
static const String _baseRecordsPath = _basePath + '/images/records';
|
|
static const String _baseLogosPath = _basePath + '/images/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 =>
|
|
_baseImagesPath + '/categories/business-$_themeSuffix.svg';
|
|
static String get economicCategoryIcon =>
|
|
_baseImagesPath + '/categories/economic-$_themeSuffix.svg';
|
|
static String get enviromentalCategoryIcon =>
|
|
_baseImagesPath + '/categories/enviromental-$_themeSuffix.svg';
|
|
static String get politicalCategoryIcon =>
|
|
_baseImagesPath + '/categories/political-$_themeSuffix.svg';
|
|
static String get socialCategoryIcon =>
|
|
_baseImagesPath + '/categories/social-$_themeSuffix.svg';
|
|
static String get techCategoryIcon =>
|
|
_baseImagesPath + '/categories/tech-$_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';
|
|
}
|