mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 09:17:37 +00:00
various text changes and some fixes
This commit is contained in:
parent
d7e9466410
commit
a676341e54
16 changed files with 56 additions and 28 deletions
|
@ -15,6 +15,8 @@ abstract class AppConfig {
|
|||
static const prefix = _prefix;
|
||||
static const suffix = _suffix;
|
||||
|
||||
static const emptyWalletsMessage = _emptyWalletsMessage;
|
||||
|
||||
static String get appDefaultDataDirName => _appDataDirName;
|
||||
static String get shortDescriptionText => _shortDescriptionText;
|
||||
static String get commitHash => _commitHash;
|
||||
|
|
|
@ -4,6 +4,7 @@ import 'dart:typed_data';
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
||||
import '../../../../../app_config.dart';
|
||||
import '../../../../../frost_route_generator.dart';
|
||||
import '../../../../../notifications/show_flush_bar.dart';
|
||||
import '../../../../../pages_desktop_specific/desktop_home_view.dart';
|
||||
|
@ -45,7 +46,7 @@ class _FrostCreateStep5State extends ConsumerState<FrostCreateStep5> {
|
|||
static const _warning = "These are your private keys. Please back them up, "
|
||||
"keep them safe and never share it with anyone. Your private keys are the"
|
||||
" only way you can access your funds if you forget PIN, lose your phone, "
|
||||
"etc. Stack Wallet does not keep nor is able to restore your private keys"
|
||||
"etc. ${AppConfig.prefix} does not keep nor is able to restore your private keys"
|
||||
".";
|
||||
|
||||
late final String seed, recoveryString, serializedKeys, multisigConfig;
|
||||
|
|
|
@ -17,6 +17,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:tuple/tuple.dart';
|
||||
|
||||
import '../../../app_config.dart';
|
||||
import '../../../pages_desktop_specific/my_stack_view/exit_to_my_stack_button.dart';
|
||||
import '../../../providers/db/main_db_provider.dart';
|
||||
import '../../../providers/global/secure_store_provider.dart';
|
||||
|
@ -427,7 +428,7 @@ class _NewWalletRecoveryPhraseWarningViewState
|
|||
),
|
||||
Flexible(
|
||||
child: Text(
|
||||
"I understand that Stack Wallet does not keep and cannot restore my recovery phrase, and If I lose my recovery phrase, I will not be able to access my funds.",
|
||||
"I understand that ${AppConfig.appName} does not keep and cannot restore my recovery phrase, and If I lose my recovery phrase, I will not be able to access my funds.",
|
||||
style: isDesktop
|
||||
? STextStyles.desktopTextMedium(
|
||||
context,
|
||||
|
|
|
@ -49,6 +49,8 @@ class _IntroViewState extends ConsumerState<IntroView> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
debugPrint("BUILD: $runtimeType ");
|
||||
final stack =
|
||||
ref.watch(themeProvider.select((value) => value.assets.stack));
|
||||
return Background(
|
||||
child: Scaffold(
|
||||
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||
|
@ -68,16 +70,22 @@ class _IntroViewState extends ConsumerState<IntroView> {
|
|||
constraints: const BoxConstraints(
|
||||
maxWidth: 300,
|
||||
),
|
||||
child: SvgPicture.file(
|
||||
File(
|
||||
ref.watch(
|
||||
themeProvider.select(
|
||||
(value) => value.assets.stack,
|
||||
),
|
||||
),
|
||||
),
|
||||
child: SizedBox(
|
||||
width: isDesktop ? 324 : 266,
|
||||
height: isDesktop ? 324 : 266,
|
||||
child: (stack.endsWith(".png"))
|
||||
? Image.file(
|
||||
File(
|
||||
stack,
|
||||
),
|
||||
)
|
||||
: SvgPicture.file(
|
||||
File(
|
||||
stack,
|
||||
),
|
||||
width: isDesktop ? 324 : 266,
|
||||
height: isDesktop ? 324 : 266,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
@ -24,6 +24,7 @@ import 'package:flutter_svg/svg.dart';
|
|||
import 'package:lelantus/git_versions.dart' as FIRO_VERSIONS;
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
|
||||
import '../../../../app_config.dart';
|
||||
import '../../../../models/isar/models/log.dart';
|
||||
import '../../../../notifications/show_flush_bar.dart';
|
||||
import '../../../../providers/global/debug_service_provider.dart';
|
||||
|
@ -421,7 +422,7 @@ class _DebugViewState extends ConsumerState<DebugView> {
|
|||
},
|
||||
child: CustomLoadingOverlay(
|
||||
message:
|
||||
"Generating Stack logs file",
|
||||
"Generating ${AppConfig.prefix} logs file",
|
||||
eventBus: eventBus,
|
||||
),
|
||||
),
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
||||
import '../../../../app_config.dart';
|
||||
import '../../../../themes/stack_colors.dart';
|
||||
import '../../../../utilities/block_explorers.dart';
|
||||
import '../../../../utilities/text_styles.dart';
|
||||
|
@ -91,7 +92,7 @@ class _ManageExplorerViewState extends ConsumerState<ManageExplorerView> {
|
|||
"every block explorer has a slightly different URL "
|
||||
"scheme.\n\nPaste in your block explorer of choice,"
|
||||
" then edit in [TXID] where the transaction ID "
|
||||
"should go, and Stack Wallet will auto fill the "
|
||||
"should go, and ${AppConfig.appName} will auto fill the "
|
||||
"transaction ID in that place of URL.",
|
||||
style: STextStyles.itemSubtitle(context),
|
||||
),
|
||||
|
|
|
@ -15,6 +15,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
|
||||
import '../app_config.dart';
|
||||
import '../db/hive/db.dart';
|
||||
import '../pages_desktop_specific/password/create_password_view.dart';
|
||||
import '../providers/global/prefs_provider.dart';
|
||||
|
@ -108,7 +109,7 @@ class _StackPrivacyCalls extends ConsumerState<StackPrivacyCalls> {
|
|||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
"Choose your Stack experience",
|
||||
"Choose your ${AppConfig.prefix} experience",
|
||||
style: isDesktop
|
||||
? STextStyles.desktopH2(context)
|
||||
: STextStyles.pageTitleH1(context),
|
||||
|
@ -253,10 +254,12 @@ class _StackPrivacyCalls extends ConsumerState<StackPrivacyCalls> {
|
|||
)
|
||||
.then((_) {
|
||||
if (isEasy) {
|
||||
unawaited(
|
||||
ExchangeDataLoadingService.instance
|
||||
.loadAll(),
|
||||
);
|
||||
if (AppConfig.hasFeature(AppFeature.swap)) {
|
||||
unawaited(
|
||||
ExchangeDataLoadingService.instance
|
||||
.loadAll(),
|
||||
);
|
||||
}
|
||||
// unawaited(
|
||||
// BuyDataLoadingService().loadAll(ref));
|
||||
ref
|
||||
|
|
|
@ -71,7 +71,7 @@ class EmptyWallets extends ConsumerWidget {
|
|||
height: isDesktop ? 30 : 16,
|
||||
),
|
||||
Text(
|
||||
"You do not have any wallets yet. Start building your crypto Stack!",
|
||||
AppConfig.emptyWalletsMessage,
|
||||
textAlign: TextAlign.center,
|
||||
style: isDesktop
|
||||
? STextStyles.desktopSubtitleH2(context).copyWith(
|
||||
|
|
|
@ -245,7 +245,7 @@ class _ForgottenPassphraseRestoreFromSWBState
|
|||
height: 32,
|
||||
),
|
||||
Text(
|
||||
"Use your Stack wallet backup file to restore your wallets, address book, and wallet preferences.",
|
||||
"Use your Stack backup file to restore your wallets, address book, and wallet preferences.",
|
||||
textAlign: TextAlign.center,
|
||||
style: STextStyles.desktopTextSmall(context).copyWith(
|
||||
color: Theme.of(context)
|
||||
|
|
|
@ -226,9 +226,9 @@ class _DesktopEditBlockExplorerDialogState
|
|||
" every block explorer has a slightly different URL scheme."
|
||||
"\n\n"
|
||||
"Paste in your block explorer of choice, then edit in"
|
||||
" [TXID] where the transaction ID should go, and Stack"
|
||||
" Wallet will auto fill the transaction ID in that place"
|
||||
" of the URL.",
|
||||
" [TXID] where the transaction ID should go, and "
|
||||
"${AppConfig.appName} will auto fill the transaction"
|
||||
" ID in that place of the URL.",
|
||||
style: STextStyles.desktopTextExtraExtraSmall(context),
|
||||
),
|
||||
),
|
||||
|
|
|
@ -15,6 +15,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
|
||||
import '../../../../app_config.dart';
|
||||
import '../../../../db/hive/db.dart';
|
||||
import '../../../../providers/global/prefs_provider.dart';
|
||||
import '../../../../providers/global/price_provider.dart';
|
||||
|
@ -69,7 +70,7 @@ class _StackPrivacyDialog extends ConsumerState<StackPrivacyDialog> {
|
|||
Padding(
|
||||
padding: const EdgeInsets.all(32),
|
||||
child: Text(
|
||||
"Choose Your Stack Experience",
|
||||
"Choose Your ${AppConfig.prefix} Experience",
|
||||
style: STextStyles.desktopH3(context),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
|
@ -192,9 +193,11 @@ class _StackPrivacyDialog extends ConsumerState<StackPrivacyDialog> {
|
|||
)
|
||||
.then((_) {
|
||||
if (isEasy) {
|
||||
unawaited(
|
||||
ExchangeDataLoadingService.instance.loadAll(),
|
||||
);
|
||||
if (AppConfig.hasFeature(AppFeature.swap)) {
|
||||
unawaited(
|
||||
ExchangeDataLoadingService.instance.loadAll(),
|
||||
);
|
||||
}
|
||||
ref
|
||||
.read(priceAnd24hChangeNotifierProvider)
|
||||
.start(true);
|
||||
|
|
|
@ -12,6 +12,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
|
||||
import '../../../app_config.dart';
|
||||
import '../../../pages/settings_views/global_settings_view/syncing_preferences_views/syncing_options_view.dart';
|
||||
import '../../../providers/global/prefs_provider.dart';
|
||||
import '../../../themes/stack_colors.dart';
|
||||
|
@ -115,7 +116,7 @@ class _SyncingPreferencesSettings
|
|||
),
|
||||
TextSpan(
|
||||
text:
|
||||
"\n\nSet up your syncing preferences for all wallets in your Stack.",
|
||||
"\n\nSet up your syncing preferences for all wallets in your ${AppConfig.prefix}.",
|
||||
style: STextStyles.desktopTextExtraExtraSmall(
|
||||
context,
|
||||
),
|
||||
|
|
|
@ -8,11 +8,12 @@
|
|||
*
|
||||
*/
|
||||
|
||||
import '../app_config.dart';
|
||||
import '../wallets/crypto_currency/crypto_currency.dart';
|
||||
|
||||
abstract class DefaultNodes {
|
||||
static const String defaultNodeIdPrefix = "default_";
|
||||
static String buildId(CryptoCurrency cryptoCurrency) =>
|
||||
"$defaultNodeIdPrefix${cryptoCurrency.identifier}";
|
||||
static const String defaultName = "Stack Default";
|
||||
static const String defaultName = "${AppConfig.prefix} Default";
|
||||
}
|
||||
|
|
|
@ -43,6 +43,8 @@ part of 'app_config.dart';
|
|||
const _prefix = "Campfire";
|
||||
const _separator = "";
|
||||
const _suffix = "";
|
||||
const _emptyWalletsMessage =
|
||||
"Join us around the Campfire and create a wallet!";
|
||||
const _appDataDirName = "campfire";
|
||||
const _shortDescriptionText = "Your privacy. Your wallet. Your Firo.";
|
||||
const _commitHash = "$BUILT_COMMIT_HASH";
|
||||
|
|
|
@ -37,6 +37,8 @@ part of 'app_config.dart';
|
|||
const _prefix = "Stack";
|
||||
const _separator = " ";
|
||||
const _suffix = "Duo";
|
||||
const _emptyWalletsMessage =
|
||||
"You do not have any wallets yet. Start building your crypto Stack!";
|
||||
const _appDataDirName = "stackduo";
|
||||
const _shortDescriptionText = "An open-source, multicoin wallet for everyone";
|
||||
const _commitHash = "$BUILT_COMMIT_HASH";
|
||||
|
|
|
@ -37,6 +37,8 @@ part of 'app_config.dart';
|
|||
const _prefix = "Stack";
|
||||
const _separator = " ";
|
||||
const _suffix = "Wallet";
|
||||
const _emptyWalletsMessage =
|
||||
"You do not have any wallets yet. Start building your crypto Stack!";
|
||||
const _appDataDirName = "stackwallet";
|
||||
const _shortDescriptionText = "An open-source, multicoin wallet for everyone";
|
||||
const _commitHash = "$BUILT_COMMIT_HASH";
|
||||
|
|
Loading…
Reference in a new issue