mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
lib/whiteLabel.dart
This commit is contained in:
parent
7b95efa0a3
commit
1d135a2fa6
12 changed files with 34 additions and 13 deletions
|
@ -37,6 +37,7 @@ import 'package:stackwallet/utilities/text_styles.dart';
|
|||
import 'package:stackwallet/wallets/isar/providers/wallet_info_provider.dart';
|
||||
import 'package:stackwallet/wallets/models/tx_data.dart';
|
||||
import 'package:stackwallet/wallets/wallet/impl/firo_wallet.dart';
|
||||
import 'package:stackwallet/whiteLabel.dart';
|
||||
import 'package:stackwallet/widgets/background.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
import 'package:stackwallet/widgets/desktop/secondary_button.dart';
|
||||
|
@ -815,7 +816,8 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
|||
if (isWalletCoin)
|
||||
Builder(
|
||||
builder: (context) {
|
||||
String buttonTitle = "Send from Stack Wallet";
|
||||
String buttonTitle =
|
||||
"Send from {$WhiteLabel.appName}";
|
||||
|
||||
final tuple = ref
|
||||
.read(
|
||||
|
|
|
@ -21,6 +21,7 @@ import 'package:stackwallet/themes/theme_providers.dart';
|
|||
import 'package:stackwallet/utilities/prefs.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/util.dart';
|
||||
import 'package:stackwallet/whiteLabel.dart';
|
||||
import 'package:stackwallet/widgets/background.dart';
|
||||
import 'package:stackwallet/widgets/desktop/secondary_button.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
@ -199,7 +200,7 @@ class AppNameText extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Text(
|
||||
"Stack Wallet",
|
||||
"{$WhiteLabel.appName}",
|
||||
textAlign: TextAlign.center,
|
||||
style: !isDesktop
|
||||
? STextStyles.pageTitleH1(context)
|
||||
|
|
|
@ -26,6 +26,7 @@ import 'package:stackwallet/utilities/constants.dart';
|
|||
import 'package:stackwallet/utilities/logger.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/util.dart';
|
||||
import 'package:stackwallet/whiteLabel.dart';
|
||||
import 'package:stackwallet/widgets/background.dart';
|
||||
import 'package:stackwallet/widgets/conditional_parent.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
|
@ -533,9 +534,10 @@ class _RestoreFromFileViewState extends ConsumerState<RestoreFromFileView> {
|
|||
Padding(
|
||||
padding:
|
||||
const EdgeInsets
|
||||
.all(32),
|
||||
.all(
|
||||
32),
|
||||
child: Text(
|
||||
"Restore Stack Wallet",
|
||||
"Restore {$WhiteLabel.appName}",
|
||||
style: STextStyles
|
||||
.desktopH3(
|
||||
context),
|
||||
|
@ -550,7 +552,7 @@ class _RestoreFromFileViewState extends ConsumerState<RestoreFromFileView> {
|
|||
Padding(
|
||||
padding:
|
||||
const EdgeInsets
|
||||
.symmetric(
|
||||
.symmetric(
|
||||
horizontal:
|
||||
32),
|
||||
child:
|
||||
|
|
|
@ -32,6 +32,7 @@ import 'package:stackwallet/utilities/enums/stack_restoring_status.dart';
|
|||
import 'package:stackwallet/utilities/logger.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/util.dart';
|
||||
import 'package:stackwallet/whiteLabel.dart';
|
||||
import 'package:stackwallet/widgets/conditional_parent.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
import 'package:stackwallet/widgets/desktop/primary_button.dart';
|
||||
|
@ -263,7 +264,7 @@ class _StackRestoreProgressViewState
|
|||
},
|
||||
),
|
||||
title: Text(
|
||||
"Restoring Stack wallet",
|
||||
"Restoring {$WhiteLabel.appName}",
|
||||
style: STextStyles.navBarTitle(context),
|
||||
),
|
||||
),
|
||||
|
|
|
@ -15,6 +15,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
|||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/util.dart';
|
||||
import 'package:stackwallet/whiteLabel.dart';
|
||||
import 'package:stackwallet/widgets/background.dart';
|
||||
import 'package:stackwallet/widgets/conditional_parent.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
|
@ -88,7 +89,7 @@ class SupportView extends StatelessWidget {
|
|||
AboutItem(
|
||||
linkUrl: "https://discord.com/invite/mRPZuXx3At",
|
||||
label: "Discord",
|
||||
buttonText: "Stack Wallet",
|
||||
buttonText: "{$WhiteLabel.appName}",
|
||||
iconAsset: Assets.socials.discord,
|
||||
isDesktop: isDesktop,
|
||||
),
|
||||
|
|
|
@ -33,6 +33,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
|||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/enums/exchange_rate_type_enum.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/whiteLabel.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
import 'package:stackwallet/widgets/custom_loading_overlay.dart';
|
||||
import 'package:stackwallet/widgets/desktop/desktop_dialog.dart';
|
||||
|
@ -316,7 +317,7 @@ class _StepScaffoldState extends ConsumerState<StepScaffold> {
|
|||
onPressed: onBack,
|
||||
),
|
||||
secondChild: SecondaryButton(
|
||||
label: "Send from Stack Wallet",
|
||||
label: "Send from {$WhiteLabel.appName}",
|
||||
buttonHeight: ButtonHeight.l,
|
||||
onPressed: sendFromStack,
|
||||
),
|
||||
|
|
|
@ -22,6 +22,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
|||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/widgets/desktop/desktop_tor_status_button.dart';
|
||||
import 'package:stackwallet/widgets/desktop/living_stack_icon.dart';
|
||||
import 'package:stackwallet/whiteLabel.dart';
|
||||
|
||||
enum DesktopMenuItemId {
|
||||
myStack,
|
||||
|
@ -138,7 +139,7 @@ class _DesktopMenuState extends ConsumerState<DesktopMenu> {
|
|||
child: SizedBox(
|
||||
height: 28,
|
||||
child: Text(
|
||||
"Stack Wallet",
|
||||
"{$WhiteLabel.appName}",
|
||||
style: STextStyles.desktopH2(context).copyWith(
|
||||
fontSize: 18,
|
||||
height: 23.4 / 18,
|
||||
|
|
|
@ -29,6 +29,7 @@ import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
|
|||
import 'package:stackwallet/utilities/logger.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/util.dart';
|
||||
import 'package:stackwallet/whiteLabel.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/blue_text_button.dart';
|
||||
import 'package:stackwallet/widgets/desktop/desktop_scaffold.dart';
|
||||
import 'package:stackwallet/widgets/desktop/primary_button.dart';
|
||||
|
@ -200,7 +201,7 @@ class _DesktopLoginViewState extends ConsumerState<DesktopLoginView> {
|
|||
height: 42,
|
||||
),
|
||||
Text(
|
||||
"Stack Wallet",
|
||||
"{$WhiteLabel.appName}",
|
||||
style: STextStyles.desktopH1(context),
|
||||
),
|
||||
const SizedBox(
|
||||
|
|
|
@ -30,6 +30,7 @@ import 'package:stackwallet/utilities/constants.dart';
|
|||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
|
||||
import 'package:stackwallet/utilities/logger.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/whiteLabel.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
||||
import 'package:stackwallet/widgets/desktop/desktop_dialog.dart';
|
||||
|
@ -154,7 +155,7 @@ class _ForgottenPassphraseRestoreFromSWBState
|
|||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
"Restoring Stack wallet",
|
||||
"Restoring {$WhiteLabel.appName}",
|
||||
style: STextStyles.desktopH3(context),
|
||||
),
|
||||
],
|
||||
|
|
|
@ -26,6 +26,7 @@ import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
|||
import 'package:stackwallet/widgets/desktop/desktop_scaffold.dart';
|
||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:stackwallet/whiteLabel.dart';
|
||||
|
||||
const kGithubAPI = "https://api.github.com";
|
||||
const kGithubSearch = "/search/commits";
|
||||
|
@ -165,7 +166,7 @@ class DesktopAboutView extends ConsumerWidget {
|
|||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
"Stack Wallet",
|
||||
"{$WhiteLabel.appName}",
|
||||
style: STextStyles.desktopH3(context),
|
||||
textAlign: TextAlign.start,
|
||||
),
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
import 'package:stackwallet/whiteLabel.dart';
|
||||
|
||||
abstract class FeaturedPaynyms {
|
||||
// TODO: replace with actual value
|
||||
// static const String samouraiWalletDevFund =
|
||||
|
@ -16,7 +18,7 @@ abstract class FeaturedPaynyms {
|
|||
"PM8TJdQcNk27JpxGRtNR7Hnh8VkJk4Nf17BthLx89fM3iX3UL2YshyaiTAvKgTCVvpgsAgY1DbojkAaUd3Rcn48NEn4uUBuqkaSddgKL8TPAAEQXNuE6";
|
||||
|
||||
static Map<String, String> get featured => {
|
||||
"Stack Wallet": stackWallet,
|
||||
"{$WhiteLabel.appName}": stackWallet,
|
||||
// "Samourai Wallet Dev Fund": samouraiWalletDevFund,
|
||||
};
|
||||
}
|
||||
|
|
7
lib/whiteLabel.dart
Normal file
7
lib/whiteLabel.dart
Normal file
|
@ -0,0 +1,7 @@
|
|||
abstract class WhiteLabel {
|
||||
String get appName => appNamePrefix + appNameSuffix;
|
||||
|
||||
String get appNamePrefix => "Stack";
|
||||
|
||||
String get appNameSuffix => "Wallet";
|
||||
}
|
Loading…
Reference in a new issue