mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-05-03 03:12:18 +00:00
remove CFColors and some more dark color fixes
This commit is contained in:
parent
e830286511
commit
f25d9eecef
45 changed files with 86 additions and 188 deletions
lib
pages
add_wallet_views
name_your_wallet_view
new_wallet_recovery_phrase_view
restore_wallet_view/sub_widgets
verify_recovery_phrase_view
address_book_views/subviews
exchange_view
home_view
loading_view.dartnotification_views
send_view
settings_views
global_settings_view
advanced_views
manage_nodes_views
stack_backup_views
wallet_settings_view
wallet_backup_views
wallet_settings_wallet_settings
wallet_view
wallets_view/sub_widgets
pages_desktop_specific/home/my_stack_view
utilities
widgets
|
@ -9,7 +9,7 @@ import 'package:stackwallet/pages_desktop_specific/home/my_stack_view/exit_to_my
|
||||||
import 'package:stackwallet/providers/global/wallets_service_provider.dart';
|
import 'package:stackwallet/providers/global/wallets_service_provider.dart';
|
||||||
import 'package:stackwallet/providers/ui/verify_recovery_phrase/mnemonic_word_count_state_provider.dart';
|
import 'package:stackwallet/providers/ui/verify_recovery_phrase/mnemonic_word_count_state_provider.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/add_wallet_type_enum.dart';
|
import 'package:stackwallet/utilities/enums/add_wallet_type_enum.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
|
|
|
@ -14,7 +14,7 @@ import 'package:stackwallet/pages_desktop_specific/home/my_stack_view/exit_to_my
|
||||||
import 'package:stackwallet/providers/providers.dart';
|
import 'package:stackwallet/providers/providers.dart';
|
||||||
import 'package:stackwallet/services/coins/manager.dart';
|
import 'package:stackwallet/services/coins/manager.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
|
||||||
import 'package:stackwallet/utilities/clipboard_interface.dart';
|
import 'package:stackwallet/utilities/clipboard_interface.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
|
@ -148,6 +148,7 @@ class _NewWalletRecoveryPhraseViewState
|
||||||
Assets.svg.copy,
|
Assets.svg.copy,
|
||||||
width: 24,
|
width: 24,
|
||||||
height: 24,
|
height: 24,
|
||||||
|
color: StackTheme.instance.color.topNavIconPrimary,
|
||||||
),
|
),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
await _copy();
|
await _copy();
|
||||||
|
|
|
@ -119,9 +119,7 @@ class MnemonicWordCountSelectSheet extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"${lengthOptions[i]} words",
|
"${lengthOptions[i]} words",
|
||||||
style: STextStyles.titleBold12.copyWith(
|
style: STextStyles.titleBold12,
|
||||||
color: const Color(0xFF44464E),
|
|
||||||
),
|
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
|
|
|
@ -12,7 +12,7 @@ import 'package:stackwallet/pages_desktop_specific/home/my_stack_view/exit_to_my
|
||||||
import 'package:stackwallet/providers/providers.dart';
|
import 'package:stackwallet/providers/providers.dart';
|
||||||
import 'package:stackwallet/services/coins/manager.dart';
|
import 'package:stackwallet/services/coins/manager.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
|
|
|
@ -2,10 +2,9 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:stackwallet/providers/global/prefs_provider.dart';
|
import 'package:stackwallet/providers/global/prefs_provider.dart';
|
||||||
import 'package:stackwallet/providers/ui/address_book_providers/address_book_filter_provider.dart';
|
import 'package:stackwallet/providers/ui/address_book_providers/address_book_filter_provider.dart';
|
||||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
|
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ import 'package:stackwallet/providers/ui/address_book_providers/address_entry_da
|
||||||
import 'package:stackwallet/utilities/address_utils.dart';
|
import 'package:stackwallet/utilities/address_utils.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/barcode_scanner_interface.dart';
|
import 'package:stackwallet/utilities/barcode_scanner_interface.dart';
|
||||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
|
||||||
import 'package:stackwallet/utilities/clipboard_interface.dart';
|
import 'package:stackwallet/utilities/clipboard_interface.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
|
|
|
@ -1461,6 +1461,7 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
|
|
||||||
debugPrint("name: ${manager.walletName}");
|
debugPrint("name: ${manager.walletName}");
|
||||||
|
|
||||||
|
// TODO store tx data completely locally in isar so we don't lock up ui here when querying txData
|
||||||
final txData = await manager.transactionData;
|
final txData = await manager.transactionData;
|
||||||
|
|
||||||
final tx = txData.getAllTransactions()[txid];
|
final tx = txData.getAllTransactions()[txid];
|
||||||
|
|
|
@ -1483,17 +1483,9 @@ class _WalletInitiatedExchangeViewState
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: StackTheme.instance
|
||||||
.textButtonTheme
|
.getPrimaryEnabledButtonColor(
|
||||||
.style
|
context),
|
||||||
?.copyWith(
|
|
||||||
backgroundColor:
|
|
||||||
MaterialStateProperty
|
|
||||||
.all<Color>(StackTheme
|
|
||||||
.instance
|
|
||||||
.color
|
|
||||||
.accentColorDark),
|
|
||||||
),
|
|
||||||
child: Text(
|
child: Text(
|
||||||
"Attempt",
|
"Attempt",
|
||||||
style: STextStyles.button,
|
style: STextStyles.button,
|
||||||
|
|
|
@ -144,7 +144,6 @@ class _HomeViewState extends ConsumerState<HomeView> {
|
||||||
onTap: _hiddenOptions,
|
onTap: _hiddenOptions,
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
Assets.svg.stackIcon,
|
Assets.svg.stackIcon,
|
||||||
// color: StackTheme.instance.color.accentColorDark
|
|
||||||
width: 24,
|
width: 24,
|
||||||
height: 24,
|
height: 24,
|
||||||
),
|
),
|
||||||
|
|
|
@ -3,7 +3,7 @@ import 'dart:math';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:lottie/lottie.dart';
|
import 'package:lottie/lottie.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||||
|
|
||||||
class LoadingView extends StatelessWidget {
|
class LoadingView extends StatelessWidget {
|
||||||
|
|
|
@ -3,9 +3,8 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:stackwallet/notifications/notification_card.dart';
|
import 'package:stackwallet/notifications/notification_card.dart';
|
||||||
import 'package:stackwallet/providers/providers.dart';
|
import 'package:stackwallet/providers/providers.dart';
|
||||||
import 'package:stackwallet/providers/ui/unread_notifications_provider.dart';
|
import 'package:stackwallet/providers/ui/unread_notifications_provider.dart';
|
||||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
|
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
|
||||||
|
|
|
@ -313,14 +313,7 @@ class _ConfirmTransactionViewState
|
||||||
height: 16,
|
height: 16,
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
style: Theme.of(context)
|
style: StackTheme.instance.getPrimaryEnabledButtonColor(context),
|
||||||
.textButtonTheme
|
|
||||||
.style
|
|
||||||
?.copyWith(
|
|
||||||
backgroundColor:
|
|
||||||
MaterialStateProperty.all<Color>(StackTheme
|
|
||||||
.instance.color.accentColorDark),
|
|
||||||
),
|
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
final unlocked = await Navigator.push(
|
final unlocked = await Navigator.push(
|
||||||
context,
|
context,
|
||||||
|
|
|
@ -1492,17 +1492,9 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: StackTheme.instance
|
||||||
.textButtonTheme
|
.getPrimaryEnabledButtonColor(
|
||||||
.style
|
context),
|
||||||
?.copyWith(
|
|
||||||
backgroundColor:
|
|
||||||
MaterialStateProperty
|
|
||||||
.all<Color>(StackTheme
|
|
||||||
.instance
|
|
||||||
.color
|
|
||||||
.accentColorDark),
|
|
||||||
),
|
|
||||||
child: Text(
|
child: Text(
|
||||||
"Yes",
|
"Yes",
|
||||||
style: STextStyles.button,
|
style: STextStyles.button,
|
||||||
|
|
|
@ -144,9 +144,7 @@ class _FiroBalanceSelectionSheetState
|
||||||
// children: [
|
// children: [
|
||||||
Text(
|
Text(
|
||||||
"Private balance",
|
"Private balance",
|
||||||
style: STextStyles.titleBold12.copyWith(
|
style: STextStyles.titleBold12,
|
||||||
color: const Color(0xFF44464E),
|
|
||||||
),
|
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
@ -235,9 +233,7 @@ class _FiroBalanceSelectionSheetState
|
||||||
// children: [
|
// children: [
|
||||||
Text(
|
Text(
|
||||||
"Public balance",
|
"Public balance",
|
||||||
style: STextStyles.titleBold12.copyWith(
|
style: STextStyles.titleBold12,
|
||||||
color: const Color(0xFF44464E),
|
|
||||||
),
|
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
|
|
@ -263,9 +263,7 @@ class _TransactionFeeSelectionSheetState
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
FeeRateType.fast.prettyName,
|
FeeRateType.fast.prettyName,
|
||||||
style: STextStyles.titleBold12.copyWith(
|
style: STextStyles.titleBold12,
|
||||||
color: const Color(0xFF44464E),
|
|
||||||
),
|
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
@ -388,9 +386,7 @@ class _TransactionFeeSelectionSheetState
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
FeeRateType.average.prettyName,
|
FeeRateType.average.prettyName,
|
||||||
style: STextStyles.titleBold12.copyWith(
|
style: STextStyles.titleBold12,
|
||||||
color: const Color(0xFF44464E),
|
|
||||||
),
|
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
@ -514,9 +510,7 @@ class _TransactionFeeSelectionSheetState
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
FeeRateType.slow.prettyName,
|
FeeRateType.slow.prettyName,
|
||||||
style: STextStyles.titleBold12.copyWith(
|
style: STextStyles.titleBold12,
|
||||||
color: const Color(0xFF44464E),
|
|
||||||
),
|
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
|
|
@ -140,13 +140,8 @@ class _DebugViewState extends ConsumerState<DebugView> {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: StackTheme.instance
|
||||||
.textButtonTheme
|
.getPrimaryEnabledButtonColor(context),
|
||||||
.style
|
|
||||||
?.copyWith(
|
|
||||||
backgroundColor: MaterialStateProperty.all<Color>(
|
|
||||||
StackTheme.instance.color.accentColorDark),
|
|
||||||
),
|
|
||||||
child: Text(
|
child: Text(
|
||||||
"Delete logs",
|
"Delete logs",
|
||||||
style: STextStyles.button,
|
style: STextStyles.button,
|
||||||
|
|
|
@ -342,17 +342,9 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
Navigator.of(context).pop(true);
|
Navigator.of(context).pop(true);
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: StackTheme.instance
|
||||||
.textButtonTheme
|
.getPrimaryEnabledButtonColor(
|
||||||
.style
|
context),
|
||||||
?.copyWith(
|
|
||||||
backgroundColor:
|
|
||||||
MaterialStateProperty
|
|
||||||
.all<Color>(StackTheme
|
|
||||||
.instance
|
|
||||||
.color
|
|
||||||
.accentColorDark),
|
|
||||||
),
|
|
||||||
child: Text(
|
child: Text(
|
||||||
"Save",
|
"Save",
|
||||||
style: STextStyles.button,
|
style: STextStyles.button,
|
||||||
|
|
|
@ -93,11 +93,7 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
style: StackTheme.instance.getPrimaryEnabledButtonColor(context),
|
||||||
backgroundColor: MaterialStateProperty.all<Color>(
|
|
||||||
StackTheme.instance.color.accentColorDark,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
child: Text(
|
child: Text(
|
||||||
"Continue",
|
"Continue",
|
||||||
style: STextStyles.button,
|
style: STextStyles.button,
|
||||||
|
@ -149,11 +145,7 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
style: StackTheme.instance.getPrimaryEnabledButtonColor(context),
|
||||||
backgroundColor: MaterialStateProperty.all<Color>(
|
|
||||||
StackTheme.instance.color.accentColorDark,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
child: Text(
|
child: Text(
|
||||||
"Disable",
|
"Disable",
|
||||||
style: STextStyles.button,
|
style: STextStyles.button,
|
||||||
|
|
|
@ -63,13 +63,8 @@ class CreateBackupInfoView extends StatelessWidget {
|
||||||
),
|
),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
TextButton(
|
TextButton(
|
||||||
style: Theme.of(context)
|
style: StackTheme.instance
|
||||||
.textButtonTheme
|
.getPrimaryEnabledButtonColor(context),
|
||||||
.style
|
|
||||||
?.copyWith(
|
|
||||||
backgroundColor: MaterialStateProperty.all<Color>(
|
|
||||||
StackTheme.instance.color.accentColorDark),
|
|
||||||
),
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context)
|
Navigator.of(context)
|
||||||
.pushNamed(CreateBackupView.routeName);
|
.pushNamed(CreateBackupView.routeName);
|
||||||
|
|
|
@ -94,7 +94,7 @@ class BackupFrequencyTypeSelectSheet extends ConsumerWidget {
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Colors.transparent,
|
color: Colors.transparent,
|
||||||
child: Row(
|
child: Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 20,
|
width: 20,
|
||||||
|
@ -119,17 +119,17 @@ class BackupFrequencyTypeSelectSheet extends ConsumerWidget {
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 12,
|
width: 12,
|
||||||
),
|
),
|
||||||
Column(
|
Flexible(
|
||||||
children: [
|
child: Column(
|
||||||
Text(
|
children: [
|
||||||
prettyFrequencyType(
|
Text(
|
||||||
BackupFrequencyType.values[i]),
|
prettyFrequencyType(
|
||||||
style: STextStyles.titleBold12.copyWith(
|
BackupFrequencyType.values[i]),
|
||||||
color: const Color(0xFF44464E),
|
style: STextStyles.titleBold12,
|
||||||
|
textAlign: TextAlign.left,
|
||||||
),
|
),
|
||||||
textAlign: TextAlign.left,
|
],
|
||||||
),
|
),
|
||||||
],
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
@ -4,11 +4,10 @@ import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:stackwallet/notifications/show_flush_bar.dart';
|
import 'package:stackwallet/notifications/show_flush_bar.dart';
|
||||||
import 'package:stackwallet/pages/add_wallet_views/new_wallet_recovery_phrase_view/sub_widgets/mnemonic_table.dart';
|
import 'package:stackwallet/pages/add_wallet_views/new_wallet_recovery_phrase_view/sub_widgets/mnemonic_table.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
|
||||||
import 'package:stackwallet/utilities/clipboard_interface.dart';
|
import 'package:stackwallet/utilities/clipboard_interface.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
|
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
|
|
||||||
class RecoverPhraseView extends StatelessWidget {
|
class RecoverPhraseView extends StatelessWidget {
|
||||||
|
|
|
@ -131,10 +131,7 @@ class WalletBackupView extends ConsumerWidget {
|
||||||
height: 12,
|
height: 12,
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
style: StackTheme.instance.getPrimaryEnabledButtonColor(context),
|
||||||
backgroundColor: MaterialStateProperty.all<Color>(
|
|
||||||
StackTheme.instance.color.accentColorDark),
|
|
||||||
),
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
String data = AddressUtils.encodeQRSeedData(mnemonic);
|
String data = AddressUtils.encodeQRSeedData(mnemonic);
|
||||||
|
|
||||||
|
|
|
@ -147,10 +147,7 @@ class _DeleteWalletRecoveryPhraseViewState
|
||||||
height: 16,
|
height: 16,
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
style: StackTheme.instance.getPrimaryEnabledButtonColor(context),
|
||||||
backgroundColor: MaterialStateProperty.all<Color>(
|
|
||||||
StackTheme.instance.color.accentColorDark),
|
|
||||||
),
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
showDialog<dynamic>(
|
showDialog<dynamic>(
|
||||||
barrierDismissible: true,
|
barrierDismissible: true,
|
||||||
|
@ -170,10 +167,8 @@ class _DeleteWalletRecoveryPhraseViewState
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
style: StackTheme.instance
|
||||||
backgroundColor: MaterialStateProperty.all<Color>(
|
.getPrimaryEnabledButtonColor(context),
|
||||||
StackTheme.instance.color.accentColorDark),
|
|
||||||
),
|
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
final walletId = _manager.walletId;
|
final walletId = _manager.walletId;
|
||||||
final walletsInstance =
|
final walletsInstance =
|
||||||
|
|
|
@ -74,10 +74,7 @@ class DeleteWalletWarningView extends ConsumerWidget {
|
||||||
height: 12,
|
height: 12,
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
style: StackTheme.instance.getPrimaryEnabledButtonColor(context),
|
||||||
backgroundColor: MaterialStateProperty.all<Color>(
|
|
||||||
StackTheme.instance.color.accentColorDark),
|
|
||||||
),
|
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
final manager = ref
|
final manager = ref
|
||||||
.read(walletsChangeNotifierProvider)
|
.read(walletsChangeNotifierProvider)
|
||||||
|
|
|
@ -106,10 +106,7 @@ class _RenameWalletViewState extends ConsumerState<RenameWalletView> {
|
||||||
),
|
),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
TextButton(
|
TextButton(
|
||||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
style: StackTheme.instance.getPrimaryEnabledButtonColor(context),
|
||||||
backgroundColor: MaterialStateProperty.all<Color>(
|
|
||||||
StackTheme.instance.color.accentColorDark),
|
|
||||||
),
|
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
final newName = _controller.text;
|
final newName = _controller.text;
|
||||||
final success = await ref
|
final success = await ref
|
||||||
|
|
|
@ -114,14 +114,8 @@ class WalletSettingsWalletSettingsView extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: Theme.of(context)
|
style: StackTheme.instance
|
||||||
.textButtonTheme
|
.getPrimaryEnabledButtonColor(context),
|
||||||
.style
|
|
||||||
?.copyWith(
|
|
||||||
backgroundColor:
|
|
||||||
MaterialStateProperty.all<Color>(StackTheme
|
|
||||||
.instance.color.accentColorDark),
|
|
||||||
),
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
|
|
|
@ -129,14 +129,8 @@ class _EditNoteViewState extends ConsumerState<EditNoteView> {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: StackTheme.instance
|
||||||
.textButtonTheme
|
.getPrimaryEnabledButtonColor(context),
|
||||||
.style
|
|
||||||
?.copyWith(
|
|
||||||
backgroundColor:
|
|
||||||
MaterialStateProperty.all<Color>(StackTheme
|
|
||||||
.instance.color.accentColorDark),
|
|
||||||
),
|
|
||||||
child: Text(
|
child: Text(
|
||||||
"Save",
|
"Save",
|
||||||
style: STextStyles.button,
|
style: STextStyles.button,
|
||||||
|
|
|
@ -695,15 +695,8 @@ class _TransactionSearchViewState
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: 48,
|
height: 48,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
style: Theme.of(context)
|
style: StackTheme.instance
|
||||||
.textButtonTheme
|
.getPrimaryEnabledButtonColor(context),
|
||||||
.style
|
|
||||||
?.copyWith(
|
|
||||||
backgroundColor:
|
|
||||||
MaterialStateProperty.all<Color>(
|
|
||||||
StackTheme.instance.color
|
|
||||||
.accentColorDark),
|
|
||||||
),
|
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
_onApplyPressed();
|
_onApplyPressed();
|
||||||
},
|
},
|
||||||
|
|
|
@ -568,15 +568,8 @@ class _WalletViewState extends ConsumerState<WalletView> {
|
||||||
|
|
||||||
unawaited(attemptAnonymize());
|
unawaited(attemptAnonymize());
|
||||||
},
|
},
|
||||||
style: Theme.of(context)
|
style: StackTheme.instance
|
||||||
.textButtonTheme
|
.getPrimaryEnabledButtonColor(context),
|
||||||
.style
|
|
||||||
?.copyWith(
|
|
||||||
backgroundColor:
|
|
||||||
MaterialStateProperty.all<Color>(
|
|
||||||
StackTheme.instance.color
|
|
||||||
.accentColorDark),
|
|
||||||
),
|
|
||||||
child: Text(
|
child: Text(
|
||||||
"Continue",
|
"Continue",
|
||||||
style: STextStyles.button,
|
style: STextStyles.button,
|
||||||
|
|
|
@ -4,6 +4,7 @@ import 'package:stackwallet/pages/add_wallet_views/add_wallet_view/add_wallet_vi
|
||||||
import 'package:stackwallet/pages/wallets_view/sub_widgets/wallet_list_item.dart';
|
import 'package:stackwallet/pages/wallets_view/sub_widgets/wallet_list_item.dart';
|
||||||
import 'package:stackwallet/providers/providers.dart';
|
import 'package:stackwallet/providers/providers.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
|
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/blue_text_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/blue_text_button.dart';
|
||||||
|
|
||||||
class AllWallets extends StatelessWidget {
|
class AllWallets extends StatelessWidget {
|
||||||
|
@ -19,7 +20,9 @@ class AllWallets extends StatelessWidget {
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"All wallets",
|
"All wallets",
|
||||||
style: STextStyles.itemSubtitle,
|
style: STextStyles.itemSubtitle.copyWith(
|
||||||
|
color: StackTheme.instance.color.textDark,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
BlueTextButton(
|
BlueTextButton(
|
||||||
text: "Add new",
|
text: "Add new",
|
||||||
|
|
|
@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:stackwallet/pages/add_wallet_views/add_wallet_view/add_wallet_view.dart';
|
import 'package:stackwallet/pages/add_wallet_views/add_wallet_view/add_wallet_view.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||||
import 'package:stackwallet/utilities/util.dart';
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
|
@ -134,7 +134,9 @@ class _FavoriteCardState extends ConsumerState<FavoriteCard> {
|
||||||
Text(
|
Text(
|
||||||
ref.watch(
|
ref.watch(
|
||||||
managerProvider.select((value) => value.walletName)),
|
managerProvider.select((value) => value.walletName)),
|
||||||
style: STextStyles.itemSubtitle12,
|
style: STextStyles.itemSubtitle12.copyWith(
|
||||||
|
color: StackTheme.instance.color.textFavoriteCard,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
SvgPicture.asset(
|
SvgPicture.asset(
|
||||||
|
@ -179,6 +181,7 @@ class _FavoriteCardState extends ConsumerState<FavoriteCard> {
|
||||||
)} ${coin.ticker}",
|
)} ${coin.ticker}",
|
||||||
style: STextStyles.titleBold12.copyWith(
|
style: STextStyles.titleBold12.copyWith(
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
|
color: StackTheme.instance.color.textFavoriteCard,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -199,6 +202,7 @@ class _FavoriteCardState extends ConsumerState<FavoriteCard> {
|
||||||
)}",
|
)}",
|
||||||
style: STextStyles.itemSubtitle12.copyWith(
|
style: STextStyles.itemSubtitle12.copyWith(
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
|
color: StackTheme.instance.color.textFavoriteCard,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
@ -8,7 +8,6 @@ import 'package:stackwallet/pages/wallets_view/sub_widgets/favorite_card.dart';
|
||||||
import 'package:stackwallet/providers/providers.dart';
|
import 'package:stackwallet/providers/providers.dart';
|
||||||
import 'package:stackwallet/services/coins/manager.dart';
|
import 'package:stackwallet/services/coins/manager.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||||
|
@ -83,7 +82,9 @@ class _FavoriteWalletsState extends ConsumerState<FavoriteWallets> {
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"Favorite Wallets",
|
"Favorite Wallets",
|
||||||
style: STextStyles.itemSubtitle,
|
style: STextStyles.itemSubtitle.copyWith(
|
||||||
|
color: StackTheme.instance.color.textDark3,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
if (hasFavorites)
|
if (hasFavorites)
|
||||||
|
@ -96,6 +97,7 @@ class _FavoriteWalletsState extends ConsumerState<FavoriteWallets> {
|
||||||
Assets.svg.ellipsis,
|
Assets.svg.ellipsis,
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
|
color: StackTheme.instance.color.accentColorDark,
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pushNamed(
|
Navigator.of(context).pushNamed(
|
||||||
|
|
|
@ -92,7 +92,10 @@ class WalletListItem extends ConsumerWidget {
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Text(coin.prettyName),
|
Text(
|
||||||
|
coin.prettyName,
|
||||||
|
style: STextStyles.titleBold12,
|
||||||
|
),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
Text(
|
Text(
|
||||||
"$priceString $currency/${coin.ticker}",
|
"$priceString $currency/${coin.ticker}",
|
||||||
|
|
|
@ -4,7 +4,7 @@ import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:stackwallet/pages_desktop_specific/home/my_stack_view/coin_wallets_table.dart';
|
import 'package:stackwallet/pages_desktop_specific/home/my_stack_view/coin_wallets_table.dart';
|
||||||
import 'package:stackwallet/providers/providers.dart';
|
import 'package:stackwallet/providers/providers.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/format.dart';
|
import 'package:stackwallet/utilities/format.dart';
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import 'package:stackwallet/services/coins/namecoin/namecoin_wallet.dart';
|
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||||
|
|
||||||
|
@ -159,7 +158,7 @@ class _SVG {
|
||||||
case Coin.bitcoinTestNet:
|
case Coin.bitcoinTestNet:
|
||||||
return bitcoinTestnet;
|
return bitcoinTestnet;
|
||||||
case Coin.bitcoincashTestnet:
|
case Coin.bitcoincashTestnet:
|
||||||
return bitcoinTestnet;
|
return bitcoincashTestnet;
|
||||||
case Coin.firoTestNet:
|
case Coin.firoTestNet:
|
||||||
return firoTestnet;
|
return firoTestnet;
|
||||||
case Coin.dogecoinTestNet:
|
case Coin.dogecoinTestNet:
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
abstract class CFColors {
|
|
||||||
// static const Color primary = Color(0xFF0052DF);
|
|
||||||
// static const Color primaryLight = Color(0xFFDAE2FF);
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// // generic
|
|
||||||
// static const Color white = Color(0xFFFFFFFF);
|
|
||||||
|
|
||||||
}
|
|
|
@ -33,6 +33,7 @@ abstract class StackColorTheme {
|
||||||
Color get textSubtitle5;
|
Color get textSubtitle5;
|
||||||
Color get textSubtitle6;
|
Color get textSubtitle6;
|
||||||
Color get textWhite;
|
Color get textWhite;
|
||||||
|
Color get textFavoriteCard;
|
||||||
Color get textError;
|
Color get textError;
|
||||||
|
|
||||||
// button background
|
// button background
|
||||||
|
|
|
@ -49,7 +49,8 @@ class DarkColors extends StackColorTheme {
|
||||||
Color get textSubtitle6 => const Color(0xFF414141);
|
Color get textSubtitle6 => const Color(0xFF414141);
|
||||||
@override
|
@override
|
||||||
Color get textWhite => const Color(0xFF232323);
|
Color get textWhite => const Color(0xFF232323);
|
||||||
|
@override
|
||||||
|
Color get textFavoriteCard => const Color(0xFF232323);
|
||||||
@override
|
@override
|
||||||
Color get textError => const Color(0xFFF37475);
|
Color get textError => const Color(0xFFF37475);
|
||||||
|
|
||||||
|
@ -272,7 +273,7 @@ class DarkColors extends StackColorTheme {
|
||||||
|
|
||||||
// currency list
|
// currency list
|
||||||
@override
|
@override
|
||||||
Color get currencyListItemBG => const Color(0xFF35383D);
|
Color get currencyListItemBG => const Color(0xFF484B51);
|
||||||
|
|
||||||
// bottom nav
|
// bottom nav
|
||||||
@override
|
@override
|
||||||
|
|
|
@ -49,7 +49,8 @@ class LightColors extends StackColorTheme {
|
||||||
Color get textSubtitle6 => const Color(0xFFF5F5F5);
|
Color get textSubtitle6 => const Color(0xFFF5F5F5);
|
||||||
@override
|
@override
|
||||||
Color get textWhite => const Color(0xFFFFFFFF);
|
Color get textWhite => const Color(0xFFFFFFFF);
|
||||||
|
@override
|
||||||
|
Color get textFavoriteCard => const Color(0xFF232323);
|
||||||
@override
|
@override
|
||||||
Color get textError => const Color(0xFF930006);
|
Color get textError => const Color(0xFF930006);
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||||
import 'package:stackwallet/utilities/util.dart';
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||||
|
|
||||||
class FavoriteToggle extends StatefulWidget {
|
class FavoriteToggle extends StatefulWidget {
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
// import 'package:flutter/material.dart';
|
// import 'package:flutter/material.dart';
|
||||||
// import 'package:stackwallet/utilities/cfcolors.dart';
|
// import 'package:stackwallet/utilities/cfcolors.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
|
||||||
//
|
|
||||||
// class GradientCard extends StatelessWidget {
|
|
||||||
// const GradientCard(
|
// const GradientCard(
|
||||||
// {Key key,
|
// {Key key,
|
||||||
// this.child,
|
// this.child,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||||
|
|
||||||
class AddressBookIcon extends StatelessWidget {
|
class AddressBookIcon extends StatelessWidget {
|
||||||
|
|
Loading…
Reference in a new issue