40 lines
1.7 KiB
Dart
40 lines
1.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 _baseThemesPath = _basePath + '/images/themes';
|
|
static const String _baseAnimationsPath = _basePath + '/animations';
|
|
static const String _baseRecordsPath = _basePath + '/images/records';
|
|
|
|
static String get verticalLogoWithText =>
|
|
_baseImagesPath + '/logos/logo-vertical-$_themeSuffix.svg';
|
|
static String get horizontalLogoWithText =>
|
|
_baseImagesPath + '/logos/logo-horizontal-$_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 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';
|
|
}
|