mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 01:37:54 +00:00
WIP theme coloring
This commit is contained in:
parent
a5f0443c4e
commit
1ae035bca1
167 changed files with 1597 additions and 968 deletions
|
@ -57,6 +57,8 @@ import 'package:stackwallet/utilities/enums/backup_frequency_type.dart';
|
|||
import 'package:stackwallet/utilities/logger.dart';
|
||||
import 'package:stackwallet/utilities/prefs.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/color_theme.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/utilities/util.dart';
|
||||
import 'package:window_size/window_size.dart';
|
||||
|
||||
|
@ -156,6 +158,8 @@ class MyApp extends StatelessWidget {
|
|||
final localeService = LocaleService();
|
||||
localeService.loadLocale();
|
||||
|
||||
StackTheme.instance.setTheme(ThemeType.dark);
|
||||
|
||||
return const KeyboardDismisser(
|
||||
child: MaterialAppWithTheme(),
|
||||
);
|
||||
|
@ -529,8 +533,8 @@ class _MaterialAppWithThemeState extends ConsumerState<MaterialAppWithTheme>
|
|||
minimumSize: MaterialStateProperty.all<Size>(const Size(46, 46)),
|
||||
textStyle: MaterialStateProperty.all<TextStyle>(STextStyles.button),
|
||||
foregroundColor: MaterialStateProperty.all(CFColors.white),
|
||||
backgroundColor:
|
||||
MaterialStateProperty.all<Color>(CFColors.buttonGray),
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
StackTheme.instance.color.buttonBackSecondary),
|
||||
shape: MaterialStateProperty.all<OutlinedBorder>(
|
||||
RoundedRectangleBorder(
|
||||
// 1000 to be relatively sure it keeps its pill shape
|
||||
|
@ -550,28 +554,28 @@ class _MaterialAppWithThemeState extends ConsumerState<MaterialAppWithTheme>
|
|||
checkColor: MaterialStateColor.resolveWith(
|
||||
(state) {
|
||||
if (state.contains(MaterialState.selected)) {
|
||||
return CFColors.white;
|
||||
return StackTheme.instance.color.checkboxIconChecked;
|
||||
}
|
||||
return CFColors.link2;
|
||||
return StackTheme.instance.color.checkboxBGChecked;
|
||||
},
|
||||
),
|
||||
fillColor: MaterialStateColor.resolveWith(
|
||||
(states) {
|
||||
if (states.contains(MaterialState.selected)) {
|
||||
return CFColors.link2;
|
||||
return StackTheme.instance.color.checkboxBGChecked;
|
||||
}
|
||||
return CFColors.disabledButton;
|
||||
return StackTheme.instance.color.checkboxBorderEmpty;
|
||||
},
|
||||
),
|
||||
),
|
||||
appBarTheme: const AppBarTheme(
|
||||
appBarTheme: AppBarTheme(
|
||||
centerTitle: false,
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
elevation: 0,
|
||||
),
|
||||
inputDecorationTheme: InputDecorationTheme(
|
||||
focusColor: CFColors.fieldGray,
|
||||
fillColor: CFColors.fieldGray,
|
||||
focusColor: StackTheme.instance.color.textFieldDefaultBG,
|
||||
fillColor: StackTheme.instance.color.textFieldDefaultBG,
|
||||
filled: true,
|
||||
contentPadding: const EdgeInsets.symmetric(
|
||||
vertical: 6,
|
||||
|
@ -579,11 +583,16 @@ class _MaterialAppWithThemeState extends ConsumerState<MaterialAppWithTheme>
|
|||
),
|
||||
labelStyle: STextStyles.fieldLabel,
|
||||
hintStyle: STextStyles.fieldLabel,
|
||||
enabledBorder: _buildOutlineInputBorder(CFColors.fieldGray),
|
||||
focusedBorder: _buildOutlineInputBorder(CFColors.fieldGray),
|
||||
errorBorder: _buildOutlineInputBorder(CFColors.fieldGray),
|
||||
disabledBorder: _buildOutlineInputBorder(CFColors.fieldGray),
|
||||
focusedErrorBorder: _buildOutlineInputBorder(CFColors.fieldGray),
|
||||
enabledBorder: _buildOutlineInputBorder(
|
||||
StackTheme.instance.color.textFieldDefaultBG),
|
||||
focusedBorder: _buildOutlineInputBorder(
|
||||
StackTheme.instance.color.textFieldDefaultBG),
|
||||
errorBorder: _buildOutlineInputBorder(
|
||||
StackTheme.instance.color.textFieldDefaultBG),
|
||||
disabledBorder: _buildOutlineInputBorder(
|
||||
StackTheme.instance.color.textFieldDefaultBG),
|
||||
focusedErrorBorder: _buildOutlineInputBorder(
|
||||
StackTheme.instance.color.textFieldDefaultBG),
|
||||
),
|
||||
),
|
||||
home: FutureBuilder(
|
||||
|
|
|
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:stackwallet/models/notification_model.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/utilities/format.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||
|
@ -83,7 +84,7 @@ class NotificationCard extends StatelessWidget {
|
|||
if (notification.read)
|
||||
Positioned.fill(
|
||||
child: RoundedContainer(
|
||||
color: CFColors.almostWhite.withOpacity(0.5),
|
||||
color: StackTheme.instance.color.background.withOpacity(0.5),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
|
|
@ -2,9 +2,9 @@ import 'package:another_flushbar/flushbar.dart';
|
|||
import 'package:another_flushbar/flushbar_route.dart' as flushRoute;
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
|
||||
Future<dynamic> showFloatingFlushBar({
|
||||
required FlushBarType type,
|
||||
|
@ -19,16 +19,16 @@ Future<dynamic> showFloatingFlushBar({
|
|||
Color fg;
|
||||
switch (type) {
|
||||
case FlushBarType.success:
|
||||
fg = CFColors.notificationGreenForeground;
|
||||
bg = CFColors.notificationGreenBackground;
|
||||
fg = StackTheme.instance.color.snackBarTextSuccess;
|
||||
bg = StackTheme.instance.color.snackBarBackSuccess;
|
||||
break;
|
||||
case FlushBarType.info:
|
||||
fg = CFColors.notificationBlueForeground;
|
||||
bg = CFColors.notificationBlueBackground;
|
||||
fg = StackTheme.instance.color.snackBarTextInfo;
|
||||
bg = StackTheme.instance.color.snackBarBackInfo;
|
||||
break;
|
||||
case FlushBarType.warning:
|
||||
fg = CFColors.notificationRedForeground;
|
||||
bg = CFColors.notificationRedBackground;
|
||||
fg = StackTheme.instance.color.snackBarTextError;
|
||||
bg = StackTheme.instance.color.snackBarBackError;
|
||||
break;
|
||||
}
|
||||
final bar = Flushbar<dynamic>(
|
||||
|
|
|
@ -7,6 +7,7 @@ import 'package:stackwallet/pages/add_wallet_views/add_wallet_view/sub_widgets/s
|
|||
import 'package:stackwallet/pages_desktop_specific/home/my_stack_view/exit_to_my_stack_button.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/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
|
@ -186,7 +187,7 @@ class _AddWalletViewState extends State<AddWalletView> {
|
|||
),
|
||||
),
|
||||
body: Container(
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Column(
|
||||
|
|
|
@ -7,6 +7,7 @@ import 'package:stackwallet/utilities/cfcolors.dart';
|
|||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/utilities/util.dart';
|
||||
|
||||
class CoinSelectItem extends ConsumerWidget {
|
||||
|
@ -28,8 +29,8 @@ class CoinSelectItem extends ConsumerWidget {
|
|||
decoration: BoxDecoration(
|
||||
// color: selectedCoin == coin ? CFColors.selection : CFColors.white,
|
||||
color: selectedCoin == coin
|
||||
? CFColors.textFieldActive
|
||||
: CFColors.popupBackground,
|
||||
? StackTheme.instance.color.textFieldActiveBG
|
||||
: StackTheme.instance.color.popupBG,
|
||||
borderRadius:
|
||||
BorderRadius.circular(Constants.size.circularBorderRadius),
|
||||
),
|
||||
|
|
|
@ -2,8 +2,8 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:stackwallet/pages/add_wallet_views/create_or_restore_wallet_view/create_or_restore_wallet_view.dart';
|
||||
import 'package:stackwallet/providers/providers.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
|
||||
class AddWalletNextButton extends ConsumerWidget {
|
||||
const AddWalletNextButton({
|
||||
|
@ -34,8 +34,8 @@ class AddWalletNextButton extends ConsumerWidget {
|
|||
);
|
||||
},
|
||||
style: enabled
|
||||
? CFColors.getPrimaryEnabledButtonColor(context)
|
||||
: CFColors.getPrimaryDisabledButtonColor(context),
|
||||
? StackTheme.instance.getPrimaryEnabledButtonColor(context)
|
||||
: StackTheme.instance.getPrimaryDisabledButtonColor(context),
|
||||
child: Text(
|
||||
"Next",
|
||||
style: isDesktop
|
||||
|
|
|
@ -5,6 +5,7 @@ import 'package:stackwallet/pages/add_wallet_views/create_or_restore_wallet_view
|
|||
import 'package:stackwallet/pages/add_wallet_views/create_or_restore_wallet_view/sub_widgets/create_wallet_button_group.dart';
|
||||
import 'package:stackwallet/pages_desktop_specific/home/my_stack_view/exit_to_my_stack_button.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/util.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
|
|
|
@ -4,6 +4,7 @@ import 'package:stackwallet/utilities/cfcolors.dart';
|
|||
import 'package:stackwallet/utilities/enums/add_wallet_type_enum.dart';
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:tuple/tuple.dart';
|
||||
|
||||
class CreateWalletButtonGroup extends StatelessWidget {
|
||||
|
@ -28,7 +29,7 @@ class CreateWalletButtonGroup extends StatelessWidget {
|
|||
minWidth: isDesktop ? 480 : 0,
|
||||
),
|
||||
child: TextButton(
|
||||
style: CFColors.getPrimaryEnabledButtonColor(context),
|
||||
style: StackTheme.instance.getPrimaryEnabledButtonColor(context),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pushNamed(
|
||||
NameYourWalletView.routeName,
|
||||
|
@ -55,7 +56,7 @@ class CreateWalletButtonGroup extends StatelessWidget {
|
|||
minWidth: isDesktop ? 480 : 0,
|
||||
),
|
||||
child: TextButton(
|
||||
style: CFColors.getSecondaryEnabledButtonColor(context),
|
||||
style: StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pushNamed(
|
||||
NameYourWalletView.routeName,
|
||||
|
|
|
@ -16,6 +16,7 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
|||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||
import 'package:stackwallet/utilities/name_generator.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/utilities/util.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
||||
|
@ -125,7 +126,7 @@ class _NameYourWalletViewState extends ConsumerState<NameYourWalletView> {
|
|||
),
|
||||
),
|
||||
body: Container(
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: LayoutBuilder(
|
||||
|
@ -337,8 +338,8 @@ class _NameYourWalletViewState extends ConsumerState<NameYourWalletView> {
|
|||
}
|
||||
: null,
|
||||
style: _nextEnabled
|
||||
? CFColors.getPrimaryEnabledButtonColor(context)
|
||||
: CFColors.getPrimaryDisabledButtonColor(context),
|
||||
? StackTheme.instance.getPrimaryEnabledButtonColor(context)
|
||||
: StackTheme.instance.getPrimaryDisabledButtonColor(context),
|
||||
child: Text(
|
||||
"Next",
|
||||
style: isDesktop
|
||||
|
|
|
@ -19,6 +19,7 @@ import 'package:stackwallet/utilities/clipboard_interface.dart';
|
|||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/utilities/util.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
||||
|
@ -141,7 +142,7 @@ class _NewWalletRecoveryPhraseViewState
|
|||
child: AspectRatio(
|
||||
aspectRatio: 1,
|
||||
child: AppBarIconButton(
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
shadows: const [],
|
||||
icon: SvgPicture.asset(
|
||||
Assets.svg.copy,
|
||||
|
@ -284,7 +285,8 @@ class _NewWalletRecoveryPhraseViewState
|
|||
arguments: Tuple2(_manager, _mnemonic),
|
||||
));
|
||||
},
|
||||
style: CFColors.getPrimaryEnabledButtonColor(context),
|
||||
style: StackTheme.instance
|
||||
.getPrimaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"I saved my recovery phrase",
|
||||
style: isDesktop
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import 'package:flutter/material.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/widgets/rounded_white_container.dart';
|
||||
|
||||
|
|
|
@ -8,12 +8,12 @@ import 'package:stackwallet/providers/providers.dart';
|
|||
import 'package:stackwallet/services/coins/coin_service.dart';
|
||||
import 'package:stackwallet/services/coins/manager.dart';
|
||||
import 'package:stackwallet/services/transaction_notification_tracker.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/default_nodes.dart';
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/logger.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/utilities/util.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
||||
|
@ -269,8 +269,10 @@ class _NewWalletRecoveryPhraseWarningViewState
|
|||
}
|
||||
: null,
|
||||
style: ref.read(checkBoxStateProvider.state).state
|
||||
? CFColors.getPrimaryEnabledButtonColor(context)
|
||||
: CFColors.getPrimaryDisabledButtonColor(context),
|
||||
? StackTheme.instance
|
||||
.getPrimaryEnabledButtonColor(context)
|
||||
: StackTheme.instance
|
||||
.getPrimaryDisabledButtonColor(context),
|
||||
child: Text(
|
||||
"View recovery phrase",
|
||||
style: isDesktop
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||
|
||||
class ConfirmRecoveryDialog extends StatelessWidget {
|
||||
|
@ -20,11 +20,7 @@ class ConfirmRecoveryDialog extends StatelessWidget {
|
|||
message:
|
||||
"Restoring your wallet may take a while. Please do not exit this screen once the process is started.",
|
||||
leftButton: TextButton(
|
||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Cancel",
|
||||
style: STextStyles.itemSubtitle12,
|
||||
|
@ -34,11 +30,7 @@ class ConfirmRecoveryDialog extends StatelessWidget {
|
|||
},
|
||||
),
|
||||
rightButton: TextButton(
|
||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
CFColors.stackAccent,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance.getPrimaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Restore",
|
||||
style: STextStyles.button,
|
||||
|
|
|
@ -17,6 +17,7 @@ import 'package:stackwallet/utilities/constants.dart';
|
|||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/format.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/utilities/util.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
||||
|
@ -262,7 +263,7 @@ class _RestoreOptionsViewState extends ConsumerState<RestoreOptionsView> {
|
|||
"Choose start date",
|
||||
style: isDesktop
|
||||
? STextStyles.desktopTextExtraSmall.copyWith(
|
||||
color: CFColors.textFieldActiveSearchIconRight,
|
||||
color: StackTheme.instance.color.textDark3,
|
||||
)
|
||||
: STextStyles.smallMed12,
|
||||
textAlign: TextAlign.left,
|
||||
|
@ -307,7 +308,7 @@ class _RestoreOptionsViewState extends ConsumerState<RestoreOptionsView> {
|
|||
"Choose recovery phrase length",
|
||||
style: isDesktop
|
||||
? STextStyles.desktopTextExtraSmall.copyWith(
|
||||
color: CFColors.textFieldActiveSearchIconRight,
|
||||
color: StackTheme.instance.color.textDark3,
|
||||
)
|
||||
: STextStyles.smallMed12,
|
||||
textAlign: TextAlign.left,
|
||||
|
@ -342,20 +343,21 @@ class _RestoreOptionsViewState extends ConsumerState<RestoreOptionsView> {
|
|||
Assets.svg.chevronDown,
|
||||
width: 12,
|
||||
height: 6,
|
||||
color: CFColors.textFieldActiveSearchIconRight,
|
||||
color: StackTheme
|
||||
.instance.color.textFieldActiveSearchIconRight,
|
||||
),
|
||||
buttonPadding: const EdgeInsets.symmetric(
|
||||
horizontal: 16,
|
||||
vertical: 8,
|
||||
),
|
||||
buttonDecoration: BoxDecoration(
|
||||
color: CFColors.fieldGray,
|
||||
color: StackTheme.instance.color.textFieldDefaultBG,
|
||||
borderRadius: BorderRadius.circular(
|
||||
Constants.size.circularBorderRadius,
|
||||
),
|
||||
),
|
||||
dropdownDecoration: BoxDecoration(
|
||||
color: CFColors.fieldGray,
|
||||
color: StackTheme.instance.color.textFieldDefaultBG,
|
||||
borderRadius: BorderRadius.circular(
|
||||
Constants.size.circularBorderRadius,
|
||||
),
|
||||
|
|
|
@ -4,6 +4,7 @@ import 'package:flutter_svg/svg.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/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_svg/svg.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/text_styles.dart';
|
||||
|
||||
class RestoreFromDatePicker extends StatefulWidget {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
|
||||
class RestoreOptionsNextButton extends StatelessWidget {
|
||||
const RestoreOptionsNextButton({
|
||||
|
@ -21,8 +21,8 @@ class RestoreOptionsNextButton extends StatelessWidget {
|
|||
child: TextButton(
|
||||
onPressed: onPressed,
|
||||
style: onPressed != null
|
||||
? CFColors.getPrimaryEnabledButtonColor(context)
|
||||
: CFColors.getPrimaryDisabledButtonColor(context),
|
||||
? StackTheme.instance.getPrimaryEnabledButtonColor(context)
|
||||
: StackTheme.instance.getPrimaryDisabledButtonColor(context),
|
||||
child: Text(
|
||||
"Next",
|
||||
style: STextStyles.button,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
|
||||
class RestoreOptionsPlatformLayout extends StatelessWidget {
|
||||
const RestoreOptionsPlatformLayout({
|
||||
|
|
|
@ -34,6 +34,7 @@ import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
|||
import 'package:stackwallet/utilities/enums/form_input_status_enum.dart';
|
||||
import 'package:stackwallet/utilities/logger.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/utilities/util.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
import 'package:stackwallet/widgets/icon_widgets/clipboard_icon.dart';
|
||||
|
@ -354,27 +355,27 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
|||
Widget? suffixIcon;
|
||||
switch (status) {
|
||||
case FormInputStatus.empty:
|
||||
color = CFColors.fieldGray;
|
||||
color = StackTheme.instance.color.textFieldDefaultBG;
|
||||
prefixColor = CFColors.gray3;
|
||||
break;
|
||||
case FormInputStatus.invalid:
|
||||
color = CFColors.notificationRedBackground;
|
||||
prefixColor = CFColors.notificationRedForeground;
|
||||
color = StackTheme.instance.color.textFieldErrorBG;
|
||||
prefixColor = StackTheme.instance.color.textFieldErrorSearchIconLeft;
|
||||
suffixIcon = SvgPicture.asset(
|
||||
Assets.svg.alertCircle,
|
||||
width: 16,
|
||||
height: 16,
|
||||
color: CFColors.notificationRedForeground,
|
||||
color: StackTheme.instance.color.textFieldErrorSearchIconRight,
|
||||
);
|
||||
break;
|
||||
case FormInputStatus.valid:
|
||||
color = CFColors.notificationGreenBackground;
|
||||
prefixColor = CFColors.notificationGreenForeground;
|
||||
color = StackTheme.instance.color.textFieldSuccessBG;
|
||||
prefixColor = StackTheme.instance.color.textFieldSuccessSearchIconLeft;
|
||||
suffixIcon = SvgPicture.asset(
|
||||
Assets.svg.checkCircle,
|
||||
width: 16,
|
||||
height: 16,
|
||||
color: CFColors.notificationGreenForeground,
|
||||
color: StackTheme.instance.color.textFieldSuccessSearchIconRight,
|
||||
);
|
||||
break;
|
||||
}
|
||||
|
@ -547,7 +548,7 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
|||
key: const Key("restoreWalletViewQrCodeButton"),
|
||||
size: 36,
|
||||
shadows: const [],
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
icon: const QrCodeIcon(
|
||||
width: 20,
|
||||
height: 20,
|
||||
|
@ -569,7 +570,7 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
|||
key: const Key("restoreWalletPasteButton"),
|
||||
size: 36,
|
||||
shadows: const [],
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
icon: const ClipboardIcon(
|
||||
width: 20,
|
||||
height: 20,
|
||||
|
@ -582,7 +583,7 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
|||
],
|
||||
),
|
||||
body: Container(
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(12.0),
|
||||
child: Column(
|
||||
|
@ -669,8 +670,8 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
|||
"Please check spelling",
|
||||
textAlign: TextAlign.left,
|
||||
style: STextStyles.label.copyWith(
|
||||
color: CFColors
|
||||
.notificationRedForeground,
|
||||
color: StackTheme
|
||||
.instance.color.textError,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
@ -682,8 +683,8 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
|||
top: 8.0,
|
||||
),
|
||||
child: TextButton(
|
||||
style: CFColors.getPrimaryEnabledButtonColor(
|
||||
context),
|
||||
style: StackTheme.instance
|
||||
.getPrimaryEnabledButtonColor(context),
|
||||
onPressed: requestRestore,
|
||||
child: Text(
|
||||
"Restore",
|
||||
|
|
|
@ -4,6 +4,7 @@ import 'package:stackwallet/providers/ui/verify_recovery_phrase/mnemonic_word_co
|
|||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
|
||||
class MnemonicWordCountSelectSheet extends ConsumerWidget {
|
||||
const MnemonicWordCountSelectSheet({
|
||||
|
@ -42,7 +43,7 @@ class MnemonicWordCountSelectSheet extends ConsumerWidget {
|
|||
Center(
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
color: CFColors.fieldGray,
|
||||
color: StackTheme.instance.color.textFieldDefaultBG,
|
||||
borderRadius: BorderRadius.circular(
|
||||
Constants.size.circularBorderRadius,
|
||||
),
|
||||
|
@ -96,7 +97,8 @@ class MnemonicWordCountSelectSheet extends ConsumerWidget {
|
|||
width: 20,
|
||||
height: 20,
|
||||
child: Radio(
|
||||
activeColor: CFColors.link2,
|
||||
activeColor: StackTheme
|
||||
.instance.color.radioButtonIconEnabled,
|
||||
value: lengthOptions[i],
|
||||
groupValue: ref
|
||||
.watch(mnemonicWordCountStateProvider
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:stackwallet/providers/providers.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||
|
||||
class RestoreFailedDialog extends ConsumerStatefulWidget {
|
||||
|
@ -45,11 +45,7 @@ class _RestoreFailedDialogState extends ConsumerState<RestoreFailedDialog> {
|
|||
title: "Restore failed",
|
||||
message: errorMessage,
|
||||
rightButton: TextButton(
|
||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Ok",
|
||||
style: STextStyles.itemSubtitle12,
|
||||
|
|
|
@ -3,6 +3,7 @@ import 'package:flutter_svg/svg.dart';
|
|||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||
|
||||
class RestoreSucceededDialog extends StatelessWidget {
|
||||
|
@ -17,14 +18,10 @@ class RestoreSucceededDialog extends StatelessWidget {
|
|||
Assets.svg.checkCircle,
|
||||
width: 24,
|
||||
height: 24,
|
||||
color: CFColors.stackGreen,
|
||||
color: StackTheme.instance.color.accentColorGreen,
|
||||
),
|
||||
rightButton: TextButton(
|
||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Ok",
|
||||
style: STextStyles.itemSubtitle12,
|
||||
|
|
|
@ -3,6 +3,7 @@ import 'package:flutter_svg/svg.dart';
|
|||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||
|
||||
class RestoringDialog extends StatefulWidget {
|
||||
|
@ -67,11 +68,7 @@ class _RestoringDialogState extends State<RestoringDialog>
|
|||
),
|
||||
),
|
||||
rightButton: TextButton(
|
||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Cancel",
|
||||
style: STextStyles.itemSubtitle12,
|
||||
|
|
|
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:stackwallet/providers/providers.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@ import 'package:stackwallet/utilities/cfcolors.dart';
|
|||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/utilities/util.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
||||
|
@ -263,7 +264,7 @@ class _VerifyRecoveryPhraseViewState
|
|||
),
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: CFColors.fieldGray,
|
||||
color: StackTheme.instance.color.textFieldDefaultBG,
|
||||
borderRadius: BorderRadius.circular(
|
||||
Constants.size.circularBorderRadius),
|
||||
),
|
||||
|
@ -322,10 +323,10 @@ class _VerifyRecoveryPhraseViewState
|
|||
}
|
||||
: null,
|
||||
style: selectedWord.isNotEmpty
|
||||
? CFColors.getPrimaryEnabledButtonColor(
|
||||
context)
|
||||
: CFColors.getPrimaryDisabledButtonColor(
|
||||
context),
|
||||
? StackTheme.instance
|
||||
.getPrimaryEnabledButtonColor(context)
|
||||
: StackTheme.instance
|
||||
.getPrimaryDisabledButtonColor(context),
|
||||
child: isDesktop
|
||||
? Text(
|
||||
"Verify",
|
||||
|
|
|
@ -10,6 +10,7 @@ import 'package:stackwallet/providers/providers.dart';
|
|||
import 'package:stackwallet/providers/ui/address_book_providers/address_book_filter_provider.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/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
|
@ -102,7 +103,7 @@ class _AddressBookViewState extends ConsumerState<AddressBookView> {
|
|||
addressBookServiceProvider.select((value) => value.addressBookEntries));
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () {
|
||||
|
@ -126,7 +127,7 @@ class _AddressBookViewState extends ConsumerState<AddressBookView> {
|
|||
key: const Key("addressBookFilterViewButton"),
|
||||
size: 36,
|
||||
shadows: const [],
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
icon: SvgPicture.asset(
|
||||
Assets.svg.filter,
|
||||
color: CFColors.stackAccent,
|
||||
|
@ -153,7 +154,7 @@ class _AddressBookViewState extends ConsumerState<AddressBookView> {
|
|||
key: const Key("addressBookAddNewContactViewButton"),
|
||||
size: 36,
|
||||
shadows: const [],
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
icon: SvgPicture.asset(
|
||||
Assets.svg.plus,
|
||||
color: CFColors.stackAccent,
|
||||
|
|
|
@ -15,6 +15,7 @@ import 'package:stackwallet/utilities/cfcolors.dart';
|
|||
import 'package:stackwallet/utilities/clipboard_interface.dart';
|
||||
import 'package:stackwallet/utilities/constants.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/emoji_select_sheet.dart';
|
||||
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||
|
@ -93,7 +94,7 @@ class _AddAddressBookEntryViewState
|
|||
debugPrint("BUILD: $runtimeType");
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -123,10 +124,12 @@ class _AddAddressBookEntryViewState
|
|||
key: const Key("addAddressBookEntryFavoriteButtonKey"),
|
||||
size: 36,
|
||||
shadows: const [],
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
icon: SvgPicture.asset(
|
||||
Assets.svg.star,
|
||||
color: _isFavorite ? CFColors.link2 : CFColors.buttonGray,
|
||||
color: _isFavorite
|
||||
? StackTheme.instance.color.accentColorRed
|
||||
: StackTheme.instance.color.buttonBackSecondary,
|
||||
width: 20,
|
||||
height: 20,
|
||||
),
|
||||
|
@ -198,7 +201,8 @@ class _AddAddressBookEntryViewState
|
|||
width: 48,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(24),
|
||||
color: CFColors.textFieldActive,
|
||||
color: StackTheme
|
||||
.instance.color.textFieldActiveBG,
|
||||
),
|
||||
child: Center(
|
||||
child: _selectedEmoji == null
|
||||
|
@ -336,12 +340,8 @@ class _AddAddressBookEntryViewState
|
|||
children: [
|
||||
Expanded(
|
||||
child: TextButton(
|
||||
style: ButtonStyle(
|
||||
backgroundColor:
|
||||
MaterialStateProperty.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance
|
||||
.getSecondaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Cancel",
|
||||
style: STextStyles.button.copyWith(
|
||||
|
@ -380,13 +380,12 @@ class _AddAddressBookEntryViewState
|
|||
validForms && nameExists;
|
||||
|
||||
return TextButton(
|
||||
style: ButtonStyle(
|
||||
backgroundColor:
|
||||
MaterialStateProperty.all<Color>(
|
||||
shouldEnableSave
|
||||
? CFColors.stackAccent
|
||||
: CFColors.disabledButton,
|
||||
)),
|
||||
style: shouldEnableSave
|
||||
? StackTheme.instance
|
||||
.getPrimaryEnabledButtonColor(context)
|
||||
: StackTheme.instance
|
||||
.getPrimaryDisabledButtonColor(
|
||||
context),
|
||||
onPressed: shouldEnableSave
|
||||
? () async {
|
||||
if (FocusScope.of(context).hasFocus) {
|
||||
|
|
|
@ -12,6 +12,7 @@ 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/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
|
||||
class AddNewContactAddressView extends ConsumerStatefulWidget {
|
||||
|
@ -56,7 +57,7 @@ class _AddNewContactAddressViewState
|
|||
.select((value) => value.getContactById(contactId)));
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -99,7 +100,8 @@ class _AddNewContactAddressViewState
|
|||
width: 48,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(24),
|
||||
color: CFColors.textFieldActive,
|
||||
color:
|
||||
StackTheme.instance.color.textFieldActiveBG,
|
||||
),
|
||||
child: Center(
|
||||
child: contact.emojiChar == null
|
||||
|
@ -144,12 +146,8 @@ class _AddNewContactAddressViewState
|
|||
children: [
|
||||
Expanded(
|
||||
child: TextButton(
|
||||
style: ButtonStyle(
|
||||
backgroundColor:
|
||||
MaterialStateProperty.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance
|
||||
.getSecondaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Cancel",
|
||||
style: STextStyles.button.copyWith(
|
||||
|
@ -178,14 +176,13 @@ class _AddNewContactAddressViewState
|
|||
ref.watch(validContactStateProvider([0]));
|
||||
|
||||
return TextButton(
|
||||
style: ButtonStyle(
|
||||
backgroundColor:
|
||||
MaterialStateProperty.all<Color>(
|
||||
shouldEnableSave
|
||||
? CFColors.stackAccent
|
||||
: CFColors.disabledButton,
|
||||
),
|
||||
),
|
||||
style: shouldEnableSave
|
||||
? StackTheme.instance
|
||||
.getPrimaryEnabledButtonColor(
|
||||
context)
|
||||
: StackTheme.instance
|
||||
.getPrimaryDisabledButtonColor(
|
||||
context),
|
||||
onPressed: shouldEnableSave
|
||||
? () async {
|
||||
if (FocusScope.of(context)
|
||||
|
|
|
@ -3,6 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.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/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
|
@ -42,9 +43,9 @@ class _AddressBookFilterViewState extends ConsumerState<AddressBookFilterView> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
Navigator.of(context).pop();
|
||||
|
|
|
@ -7,6 +7,7 @@ import 'package:stackwallet/utilities/cfcolors.dart';
|
|||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
|
||||
class CoinSelectSheet extends StatelessWidget {
|
||||
const CoinSelectSheet({Key? key}) : super(key: key);
|
||||
|
@ -39,7 +40,7 @@ class CoinSelectSheet extends StatelessWidget {
|
|||
Center(
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
color: CFColors.fieldGray,
|
||||
color: StackTheme.instance.color.textFieldDefaultBG,
|
||||
borderRadius: BorderRadius.circular(
|
||||
Constants.size.circularBorderRadius,
|
||||
),
|
||||
|
|
|
@ -18,6 +18,7 @@ import 'package:stackwallet/utilities/clipboard_interface.dart';
|
|||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/enums/flush_bar_type.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/blue_text_button.dart';
|
||||
import 'package:stackwallet/widgets/loading_indicator.dart';
|
||||
|
@ -105,7 +106,7 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
|||
.select((value) => value.getContactById(_contactId)));
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () {
|
||||
|
@ -129,12 +130,12 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
|||
key: const Key("contactDetails"),
|
||||
size: 36,
|
||||
shadows: const [],
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
icon: SvgPicture.asset(
|
||||
Assets.svg.star,
|
||||
color: _contact.isFavorite
|
||||
? CFColors.link2
|
||||
: CFColors.buttonGray,
|
||||
? StackTheme.instance.color.infoItemIcons
|
||||
: StackTheme.instance.color.buttonBackSecondary,
|
||||
width: 20,
|
||||
height: 20,
|
||||
),
|
||||
|
@ -160,7 +161,7 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
|||
key: const Key("contactDetailsViewDeleteContactButtonKey"),
|
||||
size: 36,
|
||||
shadows: const [],
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
icon: SvgPicture.asset(
|
||||
Assets.svg.trash,
|
||||
color: CFColors.stackAccent,
|
||||
|
@ -176,14 +177,8 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
|||
title: "Delete ${_contact.name}?",
|
||||
message: "Contact will be deleted permanently!",
|
||||
leftButton: TextButton(
|
||||
style: Theme.of(context)
|
||||
.textButtonTheme
|
||||
.style
|
||||
?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance
|
||||
.getSecondaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Cancel",
|
||||
style: STextStyles.itemSubtitle12,
|
||||
|
@ -193,14 +188,8 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
|||
},
|
||||
),
|
||||
rightButton: TextButton(
|
||||
style: Theme.of(context)
|
||||
.textButtonTheme
|
||||
.style
|
||||
?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
CFColors.stackAccent,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance
|
||||
.getPrimaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Delete",
|
||||
style: STextStyles.button,
|
||||
|
@ -246,7 +235,7 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
|||
width: 48,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(24),
|
||||
color: CFColors.textFieldActive,
|
||||
color: StackTheme.instance.color.textFieldActiveBG,
|
||||
),
|
||||
child: Center(
|
||||
child: _contact.emojiChar == null
|
||||
|
@ -280,12 +269,11 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
|||
arguments: _contact.id,
|
||||
);
|
||||
},
|
||||
style: ButtonStyle(
|
||||
minimumSize:
|
||||
MaterialStateProperty.all<Size>(const Size(46, 32)),
|
||||
backgroundColor: MaterialStateProperty.all(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
style: StackTheme.instance
|
||||
.getSecondaryEnabledButtonColor(context)!
|
||||
.copyWith(
|
||||
minimumSize: MaterialStateProperty.all<Size>(
|
||||
const Size(46, 32)),
|
||||
),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||
|
@ -391,7 +379,8 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
|||
);
|
||||
},
|
||||
child: RoundedContainer(
|
||||
color: CFColors.fieldGray,
|
||||
color: StackTheme
|
||||
.instance.color.textFieldDefaultBG,
|
||||
padding: const EdgeInsets.all(4),
|
||||
child: SvgPicture.asset(
|
||||
Assets.svg.pencil,
|
||||
|
@ -417,7 +406,8 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
|||
);
|
||||
},
|
||||
child: RoundedContainer(
|
||||
color: CFColors.fieldGray,
|
||||
color: StackTheme
|
||||
.instance.color.textFieldDefaultBG,
|
||||
padding: const EdgeInsets.all(4),
|
||||
child: SvgPicture.asset(
|
||||
Assets.svg.copy,
|
||||
|
|
|
@ -15,6 +15,7 @@ import 'package:stackwallet/utilities/clipboard_interface.dart';
|
|||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||
import 'package:tuple/tuple.dart';
|
||||
|
@ -98,7 +99,8 @@ class ContactPopUp extends ConsumerWidget {
|
|||
width: 32,
|
||||
height: 32,
|
||||
decoration: BoxDecoration(
|
||||
color: CFColors.contactIconBackground,
|
||||
color: StackTheme
|
||||
.instance.color.textFieldDefaultBG,
|
||||
borderRadius: BorderRadius.circular(32),
|
||||
),
|
||||
child: contact.id == "default"
|
||||
|
@ -138,14 +140,13 @@ class ContactPopUp extends ConsumerWidget {
|
|||
arguments: contact.id,
|
||||
);
|
||||
},
|
||||
style: ButtonStyle(
|
||||
style: StackTheme.instance
|
||||
.getSecondaryEnabledButtonColor(
|
||||
context)!
|
||||
.copyWith(
|
||||
minimumSize:
|
||||
MaterialStateProperty.all<Size>(
|
||||
const Size(46, 32)),
|
||||
backgroundColor:
|
||||
MaterialStateProperty.all(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
MaterialStateProperty.all<
|
||||
Size>(const Size(46, 32)),
|
||||
),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
|
@ -162,7 +163,7 @@ class ContactPopUp extends ConsumerWidget {
|
|||
),
|
||||
Container(
|
||||
height: 1,
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
),
|
||||
if (addresses.isEmpty)
|
||||
Padding(
|
||||
|
@ -254,7 +255,8 @@ class ContactPopUp extends ConsumerWidget {
|
|||
);
|
||||
},
|
||||
child: RoundedContainer(
|
||||
color: CFColors.fieldGray,
|
||||
color: StackTheme.instance.color
|
||||
.textFieldDefaultBG,
|
||||
padding: const EdgeInsets.all(4),
|
||||
child: SvgPicture.asset(
|
||||
Assets.svg.copy,
|
||||
|
@ -304,7 +306,8 @@ class ContactPopUp extends ConsumerWidget {
|
|||
}
|
||||
},
|
||||
child: RoundedContainer(
|
||||
color: CFColors.fieldGray,
|
||||
color: StackTheme.instance.color
|
||||
.textFieldDefaultBG,
|
||||
padding:
|
||||
const EdgeInsets.all(4),
|
||||
child: SvgPicture.asset(
|
||||
|
|
|
@ -12,6 +12,7 @@ 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/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
|
||||
class EditContactAddressView extends ConsumerStatefulWidget {
|
||||
|
@ -60,7 +61,7 @@ class _EditContactAddressViewState
|
|||
.select((value) => value.getContactById(contactId)));
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -103,7 +104,8 @@ class _EditContactAddressViewState
|
|||
width: 48,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(24),
|
||||
color: CFColors.textFieldActive,
|
||||
color:
|
||||
StackTheme.instance.color.textFieldActiveBG,
|
||||
),
|
||||
child: Center(
|
||||
child: contact.emojiChar == null
|
||||
|
@ -179,12 +181,8 @@ class _EditContactAddressViewState
|
|||
children: [
|
||||
Expanded(
|
||||
child: TextButton(
|
||||
style: ButtonStyle(
|
||||
backgroundColor:
|
||||
MaterialStateProperty.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance
|
||||
.getSecondaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Cancel",
|
||||
style: STextStyles.button.copyWith(
|
||||
|
@ -213,14 +211,13 @@ class _EditContactAddressViewState
|
|||
ref.watch(validContactStateProvider([0]));
|
||||
|
||||
return TextButton(
|
||||
style: ButtonStyle(
|
||||
backgroundColor:
|
||||
MaterialStateProperty.all<Color>(
|
||||
shouldEnableSave
|
||||
? CFColors.stackAccent
|
||||
: CFColors.disabledButton,
|
||||
),
|
||||
),
|
||||
style: shouldEnableSave
|
||||
? StackTheme.instance
|
||||
.getPrimaryEnabledButtonColor(
|
||||
context)
|
||||
: StackTheme.instance
|
||||
.getPrimaryDisabledButtonColor(
|
||||
context),
|
||||
onPressed: shouldEnableSave
|
||||
? () async {
|
||||
if (FocusScope.of(context)
|
||||
|
|
|
@ -7,6 +7,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
|||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/constants.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/emoji_select_sheet.dart';
|
||||
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||
|
@ -68,7 +69,7 @@ class _EditContactNameEmojiViewState
|
|||
.select((value) => value.getContactById(contactId)));
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -139,7 +140,8 @@ class _EditContactNameEmojiViewState
|
|||
width: 48,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(24),
|
||||
color: CFColors.textFieldActive,
|
||||
color: StackTheme
|
||||
.instance.color.textFieldActiveBG,
|
||||
),
|
||||
child: Center(
|
||||
child: _selectedEmoji == null
|
||||
|
@ -230,12 +232,8 @@ class _EditContactNameEmojiViewState
|
|||
children: [
|
||||
Expanded(
|
||||
child: TextButton(
|
||||
style: ButtonStyle(
|
||||
backgroundColor:
|
||||
MaterialStateProperty.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance
|
||||
.getSecondaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Cancel",
|
||||
style: STextStyles.button.copyWith(
|
||||
|
@ -264,14 +262,13 @@ class _EditContactNameEmojiViewState
|
|||
nameController.text.isNotEmpty;
|
||||
|
||||
return TextButton(
|
||||
style: ButtonStyle(
|
||||
backgroundColor:
|
||||
MaterialStateProperty.all<Color>(
|
||||
shouldEnableSave
|
||||
? CFColors.stackAccent
|
||||
: CFColors.disabledButton,
|
||||
),
|
||||
),
|
||||
style: shouldEnableSave
|
||||
? StackTheme.instance
|
||||
.getPrimaryEnabledButtonColor(
|
||||
context)
|
||||
: StackTheme.instance
|
||||
.getPrimaryDisabledButtonColor(
|
||||
context),
|
||||
onPressed: shouldEnableSave
|
||||
? () async {
|
||||
if (FocusScope.of(context)
|
||||
|
|
|
@ -9,11 +9,13 @@ import 'package:stackwallet/utilities/address_utils.dart';
|
|||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/utilities/barcode_scanner_interface.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/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/logger.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/icon_widgets/clipboard_icon.dart';
|
||||
import 'package:stackwallet/widgets/icon_widgets/qrcode_icon.dart';
|
||||
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||
|
@ -352,7 +354,7 @@ class _NewContactAddressEntryFormState
|
|||
"Invalid address",
|
||||
textAlign: TextAlign.left,
|
||||
style: STextStyles.label.copyWith(
|
||||
color: CFColors.notificationRedForeground,
|
||||
color: StackTheme.instance.color.textError,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
|
|
@ -12,6 +12,7 @@ import 'package:stackwallet/utilities/cfcolors.dart';
|
|||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/format.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/rounded_container.dart';
|
||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||
|
@ -86,7 +87,7 @@ class _ConfirmChangeNowSendViewState
|
|||
// pop sending dialog
|
||||
Navigator.of(context).pop();
|
||||
|
||||
showDialog<dynamic>(
|
||||
await showDialog<dynamic>(
|
||||
context: context,
|
||||
useSafeArea: false,
|
||||
barrierDismissible: true,
|
||||
|
@ -95,11 +96,8 @@ class _ConfirmChangeNowSendViewState
|
|||
title: "Broadcast transaction failed",
|
||||
message: e.toString(),
|
||||
rightButton: TextButton(
|
||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style:
|
||||
StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Ok",
|
||||
style: STextStyles.button.copyWith(
|
||||
|
@ -131,7 +129,7 @@ class _ConfirmChangeNowSendViewState
|
|||
.select((value) => value.getManagerProvider(walletId)));
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
// if (FocusScope.of(context).hasFocus) {
|
||||
|
@ -317,7 +315,7 @@ class _ConfirmChangeNowSendViewState
|
|||
height: 12,
|
||||
),
|
||||
RoundedContainer(
|
||||
color: CFColors.stackGreen15,
|
||||
color: StackTheme.instance.color.snackBarBackSuccess,
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
|
|
|
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:stackwallet/providers/exchange/trade_note_service_provider.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
|
@ -46,9 +47,9 @@ class _EditNoteViewState extends ConsumerState<EditTradeNoteView> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
if (FocusScope.of(context).hasFocus) {
|
||||
|
|
|
@ -5,6 +5,7 @@ import 'package:stackwallet/models/exchange/change_now/currency.dart';
|
|||
import 'package:stackwallet/models/exchange/change_now/fixed_rate_market.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/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
|
@ -119,7 +120,7 @@ class _FixedRateMarketPairCoinSelectionViewState
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
|
|
@ -3,6 +3,7 @@ import 'package:flutter_svg/svg.dart';
|
|||
import 'package:stackwallet/models/exchange/change_now/currency.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/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
|
@ -75,7 +76,7 @@ class _FloatingRateCurrencySelectionViewState
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
|
|
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:stackwallet/providers/exchange/changenow_initial_load_status.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/widgets/custom_loading_overlay.dart';
|
||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||
|
|
|
@ -4,6 +4,7 @@ import 'package:stackwallet/pages/exchange_view/exchange_step_views/step_2_view.
|
|||
import 'package:stackwallet/pages/exchange_view/sub_widgets/exchange_rate_sheet.dart';
|
||||
import 'package:stackwallet/pages/exchange_view/sub_widgets/step_row.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/text_styles.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
|
@ -40,7 +41,7 @@ class _Step1ViewState extends State<Step1View> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
|
|
@ -11,6 +11,7 @@ import 'package:stackwallet/providers/providers.dart';
|
|||
import 'package:stackwallet/utilities/address_utils.dart';
|
||||
import 'package:stackwallet/utilities/barcode_scanner_interface.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/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
|
@ -95,7 +96,7 @@ class _Step2ViewState extends ConsumerState<Step2View> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
|
|
@ -13,6 +13,7 @@ import 'package:stackwallet/providers/global/trades_service_provider.dart';
|
|||
import 'package:stackwallet/services/notifications_api.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/text_styles.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
|
@ -50,7 +51,7 @@ class _Step3ViewState extends ConsumerState<Step3View> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
|
|
@ -25,6 +25,7 @@ import 'package:stackwallet/utilities/enums/fee_rate_type_enum.dart';
|
|||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||
import 'package:stackwallet/utilities/format.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/rounded_container.dart';
|
||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||
|
@ -114,7 +115,7 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
|||
final bool isWalletCoin =
|
||||
_isWalletCoinAndHasWallet(model.trade!.fromCurrency, ref);
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -225,7 +226,8 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
|||
children: [
|
||||
SvgPicture.asset(
|
||||
Assets.svg.copy,
|
||||
color: CFColors.link2,
|
||||
color: StackTheme
|
||||
.instance.color.infoItemIcons,
|
||||
width: 10,
|
||||
),
|
||||
const SizedBox(
|
||||
|
@ -282,7 +284,8 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
|||
children: [
|
||||
SvgPicture.asset(
|
||||
Assets.svg.copy,
|
||||
color: CFColors.link2,
|
||||
color: StackTheme
|
||||
.instance.color.infoItemIcons,
|
||||
width: 10,
|
||||
),
|
||||
const SizedBox(
|
||||
|
@ -340,7 +343,8 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
|||
},
|
||||
child: SvgPicture.asset(
|
||||
Assets.svg.copy,
|
||||
color: CFColors.link2,
|
||||
color: StackTheme
|
||||
.instance.color.infoItemIcons,
|
||||
width: 12,
|
||||
),
|
||||
)
|
||||
|
@ -562,16 +566,9 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
|||
title: "Transaction failed",
|
||||
message: e.toString(),
|
||||
rightButton: TextButton(
|
||||
style: Theme.of(context)
|
||||
.textButtonTheme
|
||||
.style
|
||||
?.copyWith(
|
||||
backgroundColor:
|
||||
MaterialStateProperty
|
||||
.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance
|
||||
.getSecondaryEnabledButtonColor(
|
||||
context),
|
||||
child: Text(
|
||||
"Ok",
|
||||
style: STextStyles.button
|
||||
|
|
|
@ -33,6 +33,7 @@ import 'package:stackwallet/utilities/cfcolors.dart';
|
|||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/custom_loading_overlay.dart';
|
||||
import 'package:stackwallet/widgets/loading_indicator.dart';
|
||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||
|
@ -1136,7 +1137,8 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
|||
.select((value) =>
|
||||
value.canExchange)))
|
||||
? CFColors.stackAccent
|
||||
: CFColors.buttonGray,
|
||||
: StackTheme
|
||||
.instance.color.buttonBackSecondary,
|
||||
),
|
||||
),
|
||||
onPressed: ((ref
|
||||
|
@ -1303,16 +1305,9 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
|||
message:
|
||||
"${response.value!.warningMessage!}\n\nDo you want to attempt trade anyways?",
|
||||
leftButton: TextButton(
|
||||
style: Theme.of(context)
|
||||
.textButtonTheme
|
||||
.style
|
||||
?.copyWith(
|
||||
backgroundColor:
|
||||
MaterialStateProperty.all<
|
||||
Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance
|
||||
.getSecondaryEnabledButtonColor(
|
||||
context),
|
||||
child: Text(
|
||||
"Cancel",
|
||||
style: STextStyles.itemSubtitle12,
|
||||
|
|
|
@ -15,6 +15,7 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
|||
import 'package:stackwallet/utilities/enums/fee_rate_type_enum.dart';
|
||||
import 'package:stackwallet/utilities/format.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/animated_text.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||
|
@ -58,7 +59,7 @@ class _SendFromViewState extends ConsumerState<SendFromView> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () {
|
||||
|
@ -240,11 +241,8 @@ class _SendFromCardState extends ConsumerState<SendFromCard> {
|
|||
title: "Transaction failed",
|
||||
message: e.toString(),
|
||||
rightButton: TextButton(
|
||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance
|
||||
.getSecondaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Ok",
|
||||
style: STextStyles.button.copyWith(
|
||||
|
|
|
@ -4,6 +4,7 @@ import 'package:stackwallet/providers/providers.dart';
|
|||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
|
||||
enum ExchangeRateType { estimated, fixed }
|
||||
|
||||
|
@ -35,7 +36,7 @@ class ExchangeRateSheet extends ConsumerWidget {
|
|||
Center(
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
color: CFColors.fieldGray,
|
||||
color: StackTheme.instance.color.textFieldDefaultBG,
|
||||
borderRadius: BorderRadius.circular(
|
||||
Constants.size.circularBorderRadius,
|
||||
),
|
||||
|
@ -76,7 +77,8 @@ class ExchangeRateSheet extends ConsumerWidget {
|
|||
width: 20,
|
||||
height: 20,
|
||||
child: Radio(
|
||||
activeColor: CFColors.link2,
|
||||
activeColor: StackTheme
|
||||
.instance.color.radioButtonIconEnabled,
|
||||
value: ExchangeRateType.estimated,
|
||||
groupValue: ref.watch(prefsChangeNotifierProvider
|
||||
.select((value) => value.exchangeRateType)),
|
||||
|
@ -146,7 +148,8 @@ class ExchangeRateSheet extends ConsumerWidget {
|
|||
width: 20,
|
||||
height: 20,
|
||||
child: Radio(
|
||||
activeColor: CFColors.link2,
|
||||
activeColor: StackTheme
|
||||
.instance.color.radioButtonIconEnabled,
|
||||
value: ExchangeRateType.fixed,
|
||||
groupValue: ref.watch(prefsChangeNotifierProvider
|
||||
.select((value) => value.exchangeRateType)),
|
||||
|
|
|
@ -3,6 +3,7 @@ import 'package:flutter_svg/svg.dart';
|
|||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
|
||||
enum StepIndicatorStatus { current, completed, incomplete }
|
||||
|
||||
|
@ -38,13 +39,13 @@ class StepIndicator extends StatelessWidget {
|
|||
style: GoogleFonts.roboto(
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: 8,
|
||||
color: CFColors.link2,
|
||||
color: StackTheme.instance.color.stepIndicatorIconNumber,
|
||||
),
|
||||
);
|
||||
case StepIndicatorStatus.completed:
|
||||
return SvgPicture.asset(
|
||||
Assets.svg.check,
|
||||
color: CFColors.link2,
|
||||
color: StackTheme.instance.color.stepIndicatorIconText,
|
||||
width: 10,
|
||||
);
|
||||
case StepIndicatorStatus.incomplete:
|
||||
|
@ -53,7 +54,7 @@ class StepIndicator extends StatelessWidget {
|
|||
style: GoogleFonts.roboto(
|
||||
fontWeight: FontWeight.w600,
|
||||
fontSize: 8,
|
||||
color: CFColors.white,
|
||||
color: StackTheme.instance.color.stepIndicatorIconInactive,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:stackwallet/pages/exchange_view/sub_widgets/step_indicator.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
|
||||
class StepRow extends StatelessWidget {
|
||||
const StepRow({
|
||||
|
@ -24,9 +25,9 @@ class StepRow extends StatelessWidget {
|
|||
}
|
||||
|
||||
if (current <= index) {
|
||||
return CFColors.stackAccent.withOpacity(0.2);
|
||||
return StackTheme.instance.color.stepIndicatorBGLinesInactive;
|
||||
} else {
|
||||
return CFColors.link2;
|
||||
return StackTheme.instance.color.stepIndicatorBGLines;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
|||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||
import 'package:stackwallet/utilities/format.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/rounded_container.dart';
|
||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||
|
@ -140,9 +141,9 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
|||
Decimal.parse("-1");
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
Navigator.of(context).pop();
|
||||
|
@ -402,13 +403,9 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
|||
// await _capturePng(true);
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
style: ButtonStyle(
|
||||
backgroundColor:
|
||||
MaterialStateProperty.all<
|
||||
Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance
|
||||
.getSecondaryEnabledButtonColor(
|
||||
context),
|
||||
child: Text(
|
||||
"Cancel",
|
||||
style:
|
||||
|
@ -431,7 +428,7 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
|||
Assets.svg.pencil,
|
||||
width: 10,
|
||||
height: 10,
|
||||
color: CFColors.link2,
|
||||
color: StackTheme.instance.color.infoItemIcons,
|
||||
),
|
||||
const SizedBox(
|
||||
width: 4,
|
||||
|
@ -478,7 +475,8 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
|||
Assets.svg.pencil,
|
||||
width: 10,
|
||||
height: 10,
|
||||
color: CFColors.link2,
|
||||
color:
|
||||
StackTheme.instance.color.infoItemIcons,
|
||||
),
|
||||
const SizedBox(
|
||||
width: 4,
|
||||
|
@ -536,7 +534,8 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
|||
Assets.svg.pencil,
|
||||
width: 10,
|
||||
height: 10,
|
||||
color: CFColors.link2,
|
||||
color:
|
||||
StackTheme.instance.color.infoItemIcons,
|
||||
),
|
||||
const SizedBox(
|
||||
width: 4,
|
||||
|
@ -655,7 +654,7 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
|||
},
|
||||
child: SvgPicture.asset(
|
||||
Assets.svg.copy,
|
||||
color: CFColors.link2,
|
||||
color: StackTheme.instance.color.infoItemIcons,
|
||||
width: 12,
|
||||
),
|
||||
)
|
||||
|
|
|
@ -30,6 +30,7 @@ import 'package:stackwallet/utilities/cfcolors.dart';
|
|||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/enums/flush_bar_type.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_loading_overlay.dart';
|
||||
import 'package:stackwallet/widgets/loading_indicator.dart';
|
||||
|
@ -353,7 +354,7 @@ class _WalletInitiatedExchangeViewState
|
|||
});
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -1233,7 +1234,8 @@ class _WalletInitiatedExchangeViewState
|
|||
.select((value) =>
|
||||
value.canExchange)))
|
||||
? CFColors.stackAccent
|
||||
: CFColors.buttonGray,
|
||||
: StackTheme.instance.color
|
||||
.buttonBackSecondary,
|
||||
),
|
||||
),
|
||||
onPressed: ((ref
|
||||
|
@ -1471,16 +1473,9 @@ class _WalletInitiatedExchangeViewState
|
|||
message:
|
||||
"${response.value!.warningMessage!}\n\nDo you want to attempt trade anyways?",
|
||||
leftButton: TextButton(
|
||||
style: Theme.of(context)
|
||||
.textButtonTheme
|
||||
.style
|
||||
?.copyWith(
|
||||
backgroundColor:
|
||||
MaterialStateProperty.all<
|
||||
Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance
|
||||
.getSecondaryEnabledButtonColor(
|
||||
context),
|
||||
child: Text(
|
||||
"Cancel",
|
||||
style: STextStyles.itemSubtitle12,
|
||||
|
|
|
@ -18,6 +18,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
|||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/constants.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/stack_dialog.dart';
|
||||
|
||||
|
@ -44,7 +45,6 @@ class _HomeViewState extends ConsumerState<HomeView> {
|
|||
final _cnLoadingService = ChangeNowLoadingService();
|
||||
|
||||
Future<bool> _onWillPop() async {
|
||||
|
||||
// go to home view when tapping back on the main exchange view
|
||||
if (ref.read(homeViewPageIndexStateProvider.state).state == 1) {
|
||||
ref.read(homeViewPageIndexStateProvider.state).state = 0;
|
||||
|
@ -172,7 +172,7 @@ class _HomeViewState extends ConsumerState<HomeView> {
|
|||
key: const Key("walletsViewAlertsButton"),
|
||||
size: 36,
|
||||
shadows: const [],
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
icon: SvgPicture.asset(
|
||||
ref.watch(notificationsProvider
|
||||
.select((value) => value.hasUnreadNotifications))
|
||||
|
@ -225,7 +225,7 @@ class _HomeViewState extends ConsumerState<HomeView> {
|
|||
key: const Key("walletsViewSettingsButton"),
|
||||
size: 36,
|
||||
shadows: const [],
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
icon: SvgPicture.asset(
|
||||
Assets.svg.gear,
|
||||
color: CFColors.stackAccent,
|
||||
|
@ -243,13 +243,13 @@ class _HomeViewState extends ConsumerState<HomeView> {
|
|||
],
|
||||
),
|
||||
body: Container(
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
child: Column(
|
||||
children: [
|
||||
if (Constants.enableExchange)
|
||||
Container(
|
||||
decoration: const BoxDecoration(
|
||||
color: CFColors.almostWhite,
|
||||
decoration: BoxDecoration(
|
||||
color: StackTheme.instance.color.background,
|
||||
boxShadow: [
|
||||
CFColors.standardBoxShadow,
|
||||
],
|
||||
|
|
|
@ -13,6 +13,7 @@ import 'package:stackwallet/providers/providers.dart';
|
|||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/logger.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||
|
||||
class HomeViewButtonBar extends ConsumerStatefulWidget {
|
||||
|
@ -147,13 +148,18 @@ class _HomeViewButtonBarState extends ConsumerState<HomeViewButtonBar> {
|
|||
children: [
|
||||
Expanded(
|
||||
child: TextButton(
|
||||
style: ButtonStyle(
|
||||
minimumSize: MaterialStateProperty.all<Size>(const Size(46, 36)),
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
selectedIndex == 0
|
||||
? CFColors.stackAccent
|
||||
: CFColors.disabledButton,
|
||||
),
|
||||
style: selectedIndex == 0
|
||||
? StackTheme.instance
|
||||
.getPrimaryEnabledButtonColor(context)!
|
||||
.copyWith(
|
||||
minimumSize:
|
||||
MaterialStateProperty.all<Size>(const Size(46, 36)),
|
||||
)
|
||||
: StackTheme.instance
|
||||
.getPrimaryDisabledButtonColor(context)!
|
||||
.copyWith(
|
||||
minimumSize:
|
||||
MaterialStateProperty.all<Size>(const Size(46, 36)),
|
||||
),
|
||||
onPressed: () {
|
||||
FocusScope.of(context).unfocus();
|
||||
|
@ -176,13 +182,18 @@ class _HomeViewButtonBarState extends ConsumerState<HomeViewButtonBar> {
|
|||
),
|
||||
Expanded(
|
||||
child: TextButton(
|
||||
style: ButtonStyle(
|
||||
minimumSize: MaterialStateProperty.all<Size>(const Size(46, 36)),
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
selectedIndex == 1
|
||||
? CFColors.stackAccent
|
||||
: CFColors.disabledButton,
|
||||
),
|
||||
style: selectedIndex == 0
|
||||
? StackTheme.instance
|
||||
.getPrimaryEnabledButtonColor(context)!
|
||||
.copyWith(
|
||||
minimumSize:
|
||||
MaterialStateProperty.all<Size>(const Size(46, 36)),
|
||||
)
|
||||
: StackTheme.instance
|
||||
.getPrimaryDisabledButtonColor(context)!
|
||||
.copyWith(
|
||||
minimumSize:
|
||||
MaterialStateProperty.all<Size>(const Size(46, 36)),
|
||||
),
|
||||
onPressed: () async {
|
||||
FocusScope.of(context).unfocus();
|
||||
|
|
|
@ -6,6 +6,7 @@ import 'package:stackwallet/pages_desktop_specific/create_password/create_passwo
|
|||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/utilities/util.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
|
@ -29,7 +30,7 @@ class _IntroViewState extends State<IntroView> {
|
|||
Widget build(BuildContext context) {
|
||||
debugPrint("BUILD: $runtimeType ");
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
body: Center(
|
||||
child: !isDesktop
|
||||
? Column(
|
||||
|
@ -253,7 +254,7 @@ class GetStartedButton extends StatelessWidget {
|
|||
width: 328,
|
||||
height: 70,
|
||||
child: TextButton(
|
||||
style: CFColors.getPrimaryEnabledButtonColor(context),
|
||||
style: StackTheme.instance.getPrimaryEnabledButtonColor(context),
|
||||
onPressed: () {
|
||||
Navigator.of(context).pushNamed(CreatePasswordView.routeName);
|
||||
},
|
||||
|
|
|
@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:lottie/lottie.dart';
|
||||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
|
||||
class LoadingView extends StatelessWidget {
|
||||
const LoadingView({Key? key}) : super(key: key);
|
||||
|
@ -12,9 +13,9 @@ class LoadingView extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
final size = MediaQuery.of(context).size;
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
body: Container(
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
child: Center(
|
||||
child: SizedBox(
|
||||
width: min(size.width, size.height) * 0.5,
|
||||
|
|
|
@ -3,6 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|||
import 'package:stackwallet/providers/providers.dart';
|
||||
import 'package:stackwallet/services/coins/manager.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
|
@ -29,7 +30,7 @@ class ManageFavoritesView extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
body: Container(
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(
|
||||
left: 12,
|
||||
|
|
|
@ -4,6 +4,7 @@ import 'package:stackwallet/notifications/notification_card.dart';
|
|||
import 'package:stackwallet/providers/providers.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/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||
|
@ -44,7 +45,7 @@ class _NotificationsViewState extends ConsumerState<NotificationsView> {
|
|||
.toList(growable: false);
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
title: Text(
|
||||
"Notifications",
|
||||
|
|
|
@ -15,6 +15,7 @@ import 'package:stackwallet/utilities/constants.dart';
|
|||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.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_pin_put/custom_pin_put.dart';
|
||||
|
||||
|
@ -81,7 +82,7 @@ class _CreatePinViewState extends ConsumerState<CreatePinView> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -129,21 +130,21 @@ class _CreatePinViewState extends ConsumerState<CreatePinView> {
|
|||
controller: _pinPutController1,
|
||||
useNativeKeyboard: false,
|
||||
obscureText: "",
|
||||
inputDecoration: const InputDecoration(
|
||||
inputDecoration: InputDecoration(
|
||||
border: InputBorder.none,
|
||||
enabledBorder: InputBorder.none,
|
||||
focusedBorder: InputBorder.none,
|
||||
disabledBorder: InputBorder.none,
|
||||
errorBorder: InputBorder.none,
|
||||
focusedErrorBorder: InputBorder.none,
|
||||
fillColor: CFColors.almostWhite,
|
||||
fillColor: StackTheme.instance.color.background,
|
||||
counterText: "",
|
||||
),
|
||||
submittedFieldDecoration: _pinPutDecoration.copyWith(
|
||||
color: CFColors.link2,
|
||||
color: StackTheme.instance.color.infoItemIcons,
|
||||
border: Border.all(
|
||||
width: 1,
|
||||
color: CFColors.link2,
|
||||
color: StackTheme.instance.color.infoItemIcons,
|
||||
),
|
||||
),
|
||||
selectedFieldDecoration: _pinPutDecoration,
|
||||
|
@ -189,21 +190,21 @@ class _CreatePinViewState extends ConsumerState<CreatePinView> {
|
|||
controller: _pinPutController2,
|
||||
useNativeKeyboard: false,
|
||||
obscureText: "",
|
||||
inputDecoration: const InputDecoration(
|
||||
inputDecoration: InputDecoration(
|
||||
border: InputBorder.none,
|
||||
enabledBorder: InputBorder.none,
|
||||
focusedBorder: InputBorder.none,
|
||||
disabledBorder: InputBorder.none,
|
||||
errorBorder: InputBorder.none,
|
||||
focusedErrorBorder: InputBorder.none,
|
||||
fillColor: CFColors.almostWhite,
|
||||
fillColor: StackTheme.instance.color.background,
|
||||
counterText: "",
|
||||
),
|
||||
submittedFieldDecoration: _pinPutDecoration.copyWith(
|
||||
color: CFColors.link2,
|
||||
color: StackTheme.instance.color.infoItemIcons,
|
||||
border: Border.all(
|
||||
width: 1,
|
||||
color: CFColors.link2,
|
||||
color: StackTheme.instance.color.infoItemIcons,
|
||||
),
|
||||
),
|
||||
selectedFieldDecoration: _pinPutDecoration,
|
||||
|
|
|
@ -17,6 +17,7 @@ import 'package:stackwallet/utilities/constants.dart';
|
|||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.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_pin_put/custom_pin_put.dart';
|
||||
import 'package:stackwallet/widgets/shake/shake.dart';
|
||||
|
@ -164,7 +165,7 @@ class _LockscreenViewState extends ConsumerState<LockscreenView> {
|
|||
late Biometrics biometrics;
|
||||
|
||||
Scaffold get _body => Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: widget.showBackButton
|
||||
? AppBarBackButton(
|
||||
|
@ -213,21 +214,21 @@ class _LockscreenViewState extends ConsumerState<LockscreenView> {
|
|||
controller: _pinTextController,
|
||||
useNativeKeyboard: false,
|
||||
obscureText: "",
|
||||
inputDecoration: const InputDecoration(
|
||||
inputDecoration: InputDecoration(
|
||||
border: InputBorder.none,
|
||||
enabledBorder: InputBorder.none,
|
||||
focusedBorder: InputBorder.none,
|
||||
disabledBorder: InputBorder.none,
|
||||
errorBorder: InputBorder.none,
|
||||
focusedErrorBorder: InputBorder.none,
|
||||
fillColor: CFColors.almostWhite,
|
||||
fillColor: StackTheme.instance.color.background,
|
||||
counterText: "",
|
||||
),
|
||||
submittedFieldDecoration: _pinPutDecoration.copyWith(
|
||||
color: CFColors.link2,
|
||||
color: StackTheme.instance.color.infoItemIcons,
|
||||
border: Border.all(
|
||||
width: 1,
|
||||
color: CFColors.link2,
|
||||
color: StackTheme.instance.color.infoItemIcons,
|
||||
),
|
||||
),
|
||||
selectedFieldDecoration: _pinPutDecoration,
|
||||
|
|
|
@ -19,6 +19,7 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
|||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||
import 'package:stackwallet/utilities/logger.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/icon_widgets/x_icon.dart';
|
||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||
|
@ -101,7 +102,7 @@ class _GenerateUriQrCodeViewState extends State<GenerateUriQrCodeView> {
|
|||
Widget build(BuildContext context) {
|
||||
debugPrint("BUILD: $runtimeType");
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -338,13 +339,9 @@ class _GenerateUriQrCodeViewState extends State<GenerateUriQrCodeView> {
|
|||
// TODO: add save button as well
|
||||
await _capturePng(true);
|
||||
},
|
||||
style: ButtonStyle(
|
||||
backgroundColor:
|
||||
MaterialStateProperty.all<
|
||||
Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance
|
||||
.getSecondaryEnabledButtonColor(
|
||||
context),
|
||||
child: Row(
|
||||
mainAxisAlignment:
|
||||
MainAxisAlignment.center,
|
||||
|
|
|
@ -15,6 +15,7 @@ import 'package:stackwallet/utilities/clipboard_interface.dart';
|
|||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/enums/flush_bar_type.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/blue_text_button.dart';
|
||||
import 'package:stackwallet/widgets/custom_loading_overlay.dart';
|
||||
|
@ -110,7 +111,7 @@ class _ReceiveViewState extends ConsumerState<ReceiveView> {
|
|||
});
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () {
|
||||
|
@ -158,7 +159,8 @@ class _ReceiveViewState extends ConsumerState<ReceiveView> {
|
|||
Assets.svg.copy,
|
||||
width: 10,
|
||||
height: 10,
|
||||
color: CFColors.link2,
|
||||
color:
|
||||
StackTheme.instance.color.infoItemIcons,
|
||||
),
|
||||
const SizedBox(
|
||||
width: 4,
|
||||
|
@ -195,11 +197,8 @@ class _ReceiveViewState extends ConsumerState<ReceiveView> {
|
|||
if (coin != Coin.epicCash)
|
||||
TextButton(
|
||||
onPressed: generateNewAddress,
|
||||
style: ButtonStyle(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance
|
||||
.getSecondaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Generate new address",
|
||||
style: STextStyles.button.copyWith(
|
||||
|
|
|
@ -7,6 +7,7 @@ import 'package:stackwallet/pages/pinpad_views/lock_screen_view.dart';
|
|||
import 'package:stackwallet/pages/send_view/sub_widgets/sending_transaction_dialog.dart';
|
||||
import 'package:stackwallet/pages/wallet_view/wallet_view.dart';
|
||||
import 'package:stackwallet/providers/providers.dart';
|
||||
import 'package:stackwallet/providers/wallet/public_private_balance_state_provider.dart';
|
||||
import 'package:stackwallet/route_generator.dart';
|
||||
import 'package:stackwallet/services/coins/epiccash/epiccash_wallet.dart';
|
||||
import 'package:stackwallet/services/coins/firo/firo_wallet.dart';
|
||||
|
@ -15,13 +16,12 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
|||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||
import 'package:stackwallet/utilities/format.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/rounded_container.dart';
|
||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||
|
||||
import '../../providers/wallet/public_private_balance_state_provider.dart';
|
||||
|
||||
class ConfirmTransactionView extends ConsumerStatefulWidget {
|
||||
const ConfirmTransactionView({
|
||||
Key? key,
|
||||
|
@ -112,11 +112,8 @@ class _ConfirmTransactionViewState
|
|||
title: "Broadcast transaction failed",
|
||||
message: e.toString(),
|
||||
rightButton: TextButton(
|
||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style:
|
||||
StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Ok",
|
||||
style: STextStyles.button.copyWith(
|
||||
|
@ -147,7 +144,7 @@ class _ConfirmTransactionViewState
|
|||
.select((value) => value.getManagerProvider(walletId)));
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
// if (FocusScope.of(context).hasFocus) {
|
||||
|
@ -288,7 +285,7 @@ class _ConfirmTransactionViewState
|
|||
height: 12,
|
||||
),
|
||||
RoundedContainer(
|
||||
color: CFColors.stackGreen15,
|
||||
color: StackTheme.instance.color.snackBarBackSuccess,
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
|
|
|
@ -28,6 +28,7 @@ import 'package:stackwallet/utilities/enums/fee_rate_type_enum.dart';
|
|||
import 'package:stackwallet/utilities/format.dart';
|
||||
import 'package:stackwallet/utilities/logger.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/animated_text.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/blue_text_button.dart';
|
||||
|
@ -360,7 +361,7 @@ class _SendViewState extends ConsumerState<SendView> {
|
|||
}
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -840,7 +841,8 @@ class _SendViewState extends ConsumerState<SendView> {
|
|||
error,
|
||||
textAlign: TextAlign.left,
|
||||
style: STextStyles.label.copyWith(
|
||||
color: CFColors.notificationRedForeground,
|
||||
color:
|
||||
StackTheme.instance.color.textError,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
@ -1406,16 +1408,9 @@ class _SendViewState extends ConsumerState<SendView> {
|
|||
message:
|
||||
"Sending to self is currently disabled",
|
||||
rightButton: TextButton(
|
||||
style: Theme.of(context)
|
||||
.textButtonTheme
|
||||
.style
|
||||
?.copyWith(
|
||||
backgroundColor:
|
||||
MaterialStateProperty.all<
|
||||
Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance
|
||||
.getSecondaryEnabledButtonColor(
|
||||
context),
|
||||
child: Text(
|
||||
"Ok",
|
||||
style:
|
||||
|
@ -1475,16 +1470,9 @@ class _SendViewState extends ConsumerState<SendView> {
|
|||
message:
|
||||
"You are about to send your entire balance. Would you like to continue?",
|
||||
leftButton: TextButton(
|
||||
style: Theme.of(context)
|
||||
.textButtonTheme
|
||||
.style
|
||||
?.copyWith(
|
||||
backgroundColor:
|
||||
MaterialStateProperty.all<
|
||||
Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance
|
||||
.getSecondaryEnabledButtonColor(
|
||||
context),
|
||||
child: Text(
|
||||
"Cancel",
|
||||
style:
|
||||
|
@ -1611,16 +1599,9 @@ class _SendViewState extends ConsumerState<SendView> {
|
|||
title: "Transaction failed",
|
||||
message: e.toString(),
|
||||
rightButton: TextButton(
|
||||
style: Theme.of(context)
|
||||
.textButtonTheme
|
||||
.style
|
||||
?.copyWith(
|
||||
backgroundColor:
|
||||
MaterialStateProperty
|
||||
.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance
|
||||
.getSecondaryEnabledButtonColor(
|
||||
context),
|
||||
child: Text(
|
||||
"Ok",
|
||||
style:
|
||||
|
|
|
@ -3,6 +3,7 @@ import 'package:flutter_svg/svg.dart';
|
|||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||
|
||||
class BuildingTransactionDialog extends StatefulWidget {
|
||||
|
@ -68,11 +69,7 @@ class _RestoringDialogState extends State<BuildingTransactionDialog>
|
|||
),
|
||||
),
|
||||
rightButton: TextButton(
|
||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Cancel",
|
||||
style: STextStyles.itemSubtitle12,
|
||||
|
|
|
@ -8,6 +8,7 @@ import 'package:stackwallet/utilities/cfcolors.dart';
|
|||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/animated_text.dart';
|
||||
|
||||
class FiroBalanceSelectionSheet extends ConsumerStatefulWidget {
|
||||
|
@ -69,7 +70,7 @@ class _FiroBalanceSelectionSheetState
|
|||
Center(
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
color: CFColors.fieldGray,
|
||||
color: StackTheme.instance.color.textFieldDefaultBG,
|
||||
borderRadius: BorderRadius.circular(
|
||||
Constants.size.circularBorderRadius,
|
||||
),
|
||||
|
@ -114,7 +115,8 @@ class _FiroBalanceSelectionSheetState
|
|||
width: 20,
|
||||
height: 20,
|
||||
child: Radio(
|
||||
activeColor: CFColors.link2,
|
||||
activeColor: StackTheme
|
||||
.instance.color.radioButtonIconEnabled,
|
||||
value: "Private",
|
||||
groupValue: ref
|
||||
.watch(
|
||||
|
@ -205,7 +207,8 @@ class _FiroBalanceSelectionSheetState
|
|||
width: 20,
|
||||
height: 20,
|
||||
child: Radio(
|
||||
activeColor: CFColors.link2,
|
||||
activeColor: StackTheme
|
||||
.instance.color.radioButtonIconEnabled,
|
||||
value: "Public",
|
||||
groupValue: ref
|
||||
.watch(
|
||||
|
|
|
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:stackwallet/utilities/assets.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||
|
||||
class SendingTransactionDialog extends StatefulWidget {
|
||||
|
|
|
@ -12,6 +12,7 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
|||
import 'package:stackwallet/utilities/enums/fee_rate_type_enum.dart';
|
||||
import 'package:stackwallet/utilities/format.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/animated_text.dart';
|
||||
|
||||
final feeSheetSessionCacheProvider =
|
||||
|
@ -182,7 +183,7 @@ class _TransactionFeeSelectionSheetState
|
|||
Center(
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
color: CFColors.fieldGray,
|
||||
color: StackTheme.instance.color.textFieldDefaultBG,
|
||||
borderRadius: BorderRadius.circular(
|
||||
Constants.size.circularBorderRadius,
|
||||
),
|
||||
|
@ -235,7 +236,8 @@ class _TransactionFeeSelectionSheetState
|
|||
width: 20,
|
||||
height: 20,
|
||||
child: Radio(
|
||||
activeColor: CFColors.link2,
|
||||
activeColor: StackTheme
|
||||
.instance.color.radioButtonIconEnabled,
|
||||
value: FeeRateType.fast,
|
||||
groupValue: ref
|
||||
.watch(feeRateTypeStateProvider.state)
|
||||
|
@ -360,7 +362,8 @@ class _TransactionFeeSelectionSheetState
|
|||
width: 20,
|
||||
height: 20,
|
||||
child: Radio(
|
||||
activeColor: CFColors.link2,
|
||||
activeColor: StackTheme
|
||||
.instance.color.radioButtonIconEnabled,
|
||||
value: FeeRateType.average,
|
||||
groupValue: ref
|
||||
.watch(feeRateTypeStateProvider.state)
|
||||
|
@ -484,7 +487,8 @@ class _TransactionFeeSelectionSheetState
|
|||
width: 20,
|
||||
height: 20,
|
||||
child: Radio(
|
||||
activeColor: CFColors.link2,
|
||||
activeColor: StackTheme
|
||||
.instance.color.radioButtonIconEnabled,
|
||||
value: FeeRateType.slow,
|
||||
groupValue: ref
|
||||
.watch(feeRateTypeStateProvider.state)
|
||||
|
|
|
@ -1,21 +1,20 @@
|
|||
import 'dart:convert';
|
||||
|
||||
import 'package:http/http.dart';
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_libepiccash/git_versions.dart' as EPIC_VERSIONS;
|
||||
import 'package:flutter_libmonero/git_versions.dart' as MONERO_VERSIONS;
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:http/http.dart';
|
||||
import 'package:lelantus/git_versions.dart' as FIRO_VERSIONS;
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/logger.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/blue_text_button.dart';
|
||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'package:flutter_libepiccash/git_versions.dart' as EPIC_VERSIONS;
|
||||
import 'package:flutter_libmonero/git_versions.dart' as MONERO_VERSIONS;
|
||||
import 'package:lelantus/git_versions.dart' as FIRO_VERSIONS;
|
||||
|
||||
import 'package:stackwallet/utilities/logger.dart';
|
||||
|
||||
const kGithubAPI = "https://api.github.com";
|
||||
const kGithubSearch = "/search/commits";
|
||||
|
@ -119,7 +118,7 @@ class AboutView extends ConsumerWidget {
|
|||
Future commitMoneroFuture = Future.wait(futureMoneroList);
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -269,15 +268,21 @@ class AboutView extends ConsumerWidget {
|
|||
switch (stateOfCommit) {
|
||||
case CommitStatus.isHead:
|
||||
indicationStyle = STextStyles.itemSubtitle
|
||||
.copyWith(color: CFColors.stackGreen);
|
||||
.copyWith(
|
||||
color: StackTheme
|
||||
.instance.color.accentColorGreen);
|
||||
break;
|
||||
case CommitStatus.isOldCommit:
|
||||
indicationStyle = STextStyles.itemSubtitle
|
||||
.copyWith(color: CFColors.stackYellow);
|
||||
.copyWith(
|
||||
color: StackTheme
|
||||
.instance.color.accentColorYellow);
|
||||
break;
|
||||
case CommitStatus.notACommit:
|
||||
indicationStyle = STextStyles.itemSubtitle
|
||||
.copyWith(color: CFColors.stackRed);
|
||||
.copyWith(
|
||||
color: StackTheme
|
||||
.instance.color.accentColorRed);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -329,15 +334,21 @@ class AboutView extends ConsumerWidget {
|
|||
switch (stateOfCommit) {
|
||||
case CommitStatus.isHead:
|
||||
indicationStyle = STextStyles.itemSubtitle
|
||||
.copyWith(color: CFColors.stackGreen);
|
||||
.copyWith(
|
||||
color: StackTheme
|
||||
.instance.color.accentColorGreen);
|
||||
break;
|
||||
case CommitStatus.isOldCommit:
|
||||
indicationStyle = STextStyles.itemSubtitle
|
||||
.copyWith(color: CFColors.stackYellow);
|
||||
.copyWith(
|
||||
color: StackTheme
|
||||
.instance.color.accentColorYellow);
|
||||
break;
|
||||
case CommitStatus.notACommit:
|
||||
indicationStyle = STextStyles.itemSubtitle
|
||||
.copyWith(color: CFColors.stackRed);
|
||||
.copyWith(
|
||||
color: StackTheme
|
||||
.instance.color.accentColorRed);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -389,15 +400,21 @@ class AboutView extends ConsumerWidget {
|
|||
switch (stateOfCommit) {
|
||||
case CommitStatus.isHead:
|
||||
indicationStyle = STextStyles.itemSubtitle
|
||||
.copyWith(color: CFColors.stackGreen);
|
||||
.copyWith(
|
||||
color: StackTheme
|
||||
.instance.color.accentColorGreen);
|
||||
break;
|
||||
case CommitStatus.isOldCommit:
|
||||
indicationStyle = STextStyles.itemSubtitle
|
||||
.copyWith(color: CFColors.stackYellow);
|
||||
.copyWith(
|
||||
color: StackTheme
|
||||
.instance.color.accentColorYellow);
|
||||
break;
|
||||
case CommitStatus.notACommit:
|
||||
indicationStyle = STextStyles.itemSubtitle
|
||||
.copyWith(color: CFColors.stackRed);
|
||||
.copyWith(
|
||||
color: StackTheme
|
||||
.instance.color.accentColorRed);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
@ -3,6 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|||
import 'package:stackwallet/pages/settings_views/global_settings_view/advanced_views/debug_view.dart';
|
||||
import 'package:stackwallet/providers/global/prefs_provider.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
|
@ -21,7 +22,7 @@ class AdvancedSettingsView extends StatelessWidget {
|
|||
debugPrint("BUILD: $runtimeType");
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () {
|
||||
|
|
|
@ -15,6 +15,7 @@ import 'package:stackwallet/utilities/constants.dart';
|
|||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||
import 'package:stackwallet/utilities/logger.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/blue_text_button.dart';
|
||||
import 'package:stackwallet/widgets/custom_loading_overlay.dart';
|
||||
|
@ -89,7 +90,7 @@ class _DebugViewState extends ConsumerState<DebugView> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -113,7 +114,7 @@ class _DebugViewState extends ConsumerState<DebugView> {
|
|||
key: const Key("deleteLogsAppBarButtonKey"),
|
||||
size: 36,
|
||||
shadows: const [],
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
icon: SvgPicture.asset(
|
||||
Assets.svg.trash,
|
||||
color: CFColors.stackAccent,
|
||||
|
@ -128,14 +129,8 @@ class _DebugViewState extends ConsumerState<DebugView> {
|
|||
message:
|
||||
"You are about to delete all logs permanently. Are you sure?",
|
||||
leftButton: TextButton(
|
||||
style: Theme.of(context)
|
||||
.textButtonTheme
|
||||
.style
|
||||
?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance
|
||||
.getSecondaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Cancel",
|
||||
style: STextStyles.itemSubtitle12,
|
||||
|
@ -401,14 +396,19 @@ class _DebugViewState extends ConsumerState<DebugView> {
|
|||
style: STextStyles.baseXS.copyWith(
|
||||
fontSize: 8,
|
||||
color: (log.logLevel == LogLevel.Info
|
||||
? CFColors.stackGreen
|
||||
? StackTheme.instance.color
|
||||
.accentColorGreen
|
||||
: (log.logLevel ==
|
||||
LogLevel.Warning
|
||||
? CFColors.stackYellow
|
||||
? StackTheme.instance.color
|
||||
.accentColorYellow
|
||||
: (log.logLevel ==
|
||||
LogLevel.Error
|
||||
? Colors.orange
|
||||
: CFColors.stackRed))),
|
||||
: StackTheme
|
||||
.instance
|
||||
.color
|
||||
.accentColorRed))),
|
||||
),
|
||||
),
|
||||
Text(
|
||||
|
|
|
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:stackwallet/providers/providers.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
|
@ -16,7 +17,7 @@ class AppearanceSettingsView extends ConsumerWidget {
|
|||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
|
|
@ -7,6 +7,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
|||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/constants.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/icon_widgets/x_icon.dart';
|
||||
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||
|
@ -101,7 +102,7 @@ class _CurrencyViewState extends ConsumerState<BaseCurrencySettingsView> {
|
|||
}
|
||||
currenciesWithoutSelected = _filtered();
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -234,7 +235,8 @@ class _CurrencyViewState extends ConsumerState<BaseCurrencySettingsView> {
|
|||
width: 20,
|
||||
height: 20,
|
||||
child: Radio(
|
||||
activeColor: CFColors.link2,
|
||||
activeColor: StackTheme.instance.color
|
||||
.radioButtonIconEnabled,
|
||||
materialTapTargetSize:
|
||||
MaterialTapTargetSize.shrinkWrap,
|
||||
value: true,
|
||||
|
|
|
@ -16,6 +16,7 @@ import 'package:stackwallet/pages/settings_views/sub_widgets/settings_list_butto
|
|||
import 'package:stackwallet/route_generator.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/text_styles.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||
|
@ -31,7 +32,7 @@ class GlobalSettingsView extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
debugPrint("BUILD: $runtimeType");
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () {
|
||||
|
|
|
@ -6,6 +6,7 @@ import 'package:stackwallet/notifications/show_flush_bar.dart';
|
|||
import 'package:stackwallet/providers/global/debug_service_provider.dart';
|
||||
import 'package:stackwallet/providers/providers.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||
|
@ -18,7 +19,7 @@ class HiddenSettings extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: Container(),
|
||||
title: Text(
|
||||
|
|
|
@ -7,6 +7,7 @@ import 'package:stackwallet/utilities/cfcolors.dart';
|
|||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/languages_enum.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/icon_widgets/x_icon.dart';
|
||||
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||
|
@ -99,7 +100,7 @@ class _LanguageViewState extends ConsumerState<LanguageSettingsView> {
|
|||
}
|
||||
listWithoutSelected = _filtered();
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -232,7 +233,8 @@ class _LanguageViewState extends ConsumerState<LanguageSettingsView> {
|
|||
width: 20,
|
||||
height: 20,
|
||||
child: Radio(
|
||||
activeColor: CFColors.link2,
|
||||
activeColor: StackTheme.instance.color
|
||||
.radioButtonIconEnabled,
|
||||
value: true,
|
||||
groupValue: index == 0,
|
||||
onChanged: (_) {
|
||||
|
|
|
@ -20,6 +20,7 @@ import 'package:stackwallet/utilities/logger.dart';
|
|||
import 'package:stackwallet/utilities/test_epic_box_connection.dart';
|
||||
import 'package:stackwallet/utilities/test_monero_node_connection.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/icon_widgets/x_icon.dart';
|
||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||
|
@ -189,7 +190,7 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
|
|||
: null;
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -220,7 +221,7 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
|
|||
key: const Key("deleteNodeAppBarButtonKey"),
|
||||
size: 36,
|
||||
shadows: const [],
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
icon: SvgPicture.asset(
|
||||
Assets.svg.trash,
|
||||
color: CFColors.stackAccent,
|
||||
|
@ -290,11 +291,8 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
|
|||
await _testConnection();
|
||||
}
|
||||
: null,
|
||||
style: ButtonStyle(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance
|
||||
.getSecondaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Test connection",
|
||||
style: STextStyles.button.copyWith(
|
||||
|
@ -306,15 +304,11 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
|
|||
),
|
||||
const SizedBox(height: 16),
|
||||
TextButton(
|
||||
style:
|
||||
Theme.of(context).textButtonTheme.style?.copyWith(
|
||||
backgroundColor:
|
||||
MaterialStateProperty.all<Color>(
|
||||
saveEnabled
|
||||
? CFColors.stackAccent
|
||||
: CFColors.disabledButton,
|
||||
),
|
||||
),
|
||||
style: saveEnabled
|
||||
? StackTheme.instance
|
||||
.getPrimaryEnabledButtonColor(context)
|
||||
: StackTheme.instance
|
||||
.getPrimaryDisabledButtonColor(context),
|
||||
onPressed: saveEnabled
|
||||
? () async {
|
||||
final canConnect = await _testConnection(
|
||||
|
@ -892,7 +886,7 @@ class _NodeFormState extends ConsumerState<NodeForm> {
|
|||
child: Checkbox(
|
||||
fillColor: widget.readOnly
|
||||
? MaterialStateProperty.all(
|
||||
CFColors.disabledButton)
|
||||
StackTheme.instance.color.checkboxBGDisabled)
|
||||
: null,
|
||||
materialTapTargetSize:
|
||||
MaterialTapTargetSize.shrinkWrap,
|
||||
|
|
|
@ -5,6 +5,7 @@ import 'package:stackwallet/pages/settings_views/global_settings_view/manage_nod
|
|||
import 'package:stackwallet/pages/settings_views/sub_widgets/nodes_list.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/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
|
@ -38,7 +39,7 @@ class _CoinNodesViewState extends ConsumerState<CoinNodesView> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () {
|
||||
|
@ -62,7 +63,7 @@ class _CoinNodesViewState extends ConsumerState<CoinNodesView> {
|
|||
key: const Key("manageNodesAddNewNodeButtonKey"),
|
||||
size: 36,
|
||||
shadows: const [],
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
icon: SvgPicture.asset(
|
||||
Assets.svg.plus,
|
||||
color: CFColors.stackAccent,
|
||||
|
|
|
@ -5,6 +5,7 @@ import 'package:stackwallet/pages/settings_views/global_settings_view/manage_nod
|
|||
import 'package:stackwallet/providers/providers.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/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
|
@ -48,7 +49,7 @@ class _ManageNodesViewState extends ConsumerState<ManageNodesView> {
|
|||
: _coins.sublist(0, Coin.values.length - kTestNetCoinCount);
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () {
|
||||
|
|
|
@ -18,6 +18,7 @@ import 'package:stackwallet/utilities/logger.dart';
|
|||
import 'package:stackwallet/utilities/test_epic_box_connection.dart';
|
||||
import 'package:stackwallet/utilities/test_monero_node_connection.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:tuple/tuple.dart';
|
||||
|
||||
|
@ -138,7 +139,7 @@ class _NodeDetailsViewState extends ConsumerState<NodeDetailsView> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -169,7 +170,7 @@ class _NodeDetailsViewState extends ConsumerState<NodeDetailsView> {
|
|||
key: const Key("nodeDetailsEditNodeAppBarButtonKey"),
|
||||
size: 36,
|
||||
shadows: const [],
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
icon: SvgPicture.asset(
|
||||
Assets.svg.pencil,
|
||||
color: CFColors.stackAccent,
|
||||
|
@ -221,11 +222,8 @@ class _NodeDetailsViewState extends ConsumerState<NodeDetailsView> {
|
|||
),
|
||||
const Spacer(),
|
||||
TextButton(
|
||||
style: ButtonStyle(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance
|
||||
.getSecondaryEnabledButtonColor(context),
|
||||
onPressed: () async {
|
||||
await _testConnection(ref, context);
|
||||
},
|
||||
|
|
|
@ -9,6 +9,7 @@ import 'package:stackwallet/utilities/constants.dart';
|
|||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.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_pin_put/custom_pin_put.dart';
|
||||
|
||||
|
@ -69,7 +70,7 @@ class _ChangePinViewState extends State<ChangePinView> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -112,21 +113,21 @@ class _ChangePinViewState extends State<ChangePinView> {
|
|||
controller: _pinPutController1,
|
||||
useNativeKeyboard: false,
|
||||
obscureText: "",
|
||||
inputDecoration: const InputDecoration(
|
||||
inputDecoration: InputDecoration(
|
||||
border: InputBorder.none,
|
||||
enabledBorder: InputBorder.none,
|
||||
focusedBorder: InputBorder.none,
|
||||
disabledBorder: InputBorder.none,
|
||||
errorBorder: InputBorder.none,
|
||||
focusedErrorBorder: InputBorder.none,
|
||||
fillColor: CFColors.almostWhite,
|
||||
fillColor: StackTheme.instance.color.background,
|
||||
counterText: "",
|
||||
),
|
||||
submittedFieldDecoration: _pinPutDecoration.copyWith(
|
||||
color: CFColors.link2,
|
||||
color: StackTheme.instance.color.infoItemIcons,
|
||||
border: Border.all(
|
||||
width: 1,
|
||||
color: CFColors.link2,
|
||||
color: StackTheme.instance.color.infoItemIcons,
|
||||
),
|
||||
),
|
||||
selectedFieldDecoration: _pinPutDecoration,
|
||||
|
@ -168,21 +169,21 @@ class _ChangePinViewState extends State<ChangePinView> {
|
|||
controller: _pinPutController2,
|
||||
useNativeKeyboard: false,
|
||||
obscureText: "",
|
||||
inputDecoration: const InputDecoration(
|
||||
inputDecoration: InputDecoration(
|
||||
border: InputBorder.none,
|
||||
enabledBorder: InputBorder.none,
|
||||
focusedBorder: InputBorder.none,
|
||||
disabledBorder: InputBorder.none,
|
||||
errorBorder: InputBorder.none,
|
||||
focusedErrorBorder: InputBorder.none,
|
||||
fillColor: CFColors.almostWhite,
|
||||
fillColor: StackTheme.instance.color.background,
|
||||
counterText: "",
|
||||
),
|
||||
submittedFieldDecoration: _pinPutDecoration.copyWith(
|
||||
color: CFColors.link2,
|
||||
color: StackTheme.instance.color.infoItemIcons,
|
||||
border: Border.all(
|
||||
width: 1,
|
||||
color: CFColors.link2,
|
||||
color: StackTheme.instance.color.infoItemIcons,
|
||||
),
|
||||
),
|
||||
selectedFieldDecoration: _pinPutDecoration,
|
||||
|
|
|
@ -5,6 +5,7 @@ import 'package:stackwallet/pages/settings_views/global_settings_view/security_v
|
|||
import 'package:stackwallet/providers/global/prefs_provider.dart';
|
||||
import 'package:stackwallet/route_generator.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
|
@ -23,7 +24,7 @@ class SecurityView extends StatelessWidget {
|
|||
debugPrint("BUILD: $runtimeType");
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () {
|
||||
|
|
|
@ -11,6 +11,7 @@ import 'package:stackwallet/utilities/constants.dart';
|
|||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart';
|
||||
import 'package:stackwallet/utilities/format.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/blue_text_button.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/draggable_switch_button.dart';
|
||||
|
@ -81,11 +82,7 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
|
|||
title: "Enable Auto Backup",
|
||||
message: "To enable Auto Backup, you need to create a backup file.",
|
||||
leftButton: TextButton(
|
||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Back",
|
||||
style: STextStyles.button.copyWith(
|
||||
|
@ -141,11 +138,7 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
|
|||
message:
|
||||
"You are turning off Auto Backup. You can turn it back on at any time. Your previous Auto Backup file will not be deleted. Remember to backup your wallets manually so you don't lose important information.",
|
||||
leftButton: TextButton(
|
||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Back",
|
||||
style: STextStyles.button.copyWith(
|
||||
|
@ -230,7 +223,7 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
|
|||
});
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () {
|
||||
|
|
|
@ -21,6 +21,7 @@ import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
|
|||
import 'package:stackwallet/utilities/format.dart';
|
||||
import 'package:stackwallet/utilities/logger.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/progress_bar.dart';
|
||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||
|
@ -102,7 +103,7 @@ class _EnableAutoBackupViewState extends ConsumerState<CreateAutoBackupView> {
|
|||
debugPrint("BUILD: $runtimeType");
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () {
|
||||
|
@ -302,11 +303,12 @@ class _EnableAutoBackupViewState extends ConsumerState<CreateAutoBackupView> {
|
|||
width: MediaQuery.of(context).size.width - 32 - 24,
|
||||
height: 5,
|
||||
fillColor: passwordStrength < 0.51
|
||||
? CFColors.stackRed
|
||||
? StackTheme.instance.color.accentColorRed
|
||||
: passwordStrength < 1
|
||||
? CFColors.stackYellow
|
||||
: CFColors.stackGreen,
|
||||
backgroundColor: CFColors.buttonGray,
|
||||
? StackTheme.instance.color.accentColorYellow
|
||||
: StackTheme.instance.color.accentColorGreen,
|
||||
backgroundColor:
|
||||
StackTheme.instance.color.buttonBackSecondary,
|
||||
percent:
|
||||
passwordStrength < 0.25 ? 0.03 : passwordStrength,
|
||||
),
|
||||
|
@ -438,13 +440,11 @@ class _EnableAutoBackupViewState extends ConsumerState<CreateAutoBackupView> {
|
|||
height: 10,
|
||||
),
|
||||
TextButton(
|
||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
shouldEnableCreate
|
||||
? CFColors.stackAccent
|
||||
: CFColors.disabledButton,
|
||||
),
|
||||
),
|
||||
style: shouldEnableCreate
|
||||
? StackTheme.instance
|
||||
.getPrimaryEnabledButtonColor(context)
|
||||
: StackTheme.instance
|
||||
.getPrimaryDisabledButtonColor(context),
|
||||
onPressed: !shouldEnableCreate
|
||||
? null
|
||||
: () async {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:stackwallet/pages/settings_views/global_settings_view/stack_backup_views/create_backup_view.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/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||
|
@ -13,7 +14,7 @@ class CreateBackupInfoView extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
|
|
@ -14,6 +14,7 @@ import 'package:stackwallet/utilities/constants.dart';
|
|||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||
import 'package:stackwallet/utilities/logger.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/progress_bar.dart';
|
||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||
|
@ -82,7 +83,7 @@ class _RestoreFromFileViewState extends State<CreateBackupView> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -306,11 +307,14 @@ class _RestoreFromFileViewState extends State<CreateBackupView> {
|
|||
width: MediaQuery.of(context).size.width - 32 - 24,
|
||||
height: 5,
|
||||
fillColor: passwordStrength < 0.51
|
||||
? CFColors.stackRed
|
||||
? StackTheme.instance.color.accentColorRed
|
||||
: passwordStrength < 1
|
||||
? CFColors.stackYellow
|
||||
: CFColors.stackGreen,
|
||||
backgroundColor: CFColors.buttonGray,
|
||||
? StackTheme
|
||||
.instance.color.accentColorYellow
|
||||
: StackTheme
|
||||
.instance.color.accentColorGreen,
|
||||
backgroundColor:
|
||||
StackTheme.instance.color.buttonBackSecondary,
|
||||
percent: passwordStrength < 0.25
|
||||
? 0.03
|
||||
: passwordStrength,
|
||||
|
@ -376,16 +380,11 @@ class _RestoreFromFileViewState extends State<CreateBackupView> {
|
|||
),
|
||||
const Spacer(),
|
||||
TextButton(
|
||||
style: Theme.of(context)
|
||||
.textButtonTheme
|
||||
.style
|
||||
?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
shouldEnableCreate
|
||||
? CFColors.stackAccent
|
||||
: CFColors.disabledButton,
|
||||
),
|
||||
),
|
||||
style: shouldEnableCreate
|
||||
? StackTheme.instance
|
||||
.getPrimaryEnabledButtonColor(context)
|
||||
: StackTheme.instance
|
||||
.getPrimaryDisabledButtonColor(context),
|
||||
onPressed: !shouldEnableCreate
|
||||
? null
|
||||
: () async {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||
|
||||
class CancelStackRestoreDialog extends StatelessWidget {
|
||||
|
@ -19,11 +20,7 @@ class CancelStackRestoreDialog extends StatelessWidget {
|
|||
message:
|
||||
"Cancelling will revert any changes that may have been applied",
|
||||
leftButton: TextButton(
|
||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
CFColors.buttonGray,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Back",
|
||||
style: STextStyles.itemSubtitle12,
|
||||
|
@ -33,11 +30,7 @@ class CancelStackRestoreDialog extends StatelessWidget {
|
|||
},
|
||||
),
|
||||
rightButton: TextButton(
|
||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
CFColors.stackAccent,
|
||||
),
|
||||
),
|
||||
style: StackTheme.instance.getPrimaryEnabledButtonColor(context),
|
||||
child: Text(
|
||||
"Yes, cancel",
|
||||
style: STextStyles.itemSubtitle12.copyWith(
|
||||
|
|
|
@ -21,6 +21,7 @@ import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
|
|||
import 'package:stackwallet/utilities/format.dart';
|
||||
import 'package:stackwallet/utilities/logger.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/progress_bar.dart';
|
||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||
|
@ -104,7 +105,7 @@ class _EditAutoBackupViewState extends ConsumerState<EditAutoBackupView> {
|
|||
debugPrint("BUILD: $runtimeType");
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () {
|
||||
|
@ -304,11 +305,12 @@ class _EditAutoBackupViewState extends ConsumerState<EditAutoBackupView> {
|
|||
width: MediaQuery.of(context).size.width - 32 - 24,
|
||||
height: 5,
|
||||
fillColor: passwordStrength < 0.51
|
||||
? CFColors.stackRed
|
||||
? StackTheme.instance.color.accentColorRed
|
||||
: passwordStrength < 1
|
||||
? CFColors.stackYellow
|
||||
: CFColors.stackGreen,
|
||||
backgroundColor: CFColors.buttonGray,
|
||||
? StackTheme.instance.color.accentColorYellow
|
||||
: StackTheme.instance.color.accentColorGreen,
|
||||
backgroundColor:
|
||||
StackTheme.instance.color.buttonBackSecondary,
|
||||
percent:
|
||||
passwordStrength < 0.25 ? 0.03 : passwordStrength,
|
||||
),
|
||||
|
@ -440,13 +442,11 @@ class _EditAutoBackupViewState extends ConsumerState<EditAutoBackupView> {
|
|||
height: 10,
|
||||
),
|
||||
TextButton(
|
||||
style: Theme.of(context).textButtonTheme.style?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
shouldEnableCreate
|
||||
? CFColors.stackAccent
|
||||
: CFColors.disabledButton,
|
||||
),
|
||||
),
|
||||
style: shouldEnableCreate
|
||||
? StackTheme.instance
|
||||
.getPrimaryEnabledButtonColor(context)
|
||||
: StackTheme.instance
|
||||
.getPrimaryDisabledButtonColor(context),
|
||||
onPressed: !shouldEnableCreate
|
||||
? null
|
||||
: () async {
|
||||
|
|
|
@ -12,6 +12,7 @@ import 'package:stackwallet/utilities/cfcolors.dart';
|
|||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/flush_bar_type.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/loading_indicator.dart';
|
||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||
|
@ -63,7 +64,7 @@ class _RestoreFromEncryptedStringViewState
|
|||
return WillPopScope(
|
||||
onWillPop: _onWillPop,
|
||||
child: Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -150,15 +151,11 @@ class _RestoreFromEncryptedStringViewState
|
|||
),
|
||||
const Spacer(),
|
||||
TextButton(
|
||||
style:
|
||||
Theme.of(context).textButtonTheme.style?.copyWith(
|
||||
backgroundColor:
|
||||
MaterialStateProperty.all<Color>(
|
||||
passwordController.text.isEmpty
|
||||
? CFColors.disabledButton
|
||||
: CFColors.stackAccent,
|
||||
),
|
||||
),
|
||||
style: passwordController.text.isEmpty
|
||||
? StackTheme.instance
|
||||
.getPrimaryEnabledButtonColor(context)
|
||||
: StackTheme.instance
|
||||
.getPrimaryDisabledButtonColor(context),
|
||||
onPressed: passwordController.text.isEmpty
|
||||
? null
|
||||
: () async {
|
||||
|
|
|
@ -15,6 +15,7 @@ import 'package:stackwallet/utilities/constants.dart';
|
|||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||
import 'package:stackwallet/utilities/logger.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/loading_indicator.dart';
|
||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||
|
@ -64,7 +65,7 @@ class _RestoreFromFileViewState extends ConsumerState<RestoreFromFileView> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -218,17 +219,12 @@ class _RestoreFromFileViewState extends ConsumerState<RestoreFromFileView> {
|
|||
),
|
||||
const Spacer(),
|
||||
TextButton(
|
||||
style: Theme.of(context)
|
||||
.textButtonTheme
|
||||
.style
|
||||
?.copyWith(
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
passwordController.text.isEmpty ||
|
||||
style: passwordController.text.isEmpty ||
|
||||
fileLocationController.text.isEmpty
|
||||
? CFColors.disabledButton
|
||||
: CFColors.stackAccent,
|
||||
),
|
||||
),
|
||||
? StackTheme.instance
|
||||
.getPrimaryEnabledButtonColor(context)
|
||||
: StackTheme.instance
|
||||
.getPrimaryDisabledButtonColor(context),
|
||||
onPressed: passwordController.text.isEmpty ||
|
||||
fileLocationController.text.isEmpty
|
||||
? null
|
||||
|
|
|
@ -5,6 +5,7 @@ import 'package:stackwallet/pages/settings_views/global_settings_view/stack_back
|
|||
import 'package:stackwallet/pages/settings_views/global_settings_view/stack_backup_views/restore_from_file_view.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/constants.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
|
@ -22,7 +23,7 @@ class StackBackupView extends StatelessWidget {
|
|||
debugPrint("BUILD: $runtimeType");
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () {
|
||||
|
|
|
@ -5,6 +5,7 @@ import 'package:stackwallet/utilities/cfcolors.dart';
|
|||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
|
||||
class BackupFrequencyTypeSelectSheet extends ConsumerWidget {
|
||||
const BackupFrequencyTypeSelectSheet({
|
||||
|
@ -51,7 +52,7 @@ class BackupFrequencyTypeSelectSheet extends ConsumerWidget {
|
|||
Center(
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
color: CFColors.fieldGray,
|
||||
color: StackTheme.instance.color.textFieldDefaultBG,
|
||||
borderRadius: BorderRadius.circular(
|
||||
Constants.size.circularBorderRadius,
|
||||
),
|
||||
|
@ -100,7 +101,8 @@ class BackupFrequencyTypeSelectSheet extends ConsumerWidget {
|
|||
width: 20,
|
||||
height: 20,
|
||||
child: Radio(
|
||||
activeColor: CFColors.link2,
|
||||
activeColor: StackTheme
|
||||
.instance.color.radioButtonIconEnabled,
|
||||
value: BackupFrequencyType.values[i],
|
||||
groupValue: ref.watch(
|
||||
prefsChangeNotifierProvider.select(
|
||||
|
|
|
@ -5,6 +5,7 @@ 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/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/enums/flush_bar_type.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
|
@ -28,7 +29,7 @@ class RecoverPhraseView extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
debugPrint("BUILD: $runtimeType");
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () {
|
||||
|
@ -41,7 +42,7 @@ class RecoverPhraseView extends StatelessWidget {
|
|||
child: AspectRatio(
|
||||
aspectRatio: 1,
|
||||
child: AppBarIconButton(
|
||||
color: CFColors.almostWhite,
|
||||
color: StackTheme.instance.color.background,
|
||||
shadows: const [],
|
||||
icon: SvgPicture.asset(
|
||||
Assets.svg.copy,
|
||||
|
|
|
@ -15,6 +15,7 @@ import 'package:stackwallet/utilities/cfcolors.dart';
|
|||
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/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
import 'package:stackwallet/widgets/icon_widgets/addressbook_icon.dart';
|
||||
import 'package:stackwallet/widgets/loading_indicator.dart';
|
||||
|
@ -138,22 +139,22 @@ class _StackRestoreProgressViewState
|
|||
case StackRestoringStatus.waiting:
|
||||
return SvgPicture.asset(
|
||||
Assets.svg.loader,
|
||||
color: CFColors.buttonGray,
|
||||
color: StackTheme.instance.color.buttonBackSecondary,
|
||||
);
|
||||
case StackRestoringStatus.restoring:
|
||||
return SvgPicture.asset(
|
||||
Assets.svg.loader,
|
||||
color: CFColors.stackGreen,
|
||||
color: StackTheme.instance.color.accentColorGreen,
|
||||
);
|
||||
case StackRestoringStatus.success:
|
||||
return SvgPicture.asset(
|
||||
Assets.svg.checkCircle,
|
||||
color: CFColors.stackGreen,
|
||||
color: StackTheme.instance.color.accentColorGreen,
|
||||
);
|
||||
case StackRestoringStatus.failed:
|
||||
return SvgPicture.asset(
|
||||
Assets.svg.circleAlert,
|
||||
color: CFColors.error,
|
||||
color: StackTheme.instance.color.textError,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -178,7 +179,7 @@ class _StackRestoreProgressViewState
|
|||
return WillPopScope(
|
||||
onWillPop: _onWillPop,
|
||||
child: Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -237,7 +238,8 @@ class _StackRestoreProgressViewState
|
|||
height: 32,
|
||||
child: RoundedContainer(
|
||||
padding: const EdgeInsets.all(0),
|
||||
color: CFColors.buttonGray,
|
||||
color:
|
||||
StackTheme.instance.color.buttonBackSecondary,
|
||||
child: Center(
|
||||
child: SvgPicture.asset(
|
||||
Assets.svg.gear,
|
||||
|
@ -271,13 +273,14 @@ class _StackRestoreProgressViewState
|
|||
final state = ref.watch(stackRestoringUIStateProvider
|
||||
.select((value) => value.addressBook));
|
||||
return RestoringItemCard(
|
||||
left: const SizedBox(
|
||||
left: SizedBox(
|
||||
width: 32,
|
||||
height: 32,
|
||||
child: RoundedContainer(
|
||||
padding: EdgeInsets.all(0),
|
||||
color: CFColors.buttonGray,
|
||||
child: Center(
|
||||
padding: const EdgeInsets.all(0),
|
||||
color:
|
||||
StackTheme.instance.color.buttonBackSecondary,
|
||||
child: const Center(
|
||||
child: AddressBookIcon(
|
||||
width: 16,
|
||||
height: 16,
|
||||
|
@ -314,7 +317,8 @@ class _StackRestoreProgressViewState
|
|||
height: 32,
|
||||
child: RoundedContainer(
|
||||
padding: const EdgeInsets.all(0),
|
||||
color: CFColors.buttonGray,
|
||||
color:
|
||||
StackTheme.instance.color.buttonBackSecondary,
|
||||
child: Center(
|
||||
child: SvgPicture.asset(
|
||||
Assets.svg.node,
|
||||
|
@ -353,7 +357,8 @@ class _StackRestoreProgressViewState
|
|||
height: 32,
|
||||
child: RoundedContainer(
|
||||
padding: const EdgeInsets.all(0),
|
||||
color: CFColors.buttonGray,
|
||||
color:
|
||||
StackTheme.instance.color.buttonBackSecondary,
|
||||
child: Center(
|
||||
child: SvgPicture.asset(
|
||||
Assets.svg.arrowRotate2,
|
||||
|
|
|
@ -11,6 +11,7 @@ import 'package:stackwallet/utilities/cfcolors.dart';
|
|||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/enums/stack_restoring_status.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/widgets/loading_indicator.dart';
|
||||
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||
|
||||
|
@ -35,23 +36,23 @@ class _RestoringWalletCardState extends ConsumerState<RestoringWalletCard> {
|
|||
case StackRestoringStatus.waiting:
|
||||
return SvgPicture.asset(
|
||||
Assets.svg.loader,
|
||||
color: CFColors.buttonGray,
|
||||
color:StackTheme.instance.color.buttonBackSecondary,
|
||||
);
|
||||
case StackRestoringStatus.restoring:
|
||||
return const LoadingIndicator();
|
||||
// return SvgPicture.asset(
|
||||
// Assets.svg.loader,
|
||||
// color: CFColors.stackGreen,
|
||||
// color: StackTheme.instance.color.accentColorGreen,
|
||||
// );
|
||||
case StackRestoringStatus.success:
|
||||
return SvgPicture.asset(
|
||||
Assets.svg.checkCircle,
|
||||
color: CFColors.stackGreen,
|
||||
color: StackTheme.instance.color.accentColorGreen,
|
||||
);
|
||||
case StackRestoringStatus.failed:
|
||||
return SvgPicture.asset(
|
||||
Assets.svg.circleAlert,
|
||||
color: CFColors.error,
|
||||
color: StackTheme.instance.color.textError,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -155,7 +156,7 @@ class _RestoringWalletCardState extends ConsumerState<RestoringWalletCard> {
|
|||
? Container(
|
||||
height: 20,
|
||||
decoration: BoxDecoration(
|
||||
color: CFColors.buttonGray,
|
||||
color: StackTheme.instance.color.buttonBackSecondary,
|
||||
borderRadius: BorderRadius.circular(
|
||||
1000,
|
||||
),
|
||||
|
|
|
@ -2,9 +2,9 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:stackwallet/pages/settings_views/global_settings_view/startup_preferences/startup_wallet_selection_view.dart';
|
||||
import 'package:stackwallet/providers/global/prefs_provider.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/constants.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/rounded_white_container.dart';
|
||||
|
||||
|
@ -23,7 +23,7 @@ class _StartupPreferencesViewState
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -81,7 +81,8 @@ class _StartupPreferencesViewState
|
|||
width: 20,
|
||||
height: 20,
|
||||
child: Radio(
|
||||
activeColor: CFColors.link2,
|
||||
activeColor: StackTheme.instance
|
||||
.color.radioButtonIconEnabled,
|
||||
value: false,
|
||||
groupValue: ref.watch(
|
||||
prefsChangeNotifierProvider
|
||||
|
@ -153,7 +154,8 @@ class _StartupPreferencesViewState
|
|||
width: 20,
|
||||
height: 20,
|
||||
child: Radio(
|
||||
activeColor: CFColors.link2,
|
||||
activeColor: StackTheme.instance
|
||||
.color.radioButtonIconEnabled,
|
||||
value: true,
|
||||
groupValue: ref.watch(
|
||||
prefsChangeNotifierProvider
|
||||
|
|
|
@ -6,6 +6,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
|||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/constants.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/draggable_switch_button.dart';
|
||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||
|
@ -34,7 +35,7 @@ class _StartupWalletSelectionViewState
|
|||
}
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -161,7 +162,8 @@ class _StartupWalletSelectionViewState
|
|||
height: 20,
|
||||
width: 20,
|
||||
child: Radio(
|
||||
activeColor: CFColors.link2,
|
||||
activeColor: StackTheme.instance.color
|
||||
.radioButtonIconEnabled,
|
||||
value: manager.walletId,
|
||||
groupValue: ref.watch(
|
||||
prefsChangeNotifierProvider.select(
|
||||
|
|
|
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_svg/svg.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/constants.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||
|
@ -21,7 +22,7 @@ class SupportView extends StatelessWidget {
|
|||
debugPrint("BUILD: $runtimeType");
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () {
|
||||
|
|
|
@ -2,10 +2,10 @@ import 'package:flutter/material.dart';
|
|||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:stackwallet/pages/settings_views/global_settings_view/syncing_preferences_views/wallet_syncing_options_view.dart';
|
||||
import 'package:stackwallet/providers/providers.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/sync_type_enum.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/rounded_white_container.dart';
|
||||
|
||||
|
@ -17,7 +17,7 @@ class SyncingOptionsView extends ConsumerWidget {
|
|||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
@ -90,7 +90,8 @@ class SyncingOptionsView extends ConsumerWidget {
|
|||
width: 20,
|
||||
height: 20,
|
||||
child: Radio(
|
||||
activeColor: CFColors.link2,
|
||||
activeColor: StackTheme.instance
|
||||
.color.radioButtonIconEnabled,
|
||||
value:
|
||||
SyncingType.currentWalletOnly,
|
||||
groupValue: ref.watch(
|
||||
|
@ -177,7 +178,8 @@ class SyncingOptionsView extends ConsumerWidget {
|
|||
width: 20,
|
||||
height: 20,
|
||||
child: Radio(
|
||||
activeColor: CFColors.link2,
|
||||
activeColor: StackTheme.instance
|
||||
.color.radioButtonIconEnabled,
|
||||
value:
|
||||
SyncingType.allWalletsOnStartup,
|
||||
groupValue: ref.watch(
|
||||
|
@ -268,7 +270,8 @@ class SyncingOptionsView extends ConsumerWidget {
|
|||
width: 20,
|
||||
height: 20,
|
||||
child: Radio(
|
||||
activeColor: CFColors.link2,
|
||||
activeColor: StackTheme.instance
|
||||
.color.radioButtonIconEnabled,
|
||||
value: SyncingType
|
||||
.selectedWalletsAtStartup,
|
||||
groupValue: ref.watch(
|
||||
|
|
|
@ -3,6 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|||
import 'package:stackwallet/pages/settings_views/global_settings_view/syncing_preferences_views/syncing_options_view.dart';
|
||||
import 'package:stackwallet/providers/providers.dart';
|
||||
import 'package:stackwallet/utilities/cfcolors.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
||||
import 'package:stackwallet/utilities/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart';
|
||||
import 'package:stackwallet/utilities/text_styles.dart';
|
||||
|
@ -29,7 +30,7 @@ class SyncingPreferencesView extends ConsumerWidget {
|
|||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
|
|
@ -5,6 +5,7 @@ import 'package:flutter_svg/svg.dart';
|
|||
import 'package:stackwallet/providers/providers.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/constants.dart';
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart';
|
||||
|
@ -26,7 +27,7 @@ class WalletSyncingOptionsView extends ConsumerWidget {
|
|||
.watch(walletsChangeNotifierProvider.select((value) => value.managers));
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: CFColors.almostWhite,
|
||||
backgroundColor: StackTheme.instance.color.background,
|
||||
appBar: AppBar(
|
||||
leading: AppBarBackButton(
|
||||
onPressed: () async {
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue