fix: assets paths

This commit is contained in:
julian 2023-05-09 17:18:27 -06:00
parent 604e4cfde7
commit 4fe014287c

View file

@ -2,11 +2,11 @@ import 'dart:convert';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:isar/isar.dart'; import 'package:isar/isar.dart';
import 'package:stackwallet/themes/color_theme.dart';
import 'package:stackwallet/utilities/enums/coin_enum.dart'; import 'package:stackwallet/utilities/enums/coin_enum.dart';
import 'package:stackwallet/utilities/extensions/impl/box_shadow.dart'; import 'package:stackwallet/utilities/extensions/impl/box_shadow.dart';
import 'package:stackwallet/utilities/extensions/impl/gradient.dart'; import 'package:stackwallet/utilities/extensions/impl/gradient.dart';
import 'package:stackwallet/utilities/extensions/impl/string.dart'; import 'package:stackwallet/utilities/extensions/impl/string.dart';
import 'package:stackwallet/themes/color_theme.dart';
part 'stack_theme.g.dart'; part 'stack_theme.g.dart';
@ -2041,110 +2041,110 @@ class ThemeAssets {
}) { }) {
return ThemeAssets() return ThemeAssets()
..bellNew = ..bellNew =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["bell_new"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["bell_new"] as String}"
..buy = ..buy =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["buy"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["buy"] as String}"
..exchange = ..exchange =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["exchange"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["exchange"] as String}"
..personaIncognito = ..personaIncognito =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["persona_incognito"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["persona_incognito"] as String}"
..personaEasy = ..personaEasy =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["persona_easy"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["persona_easy"] as String}"
..stack = ..stack =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["stack"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["stack"] as String}"
..stackIcon = ..stackIcon =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["stack_icon"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["stack_icon"] as String}"
..receive = ..receive =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["receive"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["receive"] as String}"
..receivePending = ..receivePending =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["receive_pending"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["receive_pending"] as String}"
..receiveCancelled = ..receiveCancelled =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["receive_cancelled"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["receive_cancelled"] as String}"
..send = ..send =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["send"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["send"] as String}"
..sendPending = ..sendPending =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["send_pending"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["send_pending"] as String}"
..sendCancelled = ..sendCancelled =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["send_cancelled"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["send_cancelled"] as String}"
..themePreview = ..themePreview =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["theme_preview"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["theme_preview"] as String}"
..txExchange = ..txExchange =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["txExchange"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["tx_exchange"] as String}"
..txExchangePending = ..txExchangePending =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["txExchangePending"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["tx_exchange_pending"] as String}"
..txExchangeFailed = ..txExchangeFailed =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["txExchangeFailed"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["tx_exchange_failed"] as String}"
..bitcoin = ..bitcoin =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["bitcoin"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["bitcoin"] as String}"
..litecoin = ..litecoin =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["litecoin"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["litecoin"] as String}"
..bitcoincash = ..bitcoincash =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["bitcoincash"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["bitcoincash"] as String}"
..dogecoin = ..dogecoin =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["dogecoin"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["dogecoin"] as String}"
..epicCash = ..epicCash =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["epicCash"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["epicCash"] as String}"
..ethereum = ..ethereum =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["ethereum"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["ethereum"] as String}"
..firo = ..firo =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["firo"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["firo"] as String}"
..monero = ..monero =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["monero"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["monero"] as String}"
..wownero = ..wownero =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["wownero"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["wownero"] as String}"
..namecoin = ..namecoin =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["namecoin"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["namecoin"] as String}"
..particl = ..particl =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["particl"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["particl"] as String}"
..bitcoinImage = ..bitcoinImage =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["bitcoin_image"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["bitcoin_image"] as String}"
..bitcoincashImage = ..bitcoincashImage =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["bitcoincash_image"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["bitcoincash_image"] as String}"
..dogecoinImage = ..dogecoinImage =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["dogecoin_image"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["dogecoin_image"] as String}"
..epicCashImage = ..epicCashImage =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["epicCash_image"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["epicCash_image"] as String}"
..ethereumImage = ..ethereumImage =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["ethereum_image"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["ethereum_image"] as String}"
..firoImage = ..firoImage =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["firo_image"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["firo_image"] as String}"
..litecoinImage = ..litecoinImage =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["litecoin_image"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["litecoin_image"] as String}"
..moneroImage = ..moneroImage =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["monero_image"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["monero_image"] as String}"
..wowneroImage = ..wowneroImage =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["wownero_image"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["wownero_image"] as String}"
..namecoinImage = ..namecoinImage =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["namecoin_image"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["namecoin_image"] as String}"
..particlImage = ..particlImage =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["particl_image"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["particl_image"] as String}"
..bitcoinImageSecondary = ..bitcoinImageSecondary =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["bitcoin_image_secondary"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["bitcoin_image_secondary"] as String}"
..bitcoincashImageSecondary = ..bitcoincashImageSecondary =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["bitcoincash_image_secondary"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["bitcoincash_image_secondary"] as String}"
..dogecoinImageSecondary = ..dogecoinImageSecondary =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["dogecoin_image_secondary"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["dogecoin_image_secondary"] as String}"
..epicCashImageSecondary = ..epicCashImageSecondary =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["epicCash_image_secondary"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["epicCash_image_secondary"] as String}"
..ethereumImageSecondary = ..ethereumImageSecondary =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["ethereum_image_secondary"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["ethereum_image_secondary"] as String}"
..firoImageSecondary = ..firoImageSecondary =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["firo_image_secondary"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["firo_image_secondary"] as String}"
..litecoinImageSecondary = ..litecoinImageSecondary =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["litecoin_image_secondary"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["litecoin_image_secondary"] as String}"
..moneroImageSecondary = ..moneroImageSecondary =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["monero_image_secondary"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["monero_image_secondary"] as String}"
..wowneroImageSecondary = ..wowneroImageSecondary =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["wownero_image_secondary"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["wownero_image_secondary"] as String}"
..namecoinImageSecondary = ..namecoinImageSecondary =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["namecoin_image_secondary"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["namecoin_image_secondary"] as String}"
..particlImageSecondary = ..particlImageSecondary =
"$applicationThemesDirectoryPath/$themeId/${json["assets"]["particl_image_secondary"] as String}" "$applicationThemesDirectoryPath/$themeId/assets/${json["particl_image_secondary"] as String}"
..loadingGif = json["assets"]["loadingGif"] is String ..loadingGif = json["loading_gif"] is String
? "$applicationThemesDirectoryPath/$themeId/${json["assets"]["loading_gif"] as String}" ? "$applicationThemesDirectoryPath/$themeId/assets/${json["loading_gif"] as String}"
: null : null
..background = json["assets"]["background"] is String ..background = json["background"] is String
? "$applicationThemesDirectoryPath/$themeId/${json["assets"]["background"] as String}" ? "$applicationThemesDirectoryPath/$themeId/assets/${json["background"] as String}"
: null; : null;
} }
} }