mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-05-02 10:52:17 +00:00
dark mode toggle and color theme persistence
This commit is contained in:
parent
598dfcbe38
commit
15739a22f8
164 changed files with 2232 additions and 1307 deletions
lib
main.dart
notifications
pages
add_wallet_views
add_wallet_view
create_or_restore_wallet_view
name_your_wallet_view
new_wallet_recovery_phrase_view
new_wallet_recovery_phrase_warning_view
restore_wallet_view
confirm_recovery_dialog.dart
restore_options_view
restore_options_view.dart
restore_wallet_view.dartsub_widgets
sub_widgets
verify_recovery_phrase_view
address_book_views
address_book_view.dart
subviews
exchange_view
confirm_change_now_send.dartedit_trade_note_view.dart
exchange_coin_selection
exchange_loading_overlay.dartexchange_step_views
exchange_view.dartsend_from_view.dartsub_widgets
trade_details_view.dartwallet_initiated_exchange_view.darthome_view
intro_view.dartloading_view.dartmanage_favorites_view
notification_views
pinpad_views
receive_view
send_view
settings_views/global_settings_view
about_view.dart
advanced_views
appearance_settings_view.dartcurrency_view.dartglobal_settings_view.darthidden_settings.dartlanguage_view.dartmanage_nodes_views
security_views
stack_backup_views
auto_backup_view.dartcreate_auto_backup_view.dartcreate_backup_information_view.dartcreate_backup_view.dart
dialogs
edit_auto_backup_view.dartrestore_from_encrypted_string_view.dartrestore_from_file_view.dartstack_backup_view.dartsub_views
sub_widgets
startup_preferences
support_view.dartsyncing_preferences_views
|
@ -51,13 +51,16 @@ import 'package:stackwallet/services/notifications_api.dart';
|
||||||
import 'package:stackwallet/services/notifications_service.dart';
|
import 'package:stackwallet/services/notifications_service.dart';
|
||||||
import 'package:stackwallet/services/trade_service.dart';
|
import 'package:stackwallet/services/trade_service.dart';
|
||||||
import 'package:stackwallet/services/wallets.dart';
|
import 'package:stackwallet/services/wallets.dart';
|
||||||
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/db_version_migration.dart';
|
import 'package:stackwallet/utilities/db_version_migration.dart';
|
||||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart';
|
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/prefs.dart';
|
import 'package:stackwallet/utilities/prefs.dart';
|
||||||
import 'package:stackwallet/utilities/theme/color_theme.dart';
|
import 'package:stackwallet/utilities/theme/color_theme.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/dark_colors.dart';
|
||||||
|
import 'package:stackwallet/utilities/theme/light_colors.dart';
|
||||||
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/util.dart';
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
import 'package:window_size/window_size.dart';
|
import 'package:window_size/window_size.dart';
|
||||||
|
|
||||||
|
@ -147,11 +150,11 @@ void main() async {
|
||||||
|
|
||||||
switch (colorScheme) {
|
switch (colorScheme) {
|
||||||
case "dark":
|
case "dark":
|
||||||
StackTheme.instance.setTheme(ThemeType.dark);
|
Assets.theme = ThemeType.dark;
|
||||||
break;
|
break;
|
||||||
case "light":
|
case "light":
|
||||||
default:
|
default:
|
||||||
StackTheme.instance.setTheme(ThemeType.light);
|
Assets.theme = ThemeType.light;
|
||||||
}
|
}
|
||||||
|
|
||||||
// SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
|
// SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
|
||||||
|
@ -367,8 +370,12 @@ class _MaterialAppWithThemeState extends ConsumerState<MaterialAppWithTheme>
|
||||||
_prefs = ref.read(prefsChangeNotifierProvider);
|
_prefs = ref.read(prefsChangeNotifierProvider);
|
||||||
_wallets = ref.read(walletsChangeNotifierProvider);
|
_wallets = ref.read(walletsChangeNotifierProvider);
|
||||||
|
|
||||||
if (Platform.isAndroid) {
|
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
ref.read(colorThemeProvider.state).state =
|
||||||
|
StackColors.fromStackColorTheme(
|
||||||
|
Assets.theme! == ThemeType.dark ? DarkColors() : LightColors());
|
||||||
|
|
||||||
|
if (Platform.isAndroid) {
|
||||||
// fetch open file if it exists
|
// fetch open file if it exists
|
||||||
await getOpenFile();
|
await getOpenFile();
|
||||||
|
|
||||||
|
@ -382,8 +389,8 @@ class _MaterialAppWithThemeState extends ConsumerState<MaterialAppWithTheme>
|
||||||
ref.read(openedFromSWBFileStringStateProvider.state).state = null;
|
ref.read(openedFromSWBFileStringStateProvider.state).state = null;
|
||||||
}
|
}
|
||||||
// ref.read(shouldShowLockscreenOnResumeStateProvider.state).state = false;
|
// ref.read(shouldShowLockscreenOnResumeStateProvider.state).state = false;
|
||||||
});
|
}
|
||||||
}
|
});
|
||||||
|
|
||||||
super.initState();
|
super.initState();
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:stackwallet/models/notification_model.dart';
|
import 'package:stackwallet/models/notification_model.dart';
|
||||||
import 'package:stackwallet/utilities/format.dart';
|
import 'package:stackwallet/utilities/format.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_container.dart';
|
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
|
||||||
|
@ -42,7 +42,9 @@ class NotificationCard extends StatelessWidget {
|
||||||
),
|
),
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
notification.iconAssetName,
|
notification.iconAssetName,
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
width: 24,
|
width: 24,
|
||||||
height: 24,
|
height: 24,
|
||||||
),
|
),
|
||||||
|
@ -83,7 +85,10 @@ class NotificationCard extends StatelessWidget {
|
||||||
if (notification.read)
|
if (notification.read)
|
||||||
Positioned.fill(
|
Positioned.fill(
|
||||||
child: RoundedContainer(
|
child: RoundedContainer(
|
||||||
color: StackTheme.instance.color.background.withOpacity(0.5),
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.background
|
||||||
|
.withOpacity(0.5),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
@ -4,7 +4,7 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
|
|
||||||
Future<dynamic> showFloatingFlushBar({
|
Future<dynamic> showFloatingFlushBar({
|
||||||
required FlushBarType type,
|
required FlushBarType type,
|
||||||
|
@ -19,16 +19,16 @@ Future<dynamic> showFloatingFlushBar({
|
||||||
Color fg;
|
Color fg;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case FlushBarType.success:
|
case FlushBarType.success:
|
||||||
fg = StackTheme.instance.color.snackBarTextSuccess;
|
fg = Theme.of(context).extension<StackColors>()!.snackBarTextSuccess;
|
||||||
bg = StackTheme.instance.color.snackBarBackSuccess;
|
bg = Theme.of(context).extension<StackColors>()!.snackBarBackSuccess;
|
||||||
break;
|
break;
|
||||||
case FlushBarType.info:
|
case FlushBarType.info:
|
||||||
fg = StackTheme.instance.color.snackBarTextInfo;
|
fg = Theme.of(context).extension<StackColors>()!.snackBarTextInfo;
|
||||||
bg = StackTheme.instance.color.snackBarBackInfo;
|
bg = Theme.of(context).extension<StackColors>()!.snackBarBackInfo;
|
||||||
break;
|
break;
|
||||||
case FlushBarType.warning:
|
case FlushBarType.warning:
|
||||||
fg = StackTheme.instance.color.snackBarTextError;
|
fg = Theme.of(context).extension<StackColors>()!.snackBarTextError;
|
||||||
bg = StackTheme.instance.color.snackBarBackError;
|
bg = Theme.of(context).extension<StackColors>()!.snackBarBackError;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
final bar = Flushbar<dynamic>(
|
final bar = Flushbar<dynamic>(
|
||||||
|
|
|
@ -9,7 +9,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/util.dart';
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
||||||
|
@ -118,7 +118,8 @@ class _AddWalletViewState extends State<AddWalletView> {
|
||||||
Assets.svg.search,
|
Assets.svg.search,
|
||||||
width: 24,
|
width: 24,
|
||||||
height: 24,
|
height: 24,
|
||||||
color: StackTheme.instance.color
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.textFieldDefaultSearchIconLeft,
|
.textFieldDefaultSearchIconLeft,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -188,7 +189,7 @@ class _AddWalletViewState extends State<AddWalletView> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
body: Container(
|
body: Container(
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(16),
|
padding: const EdgeInsets.all(16),
|
||||||
child: Column(
|
child: Column(
|
||||||
|
|
|
@ -6,7 +6,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/util.dart';
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
|
|
||||||
class CoinSelectItem extends ConsumerWidget {
|
class CoinSelectItem extends ConsumerWidget {
|
||||||
|
@ -28,13 +28,13 @@ class CoinSelectItem extends ConsumerWidget {
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
// color: selectedCoin == coin ? CFColors.selection : CFColors.white,
|
// color: selectedCoin == coin ? CFColors.selection : CFColors.white,
|
||||||
color: selectedCoin == coin
|
color: selectedCoin == coin
|
||||||
? StackTheme.instance.color.textFieldActiveBG
|
? Theme.of(context).extension<StackColors>()!.textFieldActiveBG
|
||||||
: StackTheme.instance.color.popupBG,
|
: Theme.of(context).extension<StackColors>()!.popupBG,
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(Constants.size.circularBorderRadius),
|
BorderRadius.circular(Constants.size.circularBorderRadius),
|
||||||
),
|
),
|
||||||
child: MaterialButton(
|
child: MaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
key: Key("coinSelectItemButtonKey_${coin.name}"),
|
key: Key("coinSelectItemButtonKey_${coin.name}"),
|
||||||
padding: isDesktop
|
padding: isDesktop
|
||||||
? const EdgeInsets.only(left: 24)
|
? const EdgeInsets.only(left: 24)
|
||||||
|
@ -78,7 +78,9 @@ class CoinSelectItem extends ConsumerWidget {
|
||||||
height: 24,
|
height: 24,
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
Assets.svg.check,
|
Assets.svg.check,
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -3,7 +3,7 @@ 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/pages/add_wallet_views/create_or_restore_wallet_view/create_or_restore_wallet_view.dart';
|
||||||
import 'package:stackwallet/providers/providers.dart';
|
import 'package:stackwallet/providers/providers.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
|
|
||||||
class AddWalletNextButton extends ConsumerWidget {
|
class AddWalletNextButton extends ConsumerWidget {
|
||||||
const AddWalletNextButton({
|
const AddWalletNextButton({
|
||||||
|
@ -34,8 +34,12 @@ class AddWalletNextButton extends ConsumerWidget {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
style: enabled
|
style: enabled
|
||||||
? StackTheme.instance.getPrimaryEnabledButtonColor(context)
|
? Theme.of(context)
|
||||||
: StackTheme.instance.getPrimaryDisabledButtonColor(context),
|
.extension<StackColors>()!
|
||||||
|
.getPrimaryEnabledButtonColor(context)
|
||||||
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.getPrimaryDisabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Next",
|
"Next",
|
||||||
style: isDesktop
|
style: isDesktop
|
||||||
|
|
|
@ -5,7 +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/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/pages_desktop_specific/home/my_stack_view/exit_to_my_stack_button.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/util.dart';
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
||||||
|
@ -81,7 +81,7 @@ class CreateOrRestoreWalletView extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
body: Container(
|
body: Container(
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(16),
|
padding: const EdgeInsets.all(16),
|
||||||
child: Column(
|
child: Column(
|
||||||
|
|
|
@ -3,7 +3,7 @@ import 'package:stackwallet/pages/add_wallet_views/name_your_wallet_view/name_yo
|
||||||
import 'package:stackwallet/utilities/enums/add_wallet_type_enum.dart';
|
import 'package:stackwallet/utilities/enums/add_wallet_type_enum.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:tuple/tuple.dart';
|
import 'package:tuple/tuple.dart';
|
||||||
|
|
||||||
class CreateWalletButtonGroup extends StatelessWidget {
|
class CreateWalletButtonGroup extends StatelessWidget {
|
||||||
|
@ -28,7 +28,9 @@ class CreateWalletButtonGroup extends StatelessWidget {
|
||||||
minWidth: isDesktop ? 480 : 0,
|
minWidth: isDesktop ? 480 : 0,
|
||||||
),
|
),
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
style: StackTheme.instance.getPrimaryEnabledButtonColor(context),
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.getPrimaryEnabledButtonColor(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pushNamed(
|
Navigator.of(context).pushNamed(
|
||||||
NameYourWalletView.routeName,
|
NameYourWalletView.routeName,
|
||||||
|
@ -55,7 +57,9 @@ class CreateWalletButtonGroup extends StatelessWidget {
|
||||||
minWidth: isDesktop ? 480 : 0,
|
minWidth: isDesktop ? 480 : 0,
|
||||||
),
|
),
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
style: StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.getSecondaryEnabledButtonColor(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pushNamed(
|
Navigator.of(context).pushNamed(
|
||||||
NameYourWalletView.routeName,
|
NameYourWalletView.routeName,
|
||||||
|
@ -70,7 +74,9 @@ class CreateWalletButtonGroup extends StatelessWidget {
|
||||||
style: isDesktop
|
style: isDesktop
|
||||||
? STextStyles.desktopButtonSecondaryEnabled(context)
|
? STextStyles.desktopButtonSecondaryEnabled(context)
|
||||||
: STextStyles.button(context).copyWith(
|
: STextStyles.button(context).copyWith(
|
||||||
color: StackTheme.instance.color.accentColorDark),
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -15,7 +15,7 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/name_generator.dart';
|
import 'package:stackwallet/utilities/name_generator.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/util.dart';
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
||||||
|
@ -125,7 +125,7 @@ class _NameYourWalletViewState extends ConsumerState<NameYourWalletView> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
body: Container(
|
body: Container(
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(16),
|
padding: const EdgeInsets.all(16),
|
||||||
child: LayoutBuilder(
|
child: LayoutBuilder(
|
||||||
|
@ -268,7 +268,9 @@ class _NameYourWalletViewState extends ConsumerState<NameYourWalletView> {
|
||||||
"Roll the dice to pick a random name.",
|
"Roll the dice to pick a random name.",
|
||||||
style: isDesktop
|
style: isDesktop
|
||||||
? STextStyles.desktopTextExtraSmall(context).copyWith(
|
? STextStyles.desktopTextExtraSmall(context).copyWith(
|
||||||
color: StackTheme.instance.color.textSubtitle1,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textSubtitle1,
|
||||||
)
|
)
|
||||||
: STextStyles.itemSubtitle(context),
|
: STextStyles.itemSubtitle(context),
|
||||||
),
|
),
|
||||||
|
@ -340,8 +342,12 @@ class _NameYourWalletViewState extends ConsumerState<NameYourWalletView> {
|
||||||
}
|
}
|
||||||
: null,
|
: null,
|
||||||
style: _nextEnabled
|
style: _nextEnabled
|
||||||
? StackTheme.instance.getPrimaryEnabledButtonColor(context)
|
? Theme.of(context)
|
||||||
: StackTheme.instance.getPrimaryDisabledButtonColor(context),
|
.extension<StackColors>()!
|
||||||
|
.getPrimaryEnabledButtonColor(context)
|
||||||
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.getPrimaryDisabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Next",
|
"Next",
|
||||||
style: isDesktop
|
style: isDesktop
|
||||||
|
|
|
@ -18,7 +18,7 @@ import 'package:stackwallet/utilities/clipboard_interface.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/util.dart';
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
||||||
|
@ -141,13 +141,17 @@ class _NewWalletRecoveryPhraseViewState
|
||||||
child: AspectRatio(
|
child: AspectRatio(
|
||||||
aspectRatio: 1,
|
aspectRatio: 1,
|
||||||
child: AppBarIconButton(
|
child: AppBarIconButton(
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.background,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
icon: SvgPicture.asset(
|
icon: SvgPicture.asset(
|
||||||
Assets.svg.copy,
|
Assets.svg.copy,
|
||||||
width: 24,
|
width: 24,
|
||||||
height: 24,
|
height: 24,
|
||||||
color: StackTheme.instance.color.topNavIconPrimary,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.topNavIconPrimary,
|
||||||
),
|
),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
await _copy();
|
await _copy();
|
||||||
|
@ -158,7 +162,7 @@ class _NewWalletRecoveryPhraseViewState
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
body: Container(
|
body: Container(
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
width: isDesktop ? 600 : null,
|
width: isDesktop ? 600 : null,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: isDesktop
|
padding: isDesktop
|
||||||
|
@ -195,8 +199,10 @@ class _NewWalletRecoveryPhraseViewState
|
||||||
Container(
|
Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: isDesktop
|
color: isDesktop
|
||||||
? StackTheme.instance.color.background
|
? Theme.of(context)
|
||||||
: StackTheme.instance.color.popupBG,
|
.extension<StackColors>()!
|
||||||
|
.background
|
||||||
|
: Theme.of(context).extension<StackColors>()!.popupBG,
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius),
|
Constants.size.circularBorderRadius),
|
||||||
),
|
),
|
||||||
|
@ -210,8 +216,9 @@ class _NewWalletRecoveryPhraseViewState
|
||||||
style: isDesktop
|
style: isDesktop
|
||||||
? STextStyles.desktopSubtitleH2(context)
|
? STextStyles.desktopSubtitleH2(context)
|
||||||
: STextStyles.label(context).copyWith(
|
: STextStyles.label(context).copyWith(
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.accentColorDark),
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -286,7 +293,8 @@ class _NewWalletRecoveryPhraseViewState
|
||||||
arguments: Tuple2(_manager, _mnemonic),
|
arguments: Tuple2(_manager, _mnemonic),
|
||||||
));
|
));
|
||||||
},
|
},
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"I saved my recovery phrase",
|
"I saved my recovery phrase",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
|
||||||
class MnemonicTableItem extends StatelessWidget {
|
class MnemonicTableItem extends StatelessWidget {
|
||||||
|
@ -29,10 +29,14 @@ class MnemonicTableItem extends StatelessWidget {
|
||||||
number.toString(),
|
number.toString(),
|
||||||
style: isDesktop
|
style: isDesktop
|
||||||
? STextStyles.desktopTextExtraSmall(context).copyWith(
|
? STextStyles.desktopTextExtraSmall(context).copyWith(
|
||||||
color: StackTheme.instance.color.textSubtitle2,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textSubtitle2,
|
||||||
)
|
)
|
||||||
: STextStyles.baseXS(context).copyWith(
|
: STextStyles.baseXS(context).copyWith(
|
||||||
color: StackTheme.instance.color.textSubtitle2,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textSubtitle2,
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -43,7 +47,7 @@ class MnemonicTableItem extends StatelessWidget {
|
||||||
word,
|
word,
|
||||||
style: isDesktop
|
style: isDesktop
|
||||||
? STextStyles.desktopTextExtraSmall(context).copyWith(
|
? STextStyles.desktopTextExtraSmall(context).copyWith(
|
||||||
color: StackTheme.instance.color.textDark,
|
color: Theme.of(context).extension<StackColors>()!.textDark,
|
||||||
)
|
)
|
||||||
: STextStyles.baseXS(context),
|
: STextStyles.baseXS(context),
|
||||||
),
|
),
|
||||||
|
|
|
@ -13,7 +13,7 @@ import 'package:stackwallet/utilities/default_nodes.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/util.dart';
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
||||||
|
@ -270,9 +270,11 @@ class _NewWalletRecoveryPhraseWarningViewState
|
||||||
}
|
}
|
||||||
: null,
|
: null,
|
||||||
style: ref.read(checkBoxStateProvider.state).state
|
style: ref.read(checkBoxStateProvider.state).state
|
||||||
? StackTheme.instance
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonColor(context)
|
||||||
: StackTheme.instance
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"View recovery phrase",
|
"View recovery phrase",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
|
|
||||||
class ConfirmRecoveryDialog extends StatelessWidget {
|
class ConfirmRecoveryDialog extends StatelessWidget {
|
||||||
|
@ -20,7 +20,9 @@ class ConfirmRecoveryDialog extends StatelessWidget {
|
||||||
message:
|
message:
|
||||||
"Restoring your wallet may take a while. Please do not exit this screen once the process is started.",
|
"Restoring your wallet may take a while. Please do not exit this screen once the process is started.",
|
||||||
leftButton: TextButton(
|
leftButton: TextButton(
|
||||||
style: StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
style: STextStyles.itemSubtitle12(context),
|
style: STextStyles.itemSubtitle12(context),
|
||||||
|
@ -30,7 +32,9 @@ class ConfirmRecoveryDialog extends StatelessWidget {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: StackTheme.instance.getPrimaryEnabledButtonColor(context),
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.getPrimaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Restore",
|
"Restore",
|
||||||
style: STextStyles.button(context),
|
style: STextStyles.button(context),
|
||||||
|
|
|
@ -10,13 +10,14 @@ import 'package:stackwallet/pages/add_wallet_views/restore_wallet_view/restore_o
|
||||||
import 'package:stackwallet/pages/add_wallet_views/restore_wallet_view/restore_options_view/sub_widgets/restore_options_platform_layout.dart';
|
import 'package:stackwallet/pages/add_wallet_views/restore_wallet_view/restore_options_view/sub_widgets/restore_options_platform_layout.dart';
|
||||||
import 'package:stackwallet/pages/add_wallet_views/restore_wallet_view/restore_wallet_view.dart';
|
import 'package:stackwallet/pages/add_wallet_views/restore_wallet_view/restore_wallet_view.dart';
|
||||||
import 'package:stackwallet/pages/add_wallet_views/restore_wallet_view/sub_widgets/mnemonic_word_count_select_sheet.dart';
|
import 'package:stackwallet/pages/add_wallet_views/restore_wallet_view/sub_widgets/mnemonic_word_count_select_sheet.dart';
|
||||||
|
import 'package:stackwallet/providers/ui/color_theme_provider.dart';
|
||||||
import 'package:stackwallet/providers/ui/verify_recovery_phrase/mnemonic_word_count_state_provider.dart';
|
import 'package:stackwallet/providers/ui/verify_recovery_phrase/mnemonic_word_count_state_provider.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/format.dart';
|
import 'package:stackwallet/utilities/format.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/util.dart';
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
||||||
|
@ -50,9 +51,11 @@ class _RestoreOptionsViewState extends ConsumerState<RestoreOptionsView> {
|
||||||
|
|
||||||
final bool _nextEnabled = true;
|
final bool _nextEnabled = true;
|
||||||
DateTime _restoreFromDate = DateTime.fromMillisecondsSinceEpoch(0);
|
DateTime _restoreFromDate = DateTime.fromMillisecondsSinceEpoch(0);
|
||||||
|
late final Color baseColor;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
|
baseColor = ref.read(colorThemeProvider.state).state.textSubtitle2;
|
||||||
walletName = widget.walletName;
|
walletName = widget.walletName;
|
||||||
coin = widget.coin;
|
coin = widget.coin;
|
||||||
isDesktop = Util.isDesktop;
|
isDesktop = Util.isDesktop;
|
||||||
|
@ -70,43 +73,44 @@ class _RestoreOptionsViewState extends ConsumerState<RestoreOptionsView> {
|
||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
final _datePickerTextStyleBase = GoogleFonts.inter(
|
TextStyle get _datePickerTextStyleBase => GoogleFonts.inter(
|
||||||
color: StackTheme.instance.color.textSubtitle2,
|
color: baseColor,
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
fontWeight: FontWeight.w400,
|
fontWeight: FontWeight.w400,
|
||||||
letterSpacing: 0.5,
|
letterSpacing: 0.5,
|
||||||
);
|
);
|
||||||
MaterialRoundedDatePickerStyle _buildDatePickerStyle() {
|
MaterialRoundedDatePickerStyle _buildDatePickerStyle() {
|
||||||
return MaterialRoundedDatePickerStyle(
|
return MaterialRoundedDatePickerStyle(
|
||||||
paddingMonthHeader: const EdgeInsets.only(top: 11),
|
paddingMonthHeader: const EdgeInsets.only(top: 11),
|
||||||
colorArrowNext: StackTheme.instance.color.textSubtitle1,
|
colorArrowNext: Theme.of(context).extension<StackColors>()!.textSubtitle1,
|
||||||
colorArrowPrevious: StackTheme.instance.color.textSubtitle1,
|
colorArrowPrevious:
|
||||||
|
Theme.of(context).extension<StackColors>()!.textSubtitle1,
|
||||||
textStyleButtonNegative: _datePickerTextStyleBase.copyWith(
|
textStyleButtonNegative: _datePickerTextStyleBase.copyWith(
|
||||||
fontSize: 16, fontWeight: FontWeight.w600),
|
fontSize: 16, fontWeight: FontWeight.w600),
|
||||||
textStyleButtonPositive: _datePickerTextStyleBase.copyWith(
|
textStyleButtonPositive: _datePickerTextStyleBase.copyWith(
|
||||||
fontSize: 16, fontWeight: FontWeight.w600),
|
fontSize: 16, fontWeight: FontWeight.w600),
|
||||||
textStyleCurrentDayOnCalendar: _datePickerTextStyleBase.copyWith(
|
textStyleCurrentDayOnCalendar: _datePickerTextStyleBase.copyWith(
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context).extension<StackColors>()!.accentColorDark,
|
||||||
),
|
),
|
||||||
textStyleDayHeader: _datePickerTextStyleBase.copyWith(
|
textStyleDayHeader: _datePickerTextStyleBase.copyWith(
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context).extension<StackColors>()!.accentColorDark,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
),
|
),
|
||||||
textStyleDayOnCalendar: _datePickerTextStyleBase,
|
textStyleDayOnCalendar: _datePickerTextStyleBase,
|
||||||
textStyleDayOnCalendarDisabled: _datePickerTextStyleBase.copyWith(
|
textStyleDayOnCalendarDisabled: _datePickerTextStyleBase.copyWith(
|
||||||
color: StackTheme.instance.color.textSubtitle3,
|
color: Theme.of(context).extension<StackColors>()!.textSubtitle3,
|
||||||
),
|
),
|
||||||
textStyleDayOnCalendarSelected: _datePickerTextStyleBase.copyWith(
|
textStyleDayOnCalendarSelected: _datePickerTextStyleBase.copyWith(
|
||||||
color: StackTheme.instance.color.popupBG,
|
color: Theme.of(context).extension<StackColors>()!.popupBG,
|
||||||
),
|
),
|
||||||
textStyleMonthYearHeader: _datePickerTextStyleBase.copyWith(
|
textStyleMonthYearHeader: _datePickerTextStyleBase.copyWith(
|
||||||
color: StackTheme.instance.color.textSubtitle1,
|
color: Theme.of(context).extension<StackColors>()!.textSubtitle1,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
),
|
),
|
||||||
textStyleYearButton: _datePickerTextStyleBase.copyWith(
|
textStyleYearButton: _datePickerTextStyleBase.copyWith(
|
||||||
color: StackTheme.instance.color.textWhite,
|
color: Theme.of(context).extension<StackColors>()!.textWhite,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
),
|
),
|
||||||
|
@ -117,12 +121,12 @@ class _RestoreOptionsViewState extends ConsumerState<RestoreOptionsView> {
|
||||||
MaterialRoundedYearPickerStyle _buildYearPickerStyle() {
|
MaterialRoundedYearPickerStyle _buildYearPickerStyle() {
|
||||||
return MaterialRoundedYearPickerStyle(
|
return MaterialRoundedYearPickerStyle(
|
||||||
textStyleYear: _datePickerTextStyleBase.copyWith(
|
textStyleYear: _datePickerTextStyleBase.copyWith(
|
||||||
color: StackTheme.instance.color.textSubtitle2,
|
color: Theme.of(context).extension<StackColors>()!.textSubtitle2,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
),
|
),
|
||||||
textStyleYearSelected: _datePickerTextStyleBase.copyWith(
|
textStyleYearSelected: _datePickerTextStyleBase.copyWith(
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context).extension<StackColors>()!.accentColorDark,
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
),
|
),
|
||||||
|
@ -164,8 +168,8 @@ class _RestoreOptionsViewState extends ConsumerState<RestoreOptionsView> {
|
||||||
initialDate: DateTime.now(),
|
initialDate: DateTime.now(),
|
||||||
height: height * 0.5,
|
height: height * 0.5,
|
||||||
theme: ThemeData(
|
theme: ThemeData(
|
||||||
primarySwatch:
|
primarySwatch: Util.createMaterialColor(
|
||||||
Util.createMaterialColor(StackTheme.instance.color.accentColorDark),
|
Theme.of(context).extension<StackColors>()!.accentColorDark),
|
||||||
),
|
),
|
||||||
//TODO pick a better initial date
|
//TODO pick a better initial date
|
||||||
// 2007 chosen as that is just before bitcoin launched
|
// 2007 chosen as that is just before bitcoin launched
|
||||||
|
@ -264,7 +268,9 @@ class _RestoreOptionsViewState extends ConsumerState<RestoreOptionsView> {
|
||||||
"Choose start date",
|
"Choose start date",
|
||||||
style: isDesktop
|
style: isDesktop
|
||||||
? STextStyles.desktopTextExtraSmall(context).copyWith(
|
? STextStyles.desktopTextExtraSmall(context).copyWith(
|
||||||
color: StackTheme.instance.color.textDark3,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textDark3,
|
||||||
)
|
)
|
||||||
: STextStyles.smallMed12(context),
|
: STextStyles.smallMed12(context),
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
|
@ -293,7 +299,9 @@ class _RestoreOptionsViewState extends ConsumerState<RestoreOptionsView> {
|
||||||
"Choose the date you made the wallet (approximate is fine)",
|
"Choose the date you made the wallet (approximate is fine)",
|
||||||
style: isDesktop
|
style: isDesktop
|
||||||
? STextStyles.desktopTextExtraSmall(context).copyWith(
|
? STextStyles.desktopTextExtraSmall(context).copyWith(
|
||||||
color: StackTheme.instance.color.textSubtitle1,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textSubtitle1,
|
||||||
)
|
)
|
||||||
: STextStyles.smallMed12(context).copyWith(
|
: STextStyles.smallMed12(context).copyWith(
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
|
@ -309,7 +317,9 @@ class _RestoreOptionsViewState extends ConsumerState<RestoreOptionsView> {
|
||||||
"Choose recovery phrase length",
|
"Choose recovery phrase length",
|
||||||
style: isDesktop
|
style: isDesktop
|
||||||
? STextStyles.desktopTextExtraSmall(context).copyWith(
|
? STextStyles.desktopTextExtraSmall(context).copyWith(
|
||||||
color: StackTheme.instance.color.textDark3,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textDark3,
|
||||||
)
|
)
|
||||||
: STextStyles.smallMed12(context),
|
: STextStyles.smallMed12(context),
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
|
@ -344,21 +354,26 @@ class _RestoreOptionsViewState extends ConsumerState<RestoreOptionsView> {
|
||||||
Assets.svg.chevronDown,
|
Assets.svg.chevronDown,
|
||||||
width: 12,
|
width: 12,
|
||||||
height: 6,
|
height: 6,
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textFieldActiveSearchIconRight,
|
.extension<StackColors>()!
|
||||||
|
.textFieldActiveSearchIconRight,
|
||||||
),
|
),
|
||||||
buttonPadding: const EdgeInsets.symmetric(
|
buttonPadding: const EdgeInsets.symmetric(
|
||||||
horizontal: 16,
|
horizontal: 16,
|
||||||
vertical: 8,
|
vertical: 8,
|
||||||
),
|
),
|
||||||
buttonDecoration: BoxDecoration(
|
buttonDecoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.textFieldDefaultBG,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textFieldDefaultBG,
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
dropdownDecoration: BoxDecoration(
|
dropdownDecoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.textFieldDefaultBG,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textFieldDefaultBG,
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
|
|
|
@ -5,7 +5,7 @@ import 'package:stackwallet/providers/ui/verify_recovery_phrase/mnemonic_word_co
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
|
|
||||||
class MobileMnemonicLengthSelector extends ConsumerWidget {
|
class MobileMnemonicLengthSelector extends ConsumerWidget {
|
||||||
const MobileMnemonicLengthSelector({
|
const MobileMnemonicLengthSelector({
|
||||||
|
@ -29,7 +29,7 @@ class MobileMnemonicLengthSelector extends ConsumerWidget {
|
||||||
horizontal: 12,
|
horizontal: 12,
|
||||||
),
|
),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
splashColor: StackTheme.instance.color.highlight,
|
splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
|
@ -47,7 +47,8 @@ class MobileMnemonicLengthSelector extends ConsumerWidget {
|
||||||
Assets.svg.chevronDown,
|
Assets.svg.chevronDown,
|
||||||
width: 8,
|
width: 8,
|
||||||
height: 4,
|
height: 4,
|
||||||
color: StackTheme.instance.color.textSubtitle2,
|
color:
|
||||||
|
Theme.of(context).extension<StackColors>()!.textSubtitle2,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
|
|
||||||
class RestoreFromDatePicker extends StatefulWidget {
|
class RestoreFromDatePicker extends StatefulWidget {
|
||||||
const RestoreFromDatePicker({Key? key, required this.onTap})
|
const RestoreFromDatePicker({Key? key, required this.onTap})
|
||||||
|
@ -50,7 +50,7 @@ class _RestoreFromDatePickerState extends State<RestoreFromDatePicker> {
|
||||||
),
|
),
|
||||||
SvgPicture.asset(
|
SvgPicture.asset(
|
||||||
Assets.svg.calendar,
|
Assets.svg.calendar,
|
||||||
color: StackTheme.instance.color.textDark3,
|
color: Theme.of(context).extension<StackColors>()!.textDark3,
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
|
|
||||||
class RestoreOptionsNextButton extends StatelessWidget {
|
class RestoreOptionsNextButton extends StatelessWidget {
|
||||||
const RestoreOptionsNextButton({
|
const RestoreOptionsNextButton({
|
||||||
|
@ -21,8 +21,12 @@ class RestoreOptionsNextButton extends StatelessWidget {
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: onPressed,
|
onPressed: onPressed,
|
||||||
style: onPressed != null
|
style: onPressed != null
|
||||||
? StackTheme.instance.getPrimaryEnabledButtonColor(context)
|
? Theme.of(context)
|
||||||
: StackTheme.instance.getPrimaryDisabledButtonColor(context),
|
.extension<StackColors>()!
|
||||||
|
.getPrimaryEnabledButtonColor(context)
|
||||||
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.getPrimaryDisabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Next",
|
"Next",
|
||||||
style: STextStyles.button(context),
|
style: STextStyles.button(context),
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
|
|
||||||
class RestoreOptionsPlatformLayout extends StatelessWidget {
|
class RestoreOptionsPlatformLayout extends StatelessWidget {
|
||||||
const RestoreOptionsPlatformLayout({
|
const RestoreOptionsPlatformLayout({
|
||||||
|
@ -17,7 +17,7 @@ class RestoreOptionsPlatformLayout extends StatelessWidget {
|
||||||
return child;
|
return child;
|
||||||
} else {
|
} else {
|
||||||
return Container(
|
return Container(
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(16),
|
padding: const EdgeInsets.all(16),
|
||||||
child: LayoutBuilder(
|
child: LayoutBuilder(
|
||||||
|
|
|
@ -33,7 +33,7 @@ import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/enums/form_input_status_enum.dart';
|
import 'package:stackwallet/utilities/enums/form_input_status_enum.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/util.dart';
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/icon_widgets/clipboard_icon.dart';
|
import 'package:stackwallet/widgets/icon_widgets/clipboard_icon.dart';
|
||||||
|
@ -354,27 +354,35 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
||||||
Widget? suffixIcon;
|
Widget? suffixIcon;
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case FormInputStatus.empty:
|
case FormInputStatus.empty:
|
||||||
color = StackTheme.instance.color.textFieldDefaultBG;
|
color = Theme.of(context).extension<StackColors>()!.textFieldDefaultBG;
|
||||||
prefixColor = StackTheme.instance.color.textSubtitle2;
|
prefixColor = Theme.of(context).extension<StackColors>()!.textSubtitle2;
|
||||||
break;
|
break;
|
||||||
case FormInputStatus.invalid:
|
case FormInputStatus.invalid:
|
||||||
color = StackTheme.instance.color.textFieldErrorBG;
|
color = Theme.of(context).extension<StackColors>()!.textFieldErrorBG;
|
||||||
prefixColor = StackTheme.instance.color.textFieldErrorSearchIconLeft;
|
prefixColor = Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textFieldErrorSearchIconLeft;
|
||||||
suffixIcon = SvgPicture.asset(
|
suffixIcon = SvgPicture.asset(
|
||||||
Assets.svg.alertCircle,
|
Assets.svg.alertCircle,
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
color: StackTheme.instance.color.textFieldErrorSearchIconRight,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textFieldErrorSearchIconRight,
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case FormInputStatus.valid:
|
case FormInputStatus.valid:
|
||||||
color = StackTheme.instance.color.textFieldSuccessBG;
|
color = Theme.of(context).extension<StackColors>()!.textFieldSuccessBG;
|
||||||
prefixColor = StackTheme.instance.color.textFieldSuccessSearchIconLeft;
|
prefixColor = Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textFieldSuccessSearchIconLeft;
|
||||||
suffixIcon = SvgPicture.asset(
|
suffixIcon = SvgPicture.asset(
|
||||||
Assets.svg.checkCircle,
|
Assets.svg.checkCircle,
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
color: StackTheme.instance.color.textFieldSuccessSearchIconRight,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textFieldSuccessSearchIconRight,
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -547,11 +555,13 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
||||||
key: const Key("restoreWalletViewQrCodeButton"),
|
key: const Key("restoreWalletViewQrCodeButton"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
icon: QrCodeIcon(
|
icon: QrCodeIcon(
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
),
|
),
|
||||||
onPressed: scanMnemonicQr,
|
onPressed: scanMnemonicQr,
|
||||||
),
|
),
|
||||||
|
@ -569,11 +579,13 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
||||||
key: const Key("restoreWalletPasteButton"),
|
key: const Key("restoreWalletPasteButton"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
icon: ClipboardIcon(
|
icon: ClipboardIcon(
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
),
|
),
|
||||||
onPressed: pasteMnemonic,
|
onPressed: pasteMnemonic,
|
||||||
),
|
),
|
||||||
|
@ -582,7 +594,7 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
body: Container(
|
body: Container(
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(12.0),
|
padding: const EdgeInsets.all(12.0),
|
||||||
child: Column(
|
child: Column(
|
||||||
|
@ -654,7 +666,9 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
||||||
},
|
},
|
||||||
controller: _controllers[i - 1],
|
controller: _controllers[i - 1],
|
||||||
style: STextStyles.field(context).copyWith(
|
style: STextStyles.field(context).copyWith(
|
||||||
color: StackTheme.instance.color.overlay,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.overlay,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -672,8 +686,9 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
style:
|
style:
|
||||||
STextStyles.label(context).copyWith(
|
STextStyles.label(context).copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textError,
|
.extension<StackColors>()!
|
||||||
|
.textError,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -685,7 +700,8 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
||||||
top: 8.0,
|
top: 8.0,
|
||||||
),
|
),
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonColor(context),
|
||||||
onPressed: requestRestore,
|
onPressed: requestRestore,
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|
|
@ -3,7 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:stackwallet/providers/ui/verify_recovery_phrase/mnemonic_word_count_state_provider.dart';
|
import 'package:stackwallet/providers/ui/verify_recovery_phrase/mnemonic_word_count_state_provider.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
|
|
||||||
class MnemonicWordCountSelectSheet extends ConsumerWidget {
|
class MnemonicWordCountSelectSheet extends ConsumerWidget {
|
||||||
const MnemonicWordCountSelectSheet({
|
const MnemonicWordCountSelectSheet({
|
||||||
|
@ -23,7 +23,7 @@ class MnemonicWordCountSelectSheet extends ConsumerWidget {
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.popupBG,
|
color: Theme.of(context).extension<StackColors>()!.popupBG,
|
||||||
borderRadius: const BorderRadius.vertical(
|
borderRadius: const BorderRadius.vertical(
|
||||||
top: Radius.circular(20),
|
top: Radius.circular(20),
|
||||||
),
|
),
|
||||||
|
@ -42,7 +42,9 @@ class MnemonicWordCountSelectSheet extends ConsumerWidget {
|
||||||
Center(
|
Center(
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.textFieldDefaultBG,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textFieldDefaultBG,
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
|
@ -96,8 +98,9 @@ class MnemonicWordCountSelectSheet extends ConsumerWidget {
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
child: Radio(
|
child: Radio(
|
||||||
activeColor: StackTheme
|
activeColor: Theme.of(context)
|
||||||
.instance.color.radioButtonIconEnabled,
|
.extension<StackColors>()!
|
||||||
|
.radioButtonIconEnabled,
|
||||||
value: lengthOptions[i],
|
value: lengthOptions[i],
|
||||||
groupValue: ref
|
groupValue: ref
|
||||||
.watch(mnemonicWordCountStateProvider
|
.watch(mnemonicWordCountStateProvider
|
||||||
|
|
|
@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:stackwallet/providers/providers.dart';
|
import 'package:stackwallet/providers/providers.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
|
|
||||||
class RestoreFailedDialog extends ConsumerStatefulWidget {
|
class RestoreFailedDialog extends ConsumerStatefulWidget {
|
||||||
|
@ -45,7 +45,9 @@ class _RestoreFailedDialogState extends ConsumerState<RestoreFailedDialog> {
|
||||||
title: "Restore failed",
|
title: "Restore failed",
|
||||||
message: errorMessage,
|
message: errorMessage,
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Ok",
|
"Ok",
|
||||||
style: STextStyles.itemSubtitle12(context),
|
style: STextStyles.itemSubtitle12(context),
|
||||||
|
|
|
@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
|
|
||||||
class RestoreSucceededDialog extends StatelessWidget {
|
class RestoreSucceededDialog extends StatelessWidget {
|
||||||
|
@ -17,10 +17,12 @@ class RestoreSucceededDialog extends StatelessWidget {
|
||||||
Assets.svg.checkCircle,
|
Assets.svg.checkCircle,
|
||||||
width: 24,
|
width: 24,
|
||||||
height: 24,
|
height: 24,
|
||||||
color: StackTheme.instance.color.accentColorGreen,
|
color: Theme.of(context).extension<StackColors>()!.accentColorGreen,
|
||||||
),
|
),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Ok",
|
"Ok",
|
||||||
style: STextStyles.itemSubtitle12(context),
|
style: STextStyles.itemSubtitle12(context),
|
||||||
|
|
|
@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
|
|
||||||
class RestoringDialog extends StatefulWidget {
|
class RestoringDialog extends StatefulWidget {
|
||||||
|
@ -62,10 +62,13 @@ class _RestoringDialogState extends State<RestoringDialog>
|
||||||
child: SvgPicture.asset(Assets.svg.arrowRotate3,
|
child: SvgPicture.asset(Assets.svg.arrowRotate3,
|
||||||
width: 24,
|
width: 24,
|
||||||
height: 24,
|
height: 24,
|
||||||
color: StackTheme.instance.color.accentColorDark),
|
color:
|
||||||
|
Theme.of(context).extension<StackColors>()!.accentColorDark),
|
||||||
),
|
),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
style: STextStyles.itemSubtitle12(context),
|
style: STextStyles.itemSubtitle12(context),
|
||||||
|
|
|
@ -3,7 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:stackwallet/providers/providers.dart';
|
import 'package:stackwallet/providers/providers.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
|
|
||||||
class WordTableItem extends ConsumerWidget {
|
class WordTableItem extends ConsumerWidget {
|
||||||
const WordTableItem({
|
const WordTableItem({
|
||||||
|
@ -25,14 +25,14 @@ class WordTableItem extends ConsumerWidget {
|
||||||
return Container(
|
return Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: selectedWord == word
|
color: selectedWord == word
|
||||||
? StackTheme.instance.color.snackBarBackInfo
|
? Theme.of(context).extension<StackColors>()!.snackBarBackInfo
|
||||||
: StackTheme.instance.color.popupBG,
|
: Theme.of(context).extension<StackColors>()!.popupBG,
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: MaterialButton(
|
child: MaterialButton(
|
||||||
splashColor: StackTheme.instance.color.highlight,
|
splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
key: Key("coinSelectItemButtonKey_$word"),
|
key: Key("coinSelectItemButtonKey_$word"),
|
||||||
padding: isDesktop
|
padding: isDesktop
|
||||||
? const EdgeInsets.symmetric(
|
? const EdgeInsets.symmetric(
|
||||||
|
@ -56,7 +56,8 @@ class WordTableItem extends ConsumerWidget {
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: isDesktop
|
style: isDesktop
|
||||||
? STextStyles.desktopTextExtraSmall(context).copyWith(
|
? STextStyles.desktopTextExtraSmall(context).copyWith(
|
||||||
color: StackTheme.instance.color.textDark,
|
color:
|
||||||
|
Theme.of(context).extension<StackColors>()!.textDark,
|
||||||
)
|
)
|
||||||
: STextStyles.baseXS(context),
|
: STextStyles.baseXS(context),
|
||||||
),
|
),
|
||||||
|
|
|
@ -15,7 +15,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/util.dart';
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
||||||
|
@ -263,7 +263,9 @@ class _VerifyRecoveryPhraseViewState
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.textFieldDefaultBG,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textFieldDefaultBG,
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius),
|
Constants.size.circularBorderRadius),
|
||||||
),
|
),
|
||||||
|
@ -322,9 +324,11 @@ class _VerifyRecoveryPhraseViewState
|
||||||
}
|
}
|
||||||
: null,
|
: null,
|
||||||
style: selectedWord.isNotEmpty
|
style: selectedWord.isNotEmpty
|
||||||
? StackTheme.instance
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonColor(context)
|
||||||
: StackTheme.instance
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonColor(context),
|
||||||
child: isDesktop
|
child: isDesktop
|
||||||
? Text(
|
? Text(
|
||||||
|
|
|
@ -12,7 +12,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/address_book_card.dart';
|
import 'package:stackwallet/widgets/address_book_card.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||||
|
@ -102,7 +102,7 @@ class _AddressBookViewState extends ConsumerState<AddressBookView> {
|
||||||
addressBookServiceProvider.select((value) => value.addressBookEntries));
|
addressBookServiceProvider.select((value) => value.addressBookEntries));
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -126,10 +126,12 @@ class _AddressBookViewState extends ConsumerState<AddressBookView> {
|
||||||
key: const Key("addressBookFilterViewButton"),
|
key: const Key("addressBookFilterViewButton"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
icon: SvgPicture.asset(
|
icon: SvgPicture.asset(
|
||||||
Assets.svg.filter,
|
Assets.svg.filter,
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
),
|
),
|
||||||
|
@ -153,10 +155,12 @@ class _AddressBookViewState extends ConsumerState<AddressBookView> {
|
||||||
key: const Key("addressBookAddNewContactViewButton"),
|
key: const Key("addressBookAddNewContactViewButton"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
icon: SvgPicture.asset(
|
icon: SvgPicture.asset(
|
||||||
Assets.svg.plus,
|
Assets.svg.plus,
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
),
|
),
|
||||||
|
|
|
@ -14,7 +14,7 @@ import 'package:stackwallet/utilities/barcode_scanner_interface.dart';
|
||||||
import 'package:stackwallet/utilities/clipboard_interface.dart';
|
import 'package:stackwallet/utilities/clipboard_interface.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/emoji_select_sheet.dart';
|
import 'package:stackwallet/widgets/emoji_select_sheet.dart';
|
||||||
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||||
|
@ -93,7 +93,7 @@ class _AddAddressBookEntryViewState
|
||||||
debugPrint("BUILD: $runtimeType");
|
debugPrint("BUILD: $runtimeType");
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -123,12 +123,16 @@ class _AddAddressBookEntryViewState
|
||||||
key: const Key("addAddressBookEntryFavoriteButtonKey"),
|
key: const Key("addAddressBookEntryFavoriteButtonKey"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
icon: SvgPicture.asset(
|
icon: SvgPicture.asset(
|
||||||
Assets.svg.star,
|
Assets.svg.star,
|
||||||
color: _isFavorite
|
color: _isFavorite
|
||||||
? StackTheme.instance.color.favoriteStarActive
|
? Theme.of(context)
|
||||||
: StackTheme.instance.color.favoriteStarInactive,
|
.extension<StackColors>()!
|
||||||
|
.favoriteStarActive
|
||||||
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.favoriteStarInactive,
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
),
|
),
|
||||||
|
@ -200,8 +204,9 @@ class _AddAddressBookEntryViewState
|
||||||
width: 48,
|
width: 48,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(24),
|
borderRadius: BorderRadius.circular(24),
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textFieldActiveBG,
|
.extension<StackColors>()!
|
||||||
|
.textFieldActiveBG,
|
||||||
),
|
),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: _selectedEmoji == null
|
child: _selectedEmoji == null
|
||||||
|
@ -224,21 +229,24 @@ class _AddAddressBookEntryViewState
|
||||||
width: 14,
|
width: 14,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(14),
|
borderRadius: BorderRadius.circular(14),
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorDark),
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: _selectedEmoji == null
|
child: _selectedEmoji == null
|
||||||
? SvgPicture.asset(
|
? SvgPicture.asset(
|
||||||
Assets.svg.plus,
|
Assets.svg.plus,
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textWhite,
|
.extension<StackColors>()!
|
||||||
|
.textWhite,
|
||||||
width: 12,
|
width: 12,
|
||||||
height: 12,
|
height: 12,
|
||||||
)
|
)
|
||||||
: SvgPicture.asset(
|
: SvgPicture.asset(
|
||||||
Assets.svg.thickX,
|
Assets.svg.thickX,
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textWhite,
|
.extension<StackColors>()!
|
||||||
|
.textWhite,
|
||||||
width: 8,
|
width: 8,
|
||||||
height: 8,
|
height: 8,
|
||||||
),
|
),
|
||||||
|
@ -343,13 +351,15 @@ class _AddAddressBookEntryViewState
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorDark),
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
if (FocusScope.of(context).hasFocus) {
|
if (FocusScope.of(context).hasFocus) {
|
||||||
|
@ -384,9 +394,11 @@ class _AddAddressBookEntryViewState
|
||||||
|
|
||||||
return TextButton(
|
return TextButton(
|
||||||
style: shouldEnableSave
|
style: shouldEnableSave
|
||||||
? StackTheme.instance
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonColor(context)
|
||||||
: StackTheme.instance
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(
|
.getPrimaryDisabledButtonColor(
|
||||||
context),
|
context),
|
||||||
onPressed: shouldEnableSave
|
onPressed: shouldEnableSave
|
||||||
|
|
|
@ -11,7 +11,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/barcode_scanner_interface.dart';
|
import 'package:stackwallet/utilities/barcode_scanner_interface.dart';
|
||||||
import 'package:stackwallet/utilities/clipboard_interface.dart';
|
import 'package:stackwallet/utilities/clipboard_interface.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
|
|
||||||
class AddNewContactAddressView extends ConsumerStatefulWidget {
|
class AddNewContactAddressView extends ConsumerStatefulWidget {
|
||||||
|
@ -56,7 +56,7 @@ class _AddNewContactAddressViewState
|
||||||
.select((value) => value.getContactById(contactId)));
|
.select((value) => value.getContactById(contactId)));
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -99,8 +99,9 @@ class _AddNewContactAddressViewState
|
||||||
width: 48,
|
width: 48,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(24),
|
borderRadius: BorderRadius.circular(24),
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.textFieldActiveBG,
|
.extension<StackColors>()!
|
||||||
|
.textFieldActiveBG,
|
||||||
),
|
),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: contact.emojiChar == null
|
child: contact.emojiChar == null
|
||||||
|
@ -145,13 +146,15 @@ class _AddNewContactAddressViewState
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorDark),
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
if (FocusScope.of(context).hasFocus) {
|
if (FocusScope.of(context).hasFocus) {
|
||||||
|
@ -176,10 +179,12 @@ class _AddNewContactAddressViewState
|
||||||
|
|
||||||
return TextButton(
|
return TextButton(
|
||||||
style: shouldEnableSave
|
style: shouldEnableSave
|
||||||
? StackTheme.instance
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(
|
.getPrimaryEnabledButtonColor(
|
||||||
context)
|
context)
|
||||||
: StackTheme.instance
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(
|
.getPrimaryDisabledButtonColor(
|
||||||
context),
|
context),
|
||||||
onPressed: shouldEnableSave
|
onPressed: shouldEnableSave
|
||||||
|
|
|
@ -4,7 +4,7 @@ import 'package:stackwallet/providers/global/prefs_provider.dart';
|
||||||
import 'package:stackwallet/providers/ui/address_book_providers/address_book_filter_provider.dart';
|
import 'package:stackwallet/providers/ui/address_book_providers/address_book_filter_provider.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
|
||||||
|
@ -42,9 +42,9 @@ class _AddressBookFilterViewState extends ConsumerState<AddressBookFilterView> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
|
|
|
@ -6,7 +6,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
|
|
||||||
class CoinSelectSheet extends StatelessWidget {
|
class CoinSelectSheet extends StatelessWidget {
|
||||||
const CoinSelectSheet({Key? key}) : super(key: key);
|
const CoinSelectSheet({Key? key}) : super(key: key);
|
||||||
|
@ -18,7 +18,7 @@ class CoinSelectSheet extends StatelessWidget {
|
||||||
coins_.remove(Coin.firoTestNet);
|
coins_.remove(Coin.firoTestNet);
|
||||||
return Container(
|
return Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.popupBG,
|
color: Theme.of(context).extension<StackColors>()!.popupBG,
|
||||||
borderRadius: const BorderRadius.vertical(
|
borderRadius: const BorderRadius.vertical(
|
||||||
top: Radius.circular(20),
|
top: Radius.circular(20),
|
||||||
),
|
),
|
||||||
|
@ -39,7 +39,9 @@ class CoinSelectSheet extends StatelessWidget {
|
||||||
Center(
|
Center(
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.textFieldDefaultBG,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textFieldDefaultBG,
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
|
@ -77,7 +79,7 @@ class CoinSelectSheet extends StatelessWidget {
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 4),
|
padding: const EdgeInsets.symmetric(vertical: 4),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop(coin);
|
Navigator.of(context).pop(coin);
|
||||||
},
|
},
|
||||||
|
|
|
@ -17,7 +17,7 @@ import 'package:stackwallet/utilities/clipboard_interface.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/blue_text_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/blue_text_button.dart';
|
||||||
import 'package:stackwallet/widgets/loading_indicator.dart';
|
import 'package:stackwallet/widgets/loading_indicator.dart';
|
||||||
|
@ -105,7 +105,7 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
||||||
.select((value) => value.getContactById(_contactId)));
|
.select((value) => value.getContactById(_contactId)));
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -129,12 +129,16 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
||||||
key: const Key("contactDetails"),
|
key: const Key("contactDetails"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
icon: SvgPicture.asset(
|
icon: SvgPicture.asset(
|
||||||
Assets.svg.star,
|
Assets.svg.star,
|
||||||
color: _contact.isFavorite
|
color: _contact.isFavorite
|
||||||
? StackTheme.instance.color.favoriteStarActive
|
? Theme.of(context)
|
||||||
: StackTheme.instance.color.favoriteStarInactive,
|
.extension<StackColors>()!
|
||||||
|
.favoriteStarActive
|
||||||
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.favoriteStarInactive,
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
),
|
),
|
||||||
|
@ -160,10 +164,12 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
||||||
key: const Key("contactDetailsViewDeleteContactButtonKey"),
|
key: const Key("contactDetailsViewDeleteContactButtonKey"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
icon: SvgPicture.asset(
|
icon: SvgPicture.asset(
|
||||||
Assets.svg.trash,
|
Assets.svg.trash,
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
),
|
),
|
||||||
|
@ -176,7 +182,8 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
||||||
title: "Delete ${_contact.name}?",
|
title: "Delete ${_contact.name}?",
|
||||||
message: "Contact will be deleted permanently!",
|
message: "Contact will be deleted permanently!",
|
||||||
leftButton: TextButton(
|
leftButton: TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
|
@ -187,7 +194,8 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Delete",
|
"Delete",
|
||||||
|
@ -234,7 +242,9 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
||||||
width: 48,
|
width: 48,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(24),
|
borderRadius: BorderRadius.circular(24),
|
||||||
color: StackTheme.instance.color.textFieldActiveBG,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textFieldActiveBG,
|
||||||
),
|
),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: _contact.emojiChar == null
|
child: _contact.emojiChar == null
|
||||||
|
@ -268,7 +278,8 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
||||||
arguments: _contact.id,
|
arguments: _contact.id,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context)!
|
.getSecondaryEnabledButtonColor(context)!
|
||||||
.copyWith(
|
.copyWith(
|
||||||
minimumSize: MaterialStateProperty.all<Size>(
|
minimumSize: MaterialStateProperty.all<Size>(
|
||||||
|
@ -281,8 +292,9 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
||||||
SvgPicture.asset(Assets.svg.pencil,
|
SvgPicture.asset(Assets.svg.pencil,
|
||||||
width: 10,
|
width: 10,
|
||||||
height: 10,
|
height: 10,
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.accentColorDark),
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 4,
|
width: 4,
|
||||||
),
|
),
|
||||||
|
@ -378,14 +390,16 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: RoundedContainer(
|
child: RoundedContainer(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textFieldDefaultBG,
|
.extension<StackColors>()!
|
||||||
|
.textFieldDefaultBG,
|
||||||
padding: const EdgeInsets.all(4),
|
padding: const EdgeInsets.all(4),
|
||||||
child: SvgPicture.asset(Assets.svg.pencil,
|
child: SvgPicture.asset(Assets.svg.pencil,
|
||||||
width: 12,
|
width: 12,
|
||||||
height: 12,
|
height: 12,
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorDark),
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
@ -404,14 +418,16 @@ class _ContactDetailsViewState extends ConsumerState<ContactDetailsView> {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: RoundedContainer(
|
child: RoundedContainer(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textFieldDefaultBG,
|
.extension<StackColors>()!
|
||||||
|
.textFieldDefaultBG,
|
||||||
padding: const EdgeInsets.all(4),
|
padding: const EdgeInsets.all(4),
|
||||||
child: SvgPicture.asset(Assets.svg.copy,
|
child: SvgPicture.asset(Assets.svg.copy,
|
||||||
width: 12,
|
width: 12,
|
||||||
height: 12,
|
height: 12,
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorDark),
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
@ -14,7 +14,7 @@ import 'package:stackwallet/utilities/clipboard_interface.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_container.dart';
|
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
import 'package:tuple/tuple.dart';
|
import 'package:tuple/tuple.dart';
|
||||||
|
@ -71,7 +71,8 @@ class ContactPopUp extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.popupBG,
|
color:
|
||||||
|
Theme.of(context).extension<StackColors>()!.popupBG,
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
20,
|
20,
|
||||||
),
|
),
|
||||||
|
@ -98,8 +99,9 @@ class ContactPopUp extends ConsumerWidget {
|
||||||
width: 32,
|
width: 32,
|
||||||
height: 32,
|
height: 32,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textFieldDefaultBG,
|
.extension<StackColors>()!
|
||||||
|
.textFieldDefaultBG,
|
||||||
borderRadius: BorderRadius.circular(32),
|
borderRadius: BorderRadius.circular(32),
|
||||||
),
|
),
|
||||||
child: contact.id == "default"
|
child: contact.id == "default"
|
||||||
|
@ -140,7 +142,8 @@ class ContactPopUp extends ConsumerWidget {
|
||||||
arguments: contact.id,
|
arguments: contact.id,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(
|
.getSecondaryEnabledButtonColor(
|
||||||
context)!
|
context)!
|
||||||
.copyWith(
|
.copyWith(
|
||||||
|
@ -164,7 +167,9 @@ class ContactPopUp extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
height: 1,
|
height: 1,
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.background,
|
||||||
),
|
),
|
||||||
if (addresses.isEmpty)
|
if (addresses.isEmpty)
|
||||||
Padding(
|
Padding(
|
||||||
|
@ -260,15 +265,17 @@ class ContactPopUp extends ConsumerWidget {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: RoundedContainer(
|
child: RoundedContainer(
|
||||||
color: StackTheme.instance.color
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.textFieldDefaultBG,
|
.textFieldDefaultBG,
|
||||||
padding: const EdgeInsets.all(4),
|
padding: const EdgeInsets.all(4),
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
Assets.svg.copy,
|
Assets.svg.copy,
|
||||||
width: 12,
|
width: 12,
|
||||||
height: 12,
|
height: 12,
|
||||||
color: StackTheme.instance
|
color: Theme.of(context)
|
||||||
.color.accentColorDark),
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
@ -311,7 +318,8 @@ class ContactPopUp extends ConsumerWidget {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: RoundedContainer(
|
child: RoundedContainer(
|
||||||
color: StackTheme.instance.color
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.textFieldDefaultBG,
|
.textFieldDefaultBG,
|
||||||
padding:
|
padding:
|
||||||
const EdgeInsets.all(4),
|
const EdgeInsets.all(4),
|
||||||
|
@ -320,8 +328,10 @@ class ContactPopUp extends ConsumerWidget {
|
||||||
.svg.circleArrowUpRight,
|
.svg.circleArrowUpRight,
|
||||||
width: 12,
|
width: 12,
|
||||||
height: 12,
|
height: 12,
|
||||||
color: StackTheme.instance
|
color: Theme.of(context)
|
||||||
.color.accentColorDark),
|
.extension<
|
||||||
|
StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
@ -11,7 +11,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/barcode_scanner_interface.dart';
|
import 'package:stackwallet/utilities/barcode_scanner_interface.dart';
|
||||||
import 'package:stackwallet/utilities/clipboard_interface.dart';
|
import 'package:stackwallet/utilities/clipboard_interface.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
|
|
||||||
class EditContactAddressView extends ConsumerStatefulWidget {
|
class EditContactAddressView extends ConsumerStatefulWidget {
|
||||||
|
@ -60,7 +60,7 @@ class _EditContactAddressViewState
|
||||||
.select((value) => value.getContactById(contactId)));
|
.select((value) => value.getContactById(contactId)));
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -103,8 +103,9 @@ class _EditContactAddressViewState
|
||||||
width: 48,
|
width: 48,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(24),
|
borderRadius: BorderRadius.circular(24),
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.textFieldActiveBG,
|
.extension<StackColors>()!
|
||||||
|
.textFieldActiveBG,
|
||||||
),
|
),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: contact.emojiChar == null
|
child: contact.emojiChar == null
|
||||||
|
@ -180,13 +181,15 @@ class _EditContactAddressViewState
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorDark),
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
if (FocusScope.of(context).hasFocus) {
|
if (FocusScope.of(context).hasFocus) {
|
||||||
|
@ -211,10 +214,12 @@ class _EditContactAddressViewState
|
||||||
|
|
||||||
return TextButton(
|
return TextButton(
|
||||||
style: shouldEnableSave
|
style: shouldEnableSave
|
||||||
? StackTheme.instance
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(
|
.getPrimaryEnabledButtonColor(
|
||||||
context)
|
context)
|
||||||
: StackTheme.instance
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(
|
.getPrimaryDisabledButtonColor(
|
||||||
context),
|
context),
|
||||||
onPressed: shouldEnableSave
|
onPressed: shouldEnableSave
|
||||||
|
|
|
@ -6,7 +6,7 @@ import 'package:stackwallet/providers/global/address_book_service_provider.dart'
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/emoji_select_sheet.dart';
|
import 'package:stackwallet/widgets/emoji_select_sheet.dart';
|
||||||
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||||
|
@ -68,7 +68,7 @@ class _EditContactNameEmojiViewState
|
||||||
.select((value) => value.getContactById(contactId)));
|
.select((value) => value.getContactById(contactId)));
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -139,8 +139,9 @@ class _EditContactNameEmojiViewState
|
||||||
width: 48,
|
width: 48,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(24),
|
borderRadius: BorderRadius.circular(24),
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textFieldActiveBG,
|
.extension<StackColors>()!
|
||||||
|
.textFieldActiveBG,
|
||||||
),
|
),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: _selectedEmoji == null
|
child: _selectedEmoji == null
|
||||||
|
@ -163,21 +164,24 @@ class _EditContactNameEmojiViewState
|
||||||
width: 14,
|
width: 14,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(14),
|
borderRadius: BorderRadius.circular(14),
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorDark),
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: _selectedEmoji == null
|
child: _selectedEmoji == null
|
||||||
? SvgPicture.asset(
|
? SvgPicture.asset(
|
||||||
Assets.svg.plus,
|
Assets.svg.plus,
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textWhite,
|
.extension<StackColors>()!
|
||||||
|
.textWhite,
|
||||||
width: 12,
|
width: 12,
|
||||||
height: 12,
|
height: 12,
|
||||||
)
|
)
|
||||||
: SvgPicture.asset(
|
: SvgPicture.asset(
|
||||||
Assets.svg.thickX,
|
Assets.svg.thickX,
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textWhite,
|
.extension<StackColors>()!
|
||||||
|
.textWhite,
|
||||||
width: 8,
|
width: 8,
|
||||||
height: 8,
|
height: 8,
|
||||||
),
|
),
|
||||||
|
@ -235,13 +239,15 @@ class _EditContactNameEmojiViewState
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorDark),
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
if (FocusScope.of(context).hasFocus) {
|
if (FocusScope.of(context).hasFocus) {
|
||||||
|
@ -266,10 +272,12 @@ class _EditContactNameEmojiViewState
|
||||||
|
|
||||||
return TextButton(
|
return TextButton(
|
||||||
style: shouldEnableSave
|
style: shouldEnableSave
|
||||||
? StackTheme.instance
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(
|
.getPrimaryEnabledButtonColor(
|
||||||
context)
|
context)
|
||||||
: StackTheme.instance
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(
|
.getPrimaryDisabledButtonColor(
|
||||||
context),
|
context),
|
||||||
onPressed: shouldEnableSave
|
onPressed: shouldEnableSave
|
||||||
|
|
|
@ -13,7 +13,7 @@ import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/icon_widgets/clipboard_icon.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/qrcode_icon.dart';
|
||||||
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||||
|
@ -80,7 +80,8 @@ class _NewContactAddressEntryFormState
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 12),
|
padding: const EdgeInsets.symmetric(horizontal: 12),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
splashColor: StackTheme.instance.color.highlight,
|
splashColor:
|
||||||
|
Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
|
@ -134,7 +135,9 @@ class _NewContactAddressEntryFormState
|
||||||
Assets.svg.chevronDown,
|
Assets.svg.chevronDown,
|
||||||
width: 8,
|
width: 8,
|
||||||
height: 4,
|
height: 4,
|
||||||
color: StackTheme.instance.color.textSubtitle2,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textSubtitle2,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -354,7 +357,8 @@ class _NewContactAddressEntryFormState
|
||||||
"Invalid address",
|
"Invalid address",
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
style: STextStyles.label(context).copyWith(
|
style: STextStyles.label(context).copyWith(
|
||||||
color: StackTheme.instance.color.textError,
|
color:
|
||||||
|
Theme.of(context).extension<StackColors>()!.textError,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
@ -13,7 +13,7 @@ import 'package:stackwallet/route_generator.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/format.dart';
|
import 'package:stackwallet/utilities/format.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_container.dart';
|
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
@ -97,12 +97,15 @@ class _ConfirmChangeNowSendViewState
|
||||||
title: "Broadcast transaction failed",
|
title: "Broadcast transaction failed",
|
||||||
message: e.toString(),
|
message: e.toString(),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style:
|
style: Theme.of(context)
|
||||||
StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
.extension<StackColors>()!
|
||||||
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Ok",
|
"Ok",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
color: StackTheme.instance.color.buttonTextSecondary,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.buttonTextSecondary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -130,7 +133,7 @@ class _ConfirmChangeNowSendViewState
|
||||||
.select((value) => value.getManagerProvider(walletId)));
|
.select((value) => value.getManagerProvider(walletId)));
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
// if (FocusScope.of(context).hasFocus) {
|
// if (FocusScope.of(context).hasFocus) {
|
||||||
|
@ -316,7 +319,9 @@ class _ConfirmChangeNowSendViewState
|
||||||
height: 12,
|
height: 12,
|
||||||
),
|
),
|
||||||
RoundedContainer(
|
RoundedContainer(
|
||||||
color: StackTheme.instance.color.snackBarBackSuccess,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.snackBarBackSuccess,
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
|
@ -347,7 +352,8 @@ class _ConfirmChangeNowSendViewState
|
||||||
),
|
),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
TextButton(
|
TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonColor(context),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
final unlocked = await Navigator.push(
|
final unlocked = await Navigator.push(
|
||||||
|
|
|
@ -3,7 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:stackwallet/providers/exchange/trade_note_service_provider.dart';
|
import 'package:stackwallet/providers/exchange/trade_note_service_provider.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
|
@ -46,9 +46,9 @@ class _EditNoteViewState extends ConsumerState<EditTradeNoteView> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
if (FocusScope.of(context).hasFocus) {
|
if (FocusScope.of(context).hasFocus) {
|
||||||
|
@ -127,7 +127,8 @@ class _EditNoteViewState extends ConsumerState<EditTradeNoteView> {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Save",
|
"Save",
|
||||||
|
|
|
@ -7,7 +7,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||||
import 'package:stackwallet/widgets/loading_indicator.dart';
|
import 'package:stackwallet/widgets/loading_indicator.dart';
|
||||||
|
@ -119,7 +119,7 @@ class _FixedRateMarketPairCoinSelectionViewState
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -261,8 +261,9 @@ class _FixedRateMarketPairCoinSelectionViewState
|
||||||
ticker.toUpperCase(),
|
ticker.toUpperCase(),
|
||||||
style: STextStyles.smallMed12(context)
|
style: STextStyles.smallMed12(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textSubtitle1,
|
.extension<StackColors>()!
|
||||||
|
.textSubtitle1,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
@ -336,8 +337,9 @@ class _FixedRateMarketPairCoinSelectionViewState
|
||||||
ticker.toUpperCase(),
|
ticker.toUpperCase(),
|
||||||
style: STextStyles.smallMed12(context)
|
style: STextStyles.smallMed12(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textSubtitle1,
|
.extension<StackColors>()!
|
||||||
|
.textSubtitle1,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
@ -5,7 +5,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||||
import 'package:stackwallet/widgets/loading_indicator.dart';
|
import 'package:stackwallet/widgets/loading_indicator.dart';
|
||||||
|
@ -75,7 +75,7 @@ class _FloatingRateCurrencySelectionViewState
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -213,8 +213,9 @@ class _FloatingRateCurrencySelectionViewState
|
||||||
items[index].ticker.toUpperCase(),
|
items[index].ticker.toUpperCase(),
|
||||||
style: STextStyles.smallMed12(context)
|
style: STextStyles.smallMed12(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textSubtitle1,
|
.extension<StackColors>()!
|
||||||
|
.textSubtitle1,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
@ -284,8 +285,9 @@ class _FloatingRateCurrencySelectionViewState
|
||||||
_currencies[index].ticker.toUpperCase(),
|
_currencies[index].ticker.toUpperCase(),
|
||||||
style: STextStyles.smallMed12(context)
|
style: STextStyles.smallMed12(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textSubtitle1,
|
.extension<StackColors>()!
|
||||||
|
.textSubtitle1,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:stackwallet/providers/exchange/changenow_initial_load_status.dart';
|
import 'package:stackwallet/providers/exchange/changenow_initial_load_status.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_loading_overlay.dart';
|
import 'package:stackwallet/widgets/custom_loading_overlay.dart';
|
||||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
|
|
||||||
|
@ -65,7 +65,10 @@ class _ExchangeLoadingOverlayViewState
|
||||||
if (_statusEst == ChangeNowLoadStatus.loading ||
|
if (_statusEst == ChangeNowLoadStatus.loading ||
|
||||||
(_statusFixed == ChangeNowLoadStatus.loading && userReloaded))
|
(_statusFixed == ChangeNowLoadStatus.loading && userReloaded))
|
||||||
Container(
|
Container(
|
||||||
color: StackTheme.instance.color.overlay.withOpacity(0.7),
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.overlay
|
||||||
|
.withOpacity(0.7),
|
||||||
child: const CustomLoadingOverlay(
|
child: const CustomLoadingOverlay(
|
||||||
message: "Loading ChangeNOW data", eventBus: null),
|
message: "Loading ChangeNOW data", eventBus: null),
|
||||||
),
|
),
|
||||||
|
@ -74,7 +77,10 @@ class _ExchangeLoadingOverlayViewState
|
||||||
_statusEst != ChangeNowLoadStatus.loading &&
|
_statusEst != ChangeNowLoadStatus.loading &&
|
||||||
_statusFixed != ChangeNowLoadStatus.loading)
|
_statusFixed != ChangeNowLoadStatus.loading)
|
||||||
Container(
|
Container(
|
||||||
color: StackTheme.instance.color.overlay.withOpacity(0.7),
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.overlay
|
||||||
|
.withOpacity(0.7),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
|
@ -83,12 +89,15 @@ class _ExchangeLoadingOverlayViewState
|
||||||
message:
|
message:
|
||||||
"ChangeNOW requires a working internet connection. Tap OK to try fetching again.",
|
"ChangeNOW requires a working internet connection. Tap OK to try fetching again.",
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"OK",
|
"OK",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
color: StackTheme.instance.color.buttonTextSecondary,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.buttonTextSecondary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
|
|
@ -5,7 +5,7 @@ import 'package:stackwallet/pages/exchange_view/sub_widgets/exchange_rate_sheet.
|
||||||
import 'package:stackwallet/pages/exchange_view/sub_widgets/step_row.dart';
|
import 'package:stackwallet/pages/exchange_view/sub_widgets/step_row.dart';
|
||||||
import 'package:stackwallet/utilities/clipboard_interface.dart';
|
import 'package:stackwallet/utilities/clipboard_interface.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ class _Step1ViewState extends State<Step1View> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -104,15 +104,17 @@ class _Step1ViewState extends State<Step1View> {
|
||||||
"You send",
|
"You send",
|
||||||
style: STextStyles.itemSubtitle(context)
|
style: STextStyles.itemSubtitle(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.infoItemText),
|
.extension<StackColors>()!
|
||||||
|
.infoItemText),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"${model.sendAmount.toStringAsFixed(8)} ${model.sendTicker.toUpperCase()}",
|
"${model.sendAmount.toStringAsFixed(8)} ${model.sendTicker.toUpperCase()}",
|
||||||
style: STextStyles.itemSubtitle12(context)
|
style: STextStyles.itemSubtitle12(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.infoItemText),
|
.extension<StackColors>()!
|
||||||
|
.infoItemText),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -128,15 +130,17 @@ class _Step1ViewState extends State<Step1View> {
|
||||||
"You receive",
|
"You receive",
|
||||||
style: STextStyles.itemSubtitle(context)
|
style: STextStyles.itemSubtitle(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.infoItemText),
|
.extension<StackColors>()!
|
||||||
|
.infoItemText),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"~${model.receiveAmount.toStringAsFixed(8)} ${model.receiveTicker.toUpperCase()}",
|
"~${model.receiveAmount.toStringAsFixed(8)} ${model.receiveTicker.toUpperCase()}",
|
||||||
style: STextStyles.itemSubtitle12(context)
|
style: STextStyles.itemSubtitle12(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.infoItemText),
|
.extension<StackColors>()!
|
||||||
|
.infoItemText),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -154,16 +158,18 @@ class _Step1ViewState extends State<Step1View> {
|
||||||
: "Fixed rate",
|
: "Fixed rate",
|
||||||
style:
|
style:
|
||||||
STextStyles.itemSubtitle(context).copyWith(
|
STextStyles.itemSubtitle(context).copyWith(
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.infoItemLabel,
|
.extension<StackColors>()!
|
||||||
|
.infoItemLabel,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
model.rateInfo,
|
model.rateInfo,
|
||||||
style: STextStyles.itemSubtitle12(context)
|
style: STextStyles.itemSubtitle12(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.infoItemText),
|
.extension<StackColors>()!
|
||||||
|
.infoItemText),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -177,7 +183,8 @@ class _Step1ViewState extends State<Step1View> {
|
||||||
Navigator.of(context).pushNamed(Step2View.routeName,
|
Navigator.of(context).pushNamed(Step2View.routeName,
|
||||||
arguments: model);
|
arguments: model);
|
||||||
},
|
},
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Next",
|
"Next",
|
||||||
|
|
|
@ -15,7 +15,7 @@ import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/icon_widgets/addressbook_icon.dart';
|
import 'package:stackwallet/widgets/icon_widgets/addressbook_icon.dart';
|
||||||
import 'package:stackwallet/widgets/icon_widgets/clipboard_icon.dart';
|
import 'package:stackwallet/widgets/icon_widgets/clipboard_icon.dart';
|
||||||
|
@ -95,7 +95,7 @@ class _Step2ViewState extends ConsumerState<Step2View> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -537,13 +537,15 @@ class _Step2ViewState extends ConsumerState<Step2View> {
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Back",
|
"Back",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.buttonTextSecondary,
|
.extension<StackColors>()!
|
||||||
|
.buttonTextSecondary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -561,7 +563,8 @@ class _Step2ViewState extends ConsumerState<Step2View> {
|
||||||
Step3View.routeName,
|
Step3View.routeName,
|
||||||
arguments: model);
|
arguments: model);
|
||||||
},
|
},
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Next",
|
"Next",
|
||||||
|
|
|
@ -14,7 +14,7 @@ import 'package:stackwallet/services/notifications_api.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/clipboard_interface.dart';
|
import 'package:stackwallet/utilities/clipboard_interface.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
|
@ -50,7 +50,7 @@ class _Step3ViewState extends ConsumerState<Step3View> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -203,13 +203,15 @@ class _Step3ViewState extends ConsumerState<Step3View> {
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Back",
|
"Back",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.buttonTextSecondary,
|
.extension<StackColors>()!
|
||||||
|
.buttonTextSecondary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -306,7 +308,8 @@ class _Step3ViewState extends ConsumerState<Step3View> {
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Next",
|
"Next",
|
||||||
|
|
|
@ -24,7 +24,7 @@ import 'package:stackwallet/utilities/enums/fee_rate_type_enum.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/format.dart';
|
import 'package:stackwallet/utilities/format.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_container.dart';
|
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
@ -114,7 +114,7 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
||||||
final bool isWalletCoin =
|
final bool isWalletCoin =
|
||||||
_isWalletCoinAndHasWallet(model.trade!.fromCurrency, ref);
|
_isWalletCoinAndHasWallet(model.trade!.fromCurrency, ref);
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -171,14 +171,17 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
||||||
height: 12,
|
height: 12,
|
||||||
),
|
),
|
||||||
RoundedContainer(
|
RoundedContainer(
|
||||||
color: StackTheme.instance.color.warningBackground,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.warningBackground,
|
||||||
child: RichText(
|
child: RichText(
|
||||||
text: TextSpan(
|
text: TextSpan(
|
||||||
text:
|
text:
|
||||||
"You must send at least ${model.sendAmount.toString()} ${model.sendTicker}. ",
|
"You must send at least ${model.sendAmount.toString()} ${model.sendTicker}. ",
|
||||||
style: STextStyles.label(context).copyWith(
|
style: STextStyles.label(context).copyWith(
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.warningForeground,
|
.extension<StackColors>()!
|
||||||
|
.warningForeground,
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
),
|
),
|
||||||
children: [
|
children: [
|
||||||
|
@ -186,8 +189,9 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
||||||
text:
|
text:
|
||||||
"If you send less than ${model.sendAmount.toString()} ${model.sendTicker}, your transaction may not be converted and it may not be refunded.",
|
"If you send less than ${model.sendAmount.toString()} ${model.sendTicker}, your transaction may not be converted and it may not be refunded.",
|
||||||
style: STextStyles.label(context).copyWith(
|
style: STextStyles.label(context).copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.warningForeground,
|
.extension<StackColors>()!
|
||||||
|
.warningForeground,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -225,8 +229,9 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
||||||
children: [
|
children: [
|
||||||
SvgPicture.asset(
|
SvgPicture.asset(
|
||||||
Assets.svg.copy,
|
Assets.svg.copy,
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.infoItemIcons,
|
.extension<StackColors>()!
|
||||||
|
.infoItemIcons,
|
||||||
width: 10,
|
width: 10,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
@ -281,8 +286,9 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
||||||
children: [
|
children: [
|
||||||
SvgPicture.asset(
|
SvgPicture.asset(
|
||||||
Assets.svg.copy,
|
Assets.svg.copy,
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.infoItemIcons,
|
.extension<StackColors>()!
|
||||||
|
.infoItemIcons,
|
||||||
width: 10,
|
width: 10,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
@ -340,8 +346,9 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
||||||
},
|
},
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
Assets.svg.copy,
|
Assets.svg.copy,
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.infoItemIcons,
|
.extension<StackColors>()!
|
||||||
|
.infoItemIcons,
|
||||||
width: 12,
|
width: 12,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
@ -365,7 +372,8 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
||||||
_statusString,
|
_statusString,
|
||||||
style:
|
style:
|
||||||
STextStyles.itemSubtitle(context).copyWith(
|
STextStyles.itemSubtitle(context).copyWith(
|
||||||
color: StackTheme.instance
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.colorForStatus(_status),
|
.colorForStatus(_status),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -407,8 +415,9 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
||||||
.size
|
.size
|
||||||
.width /
|
.width /
|
||||||
2,
|
2,
|
||||||
foregroundColor: StackTheme
|
foregroundColor: Theme.of(context)
|
||||||
.instance.color.accentColorDark,
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
@ -421,7 +430,8 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
onPressed: () =>
|
onPressed: () =>
|
||||||
Navigator.of(context).pop(),
|
Navigator.of(context).pop(),
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(
|
.getSecondaryEnabledButtonColor(
|
||||||
context),
|
context),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
@ -429,9 +439,8 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
||||||
style:
|
style:
|
||||||
STextStyles.button(context)
|
STextStyles.button(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance
|
.extension<StackColors>()!
|
||||||
.color
|
|
||||||
.buttonTextSecondary,
|
.buttonTextSecondary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -445,7 +454,8 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Show QR Code",
|
"Show QR Code",
|
||||||
|
@ -567,7 +577,8 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
||||||
title: "Transaction failed",
|
title: "Transaction failed",
|
||||||
message: e.toString(),
|
message: e.toString(),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(
|
.getSecondaryEnabledButtonColor(
|
||||||
context),
|
context),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
@ -575,9 +586,9 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
||||||
style: STextStyles.button(
|
style: STextStyles.button(
|
||||||
context)
|
context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance
|
.extension<
|
||||||
.color
|
StackColors>()!
|
||||||
.buttonTextSecondary,
|
.buttonTextSecondary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -615,13 +626,15 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
buttonTitle,
|
buttonTitle,
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.buttonTextSecondary,
|
.extension<StackColors>()!
|
||||||
|
.buttonTextSecondary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
@ -32,7 +32,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_loading_overlay.dart';
|
import 'package:stackwallet/widgets/custom_loading_overlay.dart';
|
||||||
import 'package:stackwallet/widgets/loading_indicator.dart';
|
import 'package:stackwallet/widgets/loading_indicator.dart';
|
||||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
|
@ -66,7 +66,10 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
builder: (_) => WillPopScope(
|
builder: (_) => WillPopScope(
|
||||||
onWillPop: () async => false,
|
onWillPop: () async => false,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: StackTheme.instance.color.overlay.withOpacity(0.6),
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.overlay
|
||||||
|
.withOpacity(0.6),
|
||||||
child: const CustomLoadingOverlay(
|
child: const CustomLoadingOverlay(
|
||||||
message: "Updating exchange rate",
|
message: "Updating exchange rate",
|
||||||
eventBus: null,
|
eventBus: null,
|
||||||
|
@ -367,7 +370,9 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
Text(
|
Text(
|
||||||
"You will send",
|
"You will send",
|
||||||
style: STextStyles.itemSubtitle(context).copyWith(
|
style: STextStyles.itemSubtitle(context).copyWith(
|
||||||
color: StackTheme.instance.color.textDark3,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textDark3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
@ -561,9 +566,9 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
width: 18,
|
width: 18,
|
||||||
height: 18,
|
height: 18,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance
|
.extension<
|
||||||
.color
|
StackColors>()!
|
||||||
.textFieldDefaultBG,
|
.textFieldDefaultBG,
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(
|
BorderRadius.circular(
|
||||||
|
@ -586,7 +591,7 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
width: 18,
|
width: 18,
|
||||||
height: 18,
|
height: 18,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
// color: StackTheme.instance.color.accentColorDark
|
// color: Theme.of(context).extension<StackColors>()!.accentColorDark
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(18),
|
BorderRadius.circular(18),
|
||||||
),
|
),
|
||||||
|
@ -594,8 +599,9 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
Assets.svg.circleQuestion,
|
Assets.svg.circleQuestion,
|
||||||
width: 18,
|
width: 18,
|
||||||
height: 18,
|
height: 18,
|
||||||
color: StackTheme.instance
|
color: Theme.of(context)
|
||||||
.color.textFieldDefaultBG,
|
.extension<StackColors>()!
|
||||||
|
.textFieldDefaultBG,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -621,8 +627,9 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
"-",
|
"-",
|
||||||
style: STextStyles.smallMed14(context)
|
style: STextStyles.smallMed14(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textDark,
|
.extension<StackColors>()!
|
||||||
|
.textDark,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
@ -632,8 +639,9 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
Assets.svg.chevronDown,
|
Assets.svg.chevronDown,
|
||||||
width: 5,
|
width: 5,
|
||||||
height: 2.5,
|
height: 2.5,
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.textDark,
|
.extension<StackColors>()!
|
||||||
|
.textDark,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -655,7 +663,9 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
"You will receive",
|
"You will receive",
|
||||||
style:
|
style:
|
||||||
STextStyles.itemSubtitle(context).copyWith(
|
STextStyles.itemSubtitle(context).copyWith(
|
||||||
color: StackTheme.instance.color.textDark3,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textDark3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -676,8 +686,9 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
Assets.svg.swap,
|
Assets.svg.swap,
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorDark,
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -894,9 +905,9 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
width: 18,
|
width: 18,
|
||||||
height: 18,
|
height: 18,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance
|
.extension<
|
||||||
.color
|
StackColors>()!
|
||||||
.textFieldDefaultBG,
|
.textFieldDefaultBG,
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(
|
BorderRadius.circular(
|
||||||
|
@ -918,7 +929,7 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
width: 18,
|
width: 18,
|
||||||
height: 18,
|
height: 18,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
// color: StackTheme.instance.color.accentColorDark
|
// color: Theme.of(context).extension<StackColors>()!.accentColorDark
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(18),
|
BorderRadius.circular(18),
|
||||||
),
|
),
|
||||||
|
@ -926,8 +937,9 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
Assets.svg.circleQuestion,
|
Assets.svg.circleQuestion,
|
||||||
width: 18,
|
width: 18,
|
||||||
height: 18,
|
height: 18,
|
||||||
color: StackTheme.instance
|
color: Theme.of(context)
|
||||||
.color.textFieldDefaultBG,
|
.extension<StackColors>()!
|
||||||
|
.textFieldDefaultBG,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -953,8 +965,9 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
"-",
|
"-",
|
||||||
style: STextStyles.smallMed14(context)
|
style: STextStyles.smallMed14(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textDark,
|
.extension<StackColors>()!
|
||||||
|
.textDark,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
@ -964,8 +977,9 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
Assets.svg.chevronDown,
|
Assets.svg.chevronDown,
|
||||||
width: 5,
|
width: 5,
|
||||||
height: 2.5,
|
height: 2.5,
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.textDark,
|
.extension<StackColors>()!
|
||||||
|
.textDark,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -1152,9 +1166,11 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
.select((value) => value.canExchange))
|
.select((value) => value.canExchange))
|
||||||
: ref.watch(fixedRateExchangeFormProvider
|
: ref.watch(fixedRateExchangeFormProvider
|
||||||
.select((value) => value.canExchange)))
|
.select((value) => value.canExchange)))
|
||||||
? StackTheme.instance
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonColor(context)
|
||||||
: StackTheme.instance
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonColor(context),
|
||||||
onPressed: ((ref
|
onPressed: ((ref
|
||||||
.read(prefsChangeNotifierProvider)
|
.read(prefsChangeNotifierProvider)
|
||||||
|
@ -1320,7 +1336,8 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
message:
|
message:
|
||||||
"${response.value!.warningMessage!}\n\nDo you want to attempt trade anyways?",
|
"${response.value!.warningMessage!}\n\nDo you want to attempt trade anyways?",
|
||||||
leftButton: TextButton(
|
leftButton: TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(
|
.getSecondaryEnabledButtonColor(
|
||||||
context),
|
context),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
@ -1334,7 +1351,8 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(
|
.getPrimaryEnabledButtonColor(
|
||||||
context),
|
context),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
@ -1392,7 +1410,7 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
// Text(
|
// Text(
|
||||||
// "Trades",
|
// "Trades",
|
||||||
// style: STextStyles.itemSubtitle(context).copyWith(
|
// style: STextStyles.itemSubtitle(context).copyWith(
|
||||||
// color: StackTheme.instance.color.textDark3,
|
// color: Theme.of(context).extension<StackColors>()!.textDark3,
|
||||||
// ),
|
// ),
|
||||||
// ),
|
// ),
|
||||||
// SizedBox(
|
// SizedBox(
|
||||||
|
@ -1432,7 +1450,9 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
Text(
|
Text(
|
||||||
"Trades",
|
"Trades",
|
||||||
style: STextStyles.itemSubtitle(context).copyWith(
|
style: STextStyles.itemSubtitle(context).copyWith(
|
||||||
color: StackTheme.instance.color.textDark3,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textDark3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
@ -1505,7 +1525,9 @@ class _ExchangeViewState extends ConsumerState<ExchangeView> {
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 4),
|
padding: const EdgeInsets.symmetric(horizontal: 4),
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.popupBG,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.popupBG,
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
|
@ -1547,7 +1569,7 @@ class RateInfo extends ConsumerWidget {
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.popupBG,
|
color: Theme.of(context).extension<StackColors>()!.popupBG,
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
|
@ -1635,7 +1657,9 @@ class RateInfo extends ConsumerWidget {
|
||||||
Assets.svg.chevronDown,
|
Assets.svg.chevronDown,
|
||||||
width: 5,
|
width: 5,
|
||||||
height: 2.5,
|
height: 2.5,
|
||||||
color: StackTheme.instance.color.infoItemLabel,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.infoItemLabel,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
@ -16,7 +16,7 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/enums/fee_rate_type_enum.dart';
|
import 'package:stackwallet/utilities/enums/fee_rate_type_enum.dart';
|
||||||
import 'package:stackwallet/utilities/format.dart';
|
import 'package:stackwallet/utilities/format.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/animated_text.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/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
@ -60,7 +60,7 @@ class _SendFromViewState extends ConsumerState<SendFromView> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -161,7 +161,7 @@ class _SendFromCardState extends ConsumerState<SendFromCard> {
|
||||||
return RoundedWhiteContainer(
|
return RoundedWhiteContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
child: MaterialButton(
|
child: MaterialButton(
|
||||||
splashColor: StackTheme.instance.color.highlight,
|
splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
key: Key("walletsSheetItemButtonKey_$walletId"),
|
key: Key("walletsSheetItemButtonKey_$walletId"),
|
||||||
padding: const EdgeInsets.all(5),
|
padding: const EdgeInsets.all(5),
|
||||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
|
@ -242,12 +242,15 @@ class _SendFromCardState extends ConsumerState<SendFromCard> {
|
||||||
title: "Transaction failed",
|
title: "Transaction failed",
|
||||||
message: e.toString(),
|
message: e.toString(),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Ok",
|
"Ok",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
color: StackTheme.instance.color.buttonTextSecondary,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.buttonTextSecondary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -264,7 +267,8 @@ class _SendFromCardState extends ConsumerState<SendFromCard> {
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.colorForCoin(manager.coin)
|
.colorForCoin(manager.coin)
|
||||||
.withOpacity(0.5),
|
.withOpacity(0.5),
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
|
|
|
@ -3,7 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:stackwallet/providers/providers.dart';
|
import 'package:stackwallet/providers/providers.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
|
|
||||||
enum ExchangeRateType { estimated, fixed }
|
enum ExchangeRateType { estimated, fixed }
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ class ExchangeRateSheet extends ConsumerWidget {
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
return Container(
|
return Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.popupBG,
|
color: Theme.of(context).extension<StackColors>()!.popupBG,
|
||||||
borderRadius: const BorderRadius.vertical(
|
borderRadius: const BorderRadius.vertical(
|
||||||
top: Radius.circular(20),
|
top: Radius.circular(20),
|
||||||
),
|
),
|
||||||
|
@ -35,7 +35,8 @@ class ExchangeRateSheet extends ConsumerWidget {
|
||||||
Center(
|
Center(
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.textSubtitle4,
|
color:
|
||||||
|
Theme.of(context).extension<StackColors>()!.textSubtitle4,
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
|
@ -76,8 +77,9 @@ class ExchangeRateSheet extends ConsumerWidget {
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
child: Radio(
|
child: Radio(
|
||||||
activeColor: StackTheme
|
activeColor: Theme.of(context)
|
||||||
.instance.color.radioButtonIconEnabled,
|
.extension<StackColors>()!
|
||||||
|
.radioButtonIconEnabled,
|
||||||
value: ExchangeRateType.estimated,
|
value: ExchangeRateType.estimated,
|
||||||
groupValue: ref.watch(prefsChangeNotifierProvider
|
groupValue: ref.watch(prefsChangeNotifierProvider
|
||||||
.select((value) => value.exchangeRateType)),
|
.select((value) => value.exchangeRateType)),
|
||||||
|
@ -112,7 +114,9 @@ class ExchangeRateSheet extends ConsumerWidget {
|
||||||
Text(
|
Text(
|
||||||
"ChangeNOW will pick the best rate for you during the moment of the exchange.",
|
"ChangeNOW will pick the best rate for you during the moment of the exchange.",
|
||||||
style: STextStyles.itemSubtitle(context).copyWith(
|
style: STextStyles.itemSubtitle(context).copyWith(
|
||||||
color: StackTheme.instance.color.textSubtitle1,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textSubtitle1,
|
||||||
),
|
),
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
),
|
),
|
||||||
|
@ -147,8 +151,9 @@ class ExchangeRateSheet extends ConsumerWidget {
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
child: Radio(
|
child: Radio(
|
||||||
activeColor: StackTheme
|
activeColor: Theme.of(context)
|
||||||
.instance.color.radioButtonIconEnabled,
|
.extension<StackColors>()!
|
||||||
|
.radioButtonIconEnabled,
|
||||||
value: ExchangeRateType.fixed,
|
value: ExchangeRateType.fixed,
|
||||||
groupValue: ref.watch(prefsChangeNotifierProvider
|
groupValue: ref.watch(prefsChangeNotifierProvider
|
||||||
.select((value) => value.exchangeRateType)),
|
.select((value) => value.exchangeRateType)),
|
||||||
|
@ -180,7 +185,9 @@ class ExchangeRateSheet extends ConsumerWidget {
|
||||||
Text(
|
Text(
|
||||||
"You will get the exact exchange amount displayed - ChangeNOW takes all the rate risks.",
|
"You will get the exact exchange amount displayed - ChangeNOW takes all the rate risks.",
|
||||||
style: STextStyles.itemSubtitle(context).copyWith(
|
style: STextStyles.itemSubtitle(context).copyWith(
|
||||||
color: StackTheme.instance.color.textSubtitle1,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textSubtitle1,
|
||||||
),
|
),
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:google_fonts/google_fonts.dart';
|
import 'package:google_fonts/google_fonts.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
|
|
||||||
enum StepIndicatorStatus { current, completed, incomplete }
|
enum StepIndicatorStatus { current, completed, incomplete }
|
||||||
|
|
||||||
|
@ -19,18 +19,22 @@ class StepIndicator extends StatelessWidget {
|
||||||
|
|
||||||
final double size;
|
final double size;
|
||||||
|
|
||||||
Color get background {
|
Color background(BuildContext context) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case StepIndicatorStatus.current:
|
case StepIndicatorStatus.current:
|
||||||
return StackTheme.instance.color.stepIndicatorBGNumber;
|
return Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.stepIndicatorBGNumber;
|
||||||
case StepIndicatorStatus.completed:
|
case StepIndicatorStatus.completed:
|
||||||
return StackTheme.instance.color.stepIndicatorBGCheck;
|
return Theme.of(context).extension<StackColors>()!.stepIndicatorBGCheck;
|
||||||
case StepIndicatorStatus.incomplete:
|
case StepIndicatorStatus.incomplete:
|
||||||
return StackTheme.instance.color.stepIndicatorBGInactive;
|
return Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.stepIndicatorBGInactive;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget get centered {
|
Widget centered(BuildContext context) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case StepIndicatorStatus.current:
|
case StepIndicatorStatus.current:
|
||||||
return Text(
|
return Text(
|
||||||
|
@ -38,13 +42,16 @@ class StepIndicator extends StatelessWidget {
|
||||||
style: GoogleFonts.roboto(
|
style: GoogleFonts.roboto(
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
fontSize: 8,
|
fontSize: 8,
|
||||||
color: StackTheme.instance.color.stepIndicatorIconNumber,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.stepIndicatorIconNumber,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
case StepIndicatorStatus.completed:
|
case StepIndicatorStatus.completed:
|
||||||
return SvgPicture.asset(
|
return SvgPicture.asset(
|
||||||
Assets.svg.check,
|
Assets.svg.check,
|
||||||
color: StackTheme.instance.color.stepIndicatorIconText,
|
color:
|
||||||
|
Theme.of(context).extension<StackColors>()!.stepIndicatorIconText,
|
||||||
width: 10,
|
width: 10,
|
||||||
);
|
);
|
||||||
case StepIndicatorStatus.incomplete:
|
case StepIndicatorStatus.incomplete:
|
||||||
|
@ -53,7 +60,9 @@ class StepIndicator extends StatelessWidget {
|
||||||
style: GoogleFonts.roboto(
|
style: GoogleFonts.roboto(
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
fontSize: 8,
|
fontSize: 8,
|
||||||
color: StackTheme.instance.color.stepIndicatorIconInactive,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.stepIndicatorIconInactive,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -66,10 +75,10 @@ class StepIndicator extends StatelessWidget {
|
||||||
height: size,
|
height: size,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(size / 2),
|
borderRadius: BorderRadius.circular(size / 2),
|
||||||
color: background,
|
color: background(context),
|
||||||
),
|
),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: centered,
|
child: centered(context),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:stackwallet/pages/exchange_view/sub_widgets/step_indicator.dart';
|
import 'package:stackwallet/pages/exchange_view/sub_widgets/step_indicator.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
|
|
||||||
class StepRow extends StatelessWidget {
|
class StepRow extends StatelessWidget {
|
||||||
const StepRow({
|
const StepRow({
|
||||||
|
@ -18,15 +18,17 @@ class StepRow extends StatelessWidget {
|
||||||
final double indicatorSize;
|
final double indicatorSize;
|
||||||
final double minSpacing;
|
final double minSpacing;
|
||||||
|
|
||||||
Color getColor(int index) {
|
Color getColor(int index, BuildContext context) {
|
||||||
if (current >= count - 1) {
|
if (current >= count - 1) {
|
||||||
return StackTheme.instance.color.accentColorDark;
|
return Theme.of(context).extension<StackColors>()!.accentColorDark;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (current <= index) {
|
if (current <= index) {
|
||||||
return StackTheme.instance.color.stepIndicatorBGLinesInactive;
|
return Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.stepIndicatorBGLinesInactive;
|
||||||
} else {
|
} else {
|
||||||
return StackTheme.instance.color.stepIndicatorBGLines;
|
return Theme.of(context).extension<StackColors>()!.stepIndicatorBGLines;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +42,7 @@ class StepRow extends StatelessWidget {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
List<Widget> _buildList(double spacerWidth) {
|
List<Widget> _buildList(double spacerWidth, BuildContext context) {
|
||||||
List<Widget> list = [];
|
List<Widget> list = [];
|
||||||
for (int i = 0; i < count - 1; i++) {
|
for (int i = 0; i < count - 1; i++) {
|
||||||
list.add(StepIndicator(
|
list.add(StepIndicator(
|
||||||
|
@ -51,7 +53,7 @@ class StepRow extends StatelessWidget {
|
||||||
width: spacerWidth,
|
width: spacerWidth,
|
||||||
dotSize: 1.5,
|
dotSize: 1.5,
|
||||||
spacing: 4,
|
spacing: 4,
|
||||||
color: getColor(i),
|
color: getColor(i, context),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
list.add(StepIndicator(
|
list.add(StepIndicator(
|
||||||
|
@ -68,7 +70,7 @@ class StepRow extends StatelessWidget {
|
||||||
return Row(
|
return Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
..._buildList(spacerWidth),
|
..._buildList(spacerWidth, context),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/format.dart';
|
import 'package:stackwallet/utilities/format.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_container.dart';
|
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
@ -140,9 +140,9 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
||||||
Decimal.parse("-1");
|
Decimal.parse("-1");
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
|
@ -221,9 +221,12 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
||||||
trade.statusObject?.status.name ?? trade.statusString,
|
trade.statusObject?.status.name ?? trade.statusString,
|
||||||
style: STextStyles.itemSubtitle(context).copyWith(
|
style: STextStyles.itemSubtitle(context).copyWith(
|
||||||
color: trade.statusObject != null
|
color: trade.statusObject != null
|
||||||
? StackTheme.instance
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.colorForStatus(trade.statusObject!.status)
|
.colorForStatus(trade.statusObject!.status)
|
||||||
: StackTheme.instance.color.accentColorDark,
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// ),
|
// ),
|
||||||
|
@ -237,7 +240,9 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
||||||
),
|
),
|
||||||
if (!sentFromStack && !hasTx)
|
if (!sentFromStack && !hasTx)
|
||||||
RoundedContainer(
|
RoundedContainer(
|
||||||
color: StackTheme.instance.color.warningBackground,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.warningBackground,
|
||||||
child: RichText(
|
child: RichText(
|
||||||
text: TextSpan(
|
text: TextSpan(
|
||||||
text:
|
text:
|
||||||
|
@ -245,7 +250,9 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
||||||
trade.fromCurrency.toLowerCase() == "xmr" ? 12 : 8,
|
trade.fromCurrency.toLowerCase() == "xmr" ? 12 : 8,
|
||||||
)} ${trade.fromCurrency.toUpperCase()}. ",
|
)} ${trade.fromCurrency.toUpperCase()}. ",
|
||||||
style: STextStyles.label(context).copyWith(
|
style: STextStyles.label(context).copyWith(
|
||||||
color: StackTheme.instance.color.warningForeground,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.warningForeground,
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
),
|
),
|
||||||
children: [
|
children: [
|
||||||
|
@ -257,8 +264,9 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
||||||
: 8,
|
: 8,
|
||||||
)} ${trade.fromCurrency.toUpperCase()}, your transaction may not be converted and it may not be refunded.",
|
)} ${trade.fromCurrency.toUpperCase()}, your transaction may not be converted and it may not be refunded.",
|
||||||
style: STextStyles.label(context).copyWith(
|
style: STextStyles.label(context).copyWith(
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.warningForeground,
|
.extension<StackColors>()!
|
||||||
|
.warningForeground,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -386,11 +394,13 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
||||||
child: QrImage(
|
child: QrImage(
|
||||||
data: trade.payinAddress,
|
data: trade.payinAddress,
|
||||||
size: width,
|
size: width,
|
||||||
backgroundColor: StackTheme
|
backgroundColor: Theme.of(
|
||||||
.instance.color.popupBG,
|
context)
|
||||||
foregroundColor: StackTheme
|
.extension<StackColors>()!
|
||||||
.instance
|
.popupBG,
|
||||||
.color
|
foregroundColor: Theme.of(
|
||||||
|
context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.accentColorDark),
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -406,16 +416,17 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
||||||
// await _capturePng(true);
|
// await _capturePng(true);
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(
|
.getSecondaryEnabledButtonColor(
|
||||||
context),
|
context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
style: STextStyles.button(context)
|
style: STextStyles.button(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance
|
.extension<
|
||||||
.color
|
StackColors>()!
|
||||||
.accentColorDark),
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -433,7 +444,9 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
||||||
Assets.svg.qrcode,
|
Assets.svg.qrcode,
|
||||||
width: 12,
|
width: 12,
|
||||||
height: 12,
|
height: 12,
|
||||||
color: StackTheme.instance.color.infoItemIcons,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.infoItemIcons,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 4,
|
width: 4,
|
||||||
|
@ -480,8 +493,9 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
||||||
Assets.svg.pencil,
|
Assets.svg.pencil,
|
||||||
width: 10,
|
width: 10,
|
||||||
height: 10,
|
height: 10,
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.infoItemIcons,
|
.extension<StackColors>()!
|
||||||
|
.infoItemIcons,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 4,
|
width: 4,
|
||||||
|
@ -539,8 +553,9 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
||||||
Assets.svg.pencil,
|
Assets.svg.pencil,
|
||||||
width: 10,
|
width: 10,
|
||||||
height: 10,
|
height: 10,
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.infoItemIcons,
|
.extension<StackColors>()!
|
||||||
|
.infoItemIcons,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 4,
|
width: 4,
|
||||||
|
@ -659,7 +674,9 @@ class _TradeDetailsViewState extends ConsumerState<TradeDetailsView> {
|
||||||
},
|
},
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
Assets.svg.copy,
|
Assets.svg.copy,
|
||||||
color: StackTheme.instance.color.infoItemIcons,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.infoItemIcons,
|
||||||
width: 12,
|
width: 12,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
|
@ -29,7 +29,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/custom_loading_overlay.dart';
|
import 'package:stackwallet/widgets/custom_loading_overlay.dart';
|
||||||
import 'package:stackwallet/widgets/loading_indicator.dart';
|
import 'package:stackwallet/widgets/loading_indicator.dart';
|
||||||
|
@ -81,7 +81,10 @@ class _WalletInitiatedExchangeViewState
|
||||||
builder: (_) => WillPopScope(
|
builder: (_) => WillPopScope(
|
||||||
onWillPop: () async => false,
|
onWillPop: () async => false,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: StackTheme.instance.color.accentColorDark.withOpacity(0.8),
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark
|
||||||
|
.withOpacity(0.8),
|
||||||
child: const CustomLoadingOverlay(
|
child: const CustomLoadingOverlay(
|
||||||
message: "Updating exchange rate",
|
message: "Updating exchange rate",
|
||||||
eventBus: null,
|
eventBus: null,
|
||||||
|
@ -353,7 +356,7 @@ class _WalletInitiatedExchangeViewState
|
||||||
});
|
});
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -412,7 +415,9 @@ class _WalletInitiatedExchangeViewState
|
||||||
Text(
|
Text(
|
||||||
"You will send",
|
"You will send",
|
||||||
style: STextStyles.itemSubtitle(context).copyWith(
|
style: STextStyles.itemSubtitle(context).copyWith(
|
||||||
color: StackTheme.instance.color.textDark3,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textDark3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
@ -621,9 +626,9 @@ class _WalletInitiatedExchangeViewState
|
||||||
width: 18,
|
width: 18,
|
||||||
height: 18,
|
height: 18,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance
|
.extension<
|
||||||
.color
|
StackColors>()!
|
||||||
.textSubtitle2,
|
.textSubtitle2,
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius
|
BorderRadius
|
||||||
|
@ -648,7 +653,7 @@ class _WalletInitiatedExchangeViewState
|
||||||
width: 18,
|
width: 18,
|
||||||
height: 18,
|
height: 18,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
// color: StackTheme.instance.color.accentColorDark
|
// color: Theme.of(context).extension<StackColors>()!.accentColorDark
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(
|
BorderRadius.circular(
|
||||||
18),
|
18),
|
||||||
|
@ -657,8 +662,10 @@ class _WalletInitiatedExchangeViewState
|
||||||
Assets.svg.circleQuestion,
|
Assets.svg.circleQuestion,
|
||||||
width: 18,
|
width: 18,
|
||||||
height: 18,
|
height: 18,
|
||||||
color: StackTheme.instance
|
color: Theme.of(context)
|
||||||
.color.textSubtitle2,
|
.extension<
|
||||||
|
StackColors>()!
|
||||||
|
.textSubtitle2,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -684,8 +691,9 @@ class _WalletInitiatedExchangeViewState
|
||||||
"-",
|
"-",
|
||||||
style: STextStyles.smallMed14(context)
|
style: STextStyles.smallMed14(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme.instance
|
color: Theme.of(context)
|
||||||
.color.accentColorDark),
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 6,
|
width: 6,
|
||||||
|
@ -712,7 +720,8 @@ class _WalletInitiatedExchangeViewState
|
||||||
Assets.svg.chevronDown,
|
Assets.svg.chevronDown,
|
||||||
width: 5,
|
width: 5,
|
||||||
height: 2.5,
|
height: 2.5,
|
||||||
color: StackTheme.instance.color
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.accentColorDark);
|
.accentColorDark);
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
@ -735,7 +744,9 @@ class _WalletInitiatedExchangeViewState
|
||||||
"You will receive",
|
"You will receive",
|
||||||
style: STextStyles.itemSubtitle(context)
|
style: STextStyles.itemSubtitle(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme.instance.color.textDark3,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textDark3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -985,9 +996,9 @@ class _WalletInitiatedExchangeViewState
|
||||||
width: 18,
|
width: 18,
|
||||||
height: 18,
|
height: 18,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance
|
.extension<
|
||||||
.color
|
StackColors>()!
|
||||||
.textSubtitle2,
|
.textSubtitle2,
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius
|
BorderRadius
|
||||||
|
@ -1010,7 +1021,7 @@ class _WalletInitiatedExchangeViewState
|
||||||
width: 18,
|
width: 18,
|
||||||
height: 18,
|
height: 18,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
// color: StackTheme.instance.color.accentColorDark
|
// color: Theme.of(context).extension<StackColors>()!.accentColorDark
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(
|
BorderRadius.circular(
|
||||||
18),
|
18),
|
||||||
|
@ -1019,8 +1030,10 @@ class _WalletInitiatedExchangeViewState
|
||||||
Assets.svg.circleQuestion,
|
Assets.svg.circleQuestion,
|
||||||
width: 18,
|
width: 18,
|
||||||
height: 18,
|
height: 18,
|
||||||
color: StackTheme.instance
|
color: Theme.of(context)
|
||||||
.color.textSubtitle2,
|
.extension<
|
||||||
|
StackColors>()!
|
||||||
|
.textSubtitle2,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1046,8 +1059,9 @@ class _WalletInitiatedExchangeViewState
|
||||||
"-",
|
"-",
|
||||||
style: STextStyles.smallMed14(context)
|
style: STextStyles.smallMed14(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme.instance
|
color: Theme.of(context)
|
||||||
.color.accentColorDark),
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 6,
|
width: 6,
|
||||||
|
@ -1074,7 +1088,8 @@ class _WalletInitiatedExchangeViewState
|
||||||
Assets.svg.chevronDown,
|
Assets.svg.chevronDown,
|
||||||
width: 5,
|
width: 5,
|
||||||
height: 2.5,
|
height: 2.5,
|
||||||
color: StackTheme.instance.color
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.accentColorDark);
|
.accentColorDark);
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
@ -1232,9 +1247,11 @@ class _WalletInitiatedExchangeViewState
|
||||||
.select((value) => value.canExchange))
|
.select((value) => value.canExchange))
|
||||||
: ref.watch(fixedRateExchangeFormProvider
|
: ref.watch(fixedRateExchangeFormProvider
|
||||||
.select((value) => value.canExchange)))
|
.select((value) => value.canExchange)))
|
||||||
? StackTheme.instance
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonColor(context)
|
||||||
: StackTheme.instance
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonColor(context),
|
||||||
onPressed: ((ref
|
onPressed: ((ref
|
||||||
.read(prefsChangeNotifierProvider)
|
.read(prefsChangeNotifierProvider)
|
||||||
|
@ -1471,7 +1488,8 @@ class _WalletInitiatedExchangeViewState
|
||||||
message:
|
message:
|
||||||
"${response.value!.warningMessage!}\n\nDo you want to attempt trade anyways?",
|
"${response.value!.warningMessage!}\n\nDo you want to attempt trade anyways?",
|
||||||
leftButton: TextButton(
|
leftButton: TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(
|
.getSecondaryEnabledButtonColor(
|
||||||
context),
|
context),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
@ -1485,7 +1503,8 @@ class _WalletInitiatedExchangeViewState
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(
|
.getPrimaryEnabledButtonColor(
|
||||||
context),
|
context),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|
|
@ -17,7 +17,7 @@ import 'package:stackwallet/services/change_now/change_now_loading_service.dart'
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
|
|
||||||
|
@ -170,7 +170,7 @@ class _HomeViewState extends ConsumerState<HomeView> {
|
||||||
key: const Key("walletsViewAlertsButton"),
|
key: const Key("walletsViewAlertsButton"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
icon: SvgPicture.asset(
|
icon: SvgPicture.asset(
|
||||||
ref.watch(notificationsProvider
|
ref.watch(notificationsProvider
|
||||||
.select((value) => value.hasUnreadNotifications))
|
.select((value) => value.hasUnreadNotifications))
|
||||||
|
@ -181,7 +181,9 @@ class _HomeViewState extends ConsumerState<HomeView> {
|
||||||
color: ref.watch(notificationsProvider
|
color: ref.watch(notificationsProvider
|
||||||
.select((value) => value.hasUnreadNotifications))
|
.select((value) => value.hasUnreadNotifications))
|
||||||
? null
|
? null
|
||||||
: StackTheme.instance.color.topNavIconPrimary,
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.topNavIconPrimary,
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
// reset unread state
|
// reset unread state
|
||||||
|
@ -227,10 +229,12 @@ class _HomeViewState extends ConsumerState<HomeView> {
|
||||||
key: const Key("walletsViewSettingsButton"),
|
key: const Key("walletsViewSettingsButton"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
icon: SvgPicture.asset(
|
icon: SvgPicture.asset(
|
||||||
Assets.svg.gear,
|
Assets.svg.gear,
|
||||||
color: StackTheme.instance.color.topNavIconPrimary,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.topNavIconPrimary,
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
),
|
),
|
||||||
|
@ -245,15 +249,18 @@ class _HomeViewState extends ConsumerState<HomeView> {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
body: Container(
|
body: Container(
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
if (Constants.enableExchange)
|
if (Constants.enableExchange)
|
||||||
Container(
|
Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.background,
|
color:
|
||||||
|
Theme.of(context).extension<StackColors>()!.background,
|
||||||
boxShadow: [
|
boxShadow: [
|
||||||
StackTheme.instance.standardBoxShadow,
|
Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.standardBoxShadow,
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
child: const Padding(
|
child: const Padding(
|
||||||
|
|
|
@ -12,7 +12,7 @@ import 'package:stackwallet/providers/exchange/fixed_rate_market_pairs_provider.
|
||||||
import 'package:stackwallet/providers/providers.dart';
|
import 'package:stackwallet/providers/providers.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
|
|
||||||
class HomeViewButtonBar extends ConsumerStatefulWidget {
|
class HomeViewButtonBar extends ConsumerStatefulWidget {
|
||||||
|
@ -148,13 +148,15 @@ class _HomeViewButtonBarState extends ConsumerState<HomeViewButtonBar> {
|
||||||
Expanded(
|
Expanded(
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
style: selectedIndex == 0
|
style: selectedIndex == 0
|
||||||
? StackTheme.instance
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)!
|
.getPrimaryEnabledButtonColor(context)!
|
||||||
.copyWith(
|
.copyWith(
|
||||||
minimumSize:
|
minimumSize:
|
||||||
MaterialStateProperty.all<Size>(const Size(46, 36)),
|
MaterialStateProperty.all<Size>(const Size(46, 36)),
|
||||||
)
|
)
|
||||||
: StackTheme.instance
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context)!
|
.getSecondaryEnabledButtonColor(context)!
|
||||||
.copyWith(
|
.copyWith(
|
||||||
minimumSize:
|
minimumSize:
|
||||||
|
@ -171,8 +173,10 @@ class _HomeViewButtonBarState extends ConsumerState<HomeViewButtonBar> {
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
color: selectedIndex == 0
|
color: selectedIndex == 0
|
||||||
? StackTheme.instance.color.buttonTextPrimary
|
? Theme.of(context)
|
||||||
: StackTheme.instance.color.textDark,
|
.extension<StackColors>()!
|
||||||
|
.buttonTextPrimary
|
||||||
|
: Theme.of(context).extension<StackColors>()!.textDark,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -183,13 +187,15 @@ class _HomeViewButtonBarState extends ConsumerState<HomeViewButtonBar> {
|
||||||
Expanded(
|
Expanded(
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
style: selectedIndex == 1
|
style: selectedIndex == 1
|
||||||
? StackTheme.instance
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)!
|
.getPrimaryEnabledButtonColor(context)!
|
||||||
.copyWith(
|
.copyWith(
|
||||||
minimumSize:
|
minimumSize:
|
||||||
MaterialStateProperty.all<Size>(const Size(46, 36)),
|
MaterialStateProperty.all<Size>(const Size(46, 36)),
|
||||||
)
|
)
|
||||||
: StackTheme.instance
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context)!
|
.getSecondaryEnabledButtonColor(context)!
|
||||||
.copyWith(
|
.copyWith(
|
||||||
minimumSize:
|
minimumSize:
|
||||||
|
@ -229,8 +235,10 @@ class _HomeViewButtonBarState extends ConsumerState<HomeViewButtonBar> {
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
color: selectedIndex == 1
|
color: selectedIndex == 1
|
||||||
? StackTheme.instance.color.buttonTextPrimary
|
? Theme.of(context)
|
||||||
: StackTheme.instance.color.textDark,
|
.extension<StackColors>()!
|
||||||
|
.buttonTextPrimary
|
||||||
|
: Theme.of(context).extension<StackColors>()!.textDark,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -261,7 +269,7 @@ class _HomeViewButtonBarState extends ConsumerState<HomeViewButtonBar> {
|
||||||
// style: STextStyles.button(context).copyWith(
|
// style: STextStyles.button(context).copyWith(
|
||||||
// fontSize: 14,
|
// fontSize: 14,
|
||||||
// color:
|
// color:
|
||||||
// selectedIndex == 2 ? CFColors.light1 : StackTheme.instance.color.accentColorDark
|
// selectedIndex == 2 ? CFColors.light1 : Theme.of(context).extension<StackColors>()!.accentColorDark
|
||||||
// ),
|
// ),
|
||||||
// ),
|
// ),
|
||||||
// ),
|
// ),
|
||||||
|
|
|
@ -5,7 +5,7 @@ import 'package:stackwallet/pages/pinpad_views/create_pin_view.dart';
|
||||||
import 'package:stackwallet/pages_desktop_specific/create_password/create_password_view.dart';
|
import 'package:stackwallet/pages_desktop_specific/create_password/create_password_view.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/util.dart';
|
import 'package:stackwallet/utilities/util.dart';
|
||||||
import 'package:url_launcher/url_launcher.dart';
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ class _IntroViewState extends State<IntroView> {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
debugPrint("BUILD: $runtimeType ");
|
debugPrint("BUILD: $runtimeType ");
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
body: Center(
|
body: Center(
|
||||||
child: !isDesktop
|
child: !isDesktop
|
||||||
? Column(
|
? Column(
|
||||||
|
@ -236,7 +236,9 @@ class GetStartedButton extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return !isDesktop
|
return !isDesktop
|
||||||
? TextButton(
|
? TextButton(
|
||||||
style: StackTheme.instance.getPrimaryEnabledButtonColor(context),
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.getPrimaryEnabledButtonColor(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pushNamed(CreatePinView.routeName);
|
Navigator.of(context).pushNamed(CreatePinView.routeName);
|
||||||
},
|
},
|
||||||
|
@ -249,7 +251,9 @@ class GetStartedButton extends StatelessWidget {
|
||||||
width: 328,
|
width: 328,
|
||||||
height: 70,
|
height: 70,
|
||||||
child: TextButton(
|
child: TextButton(
|
||||||
style: StackTheme.instance.getPrimaryEnabledButtonColor(context),
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.getPrimaryEnabledButtonColor(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pushNamed(CreatePasswordView.routeName);
|
Navigator.of(context).pushNamed(CreatePasswordView.routeName);
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,8 +3,7 @@ import 'dart:math';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:lottie/lottie.dart';
|
import 'package:lottie/lottie.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
|
||||||
|
|
||||||
class LoadingView extends StatelessWidget {
|
class LoadingView extends StatelessWidget {
|
||||||
const LoadingView({Key? key}) : super(key: key);
|
const LoadingView({Key? key}) : super(key: key);
|
||||||
|
@ -13,9 +12,9 @@ class LoadingView extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final size = MediaQuery.of(context).size;
|
final size = MediaQuery.of(context).size;
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
body: Container(
|
body: Container(
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: min(size.width, size.height) * 0.5,
|
width: min(size.width, size.height) * 0.5,
|
||||||
|
|
|
@ -3,7 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:stackwallet/providers/providers.dart';
|
import 'package:stackwallet/providers/providers.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/managed_favorite.dart';
|
import 'package:stackwallet/widgets/managed_favorite.dart';
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ class ManageFavoritesView extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
body: Container(
|
body: Container(
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(
|
padding: const EdgeInsets.only(
|
||||||
left: 12,
|
left: 12,
|
||||||
|
@ -42,7 +42,7 @@ class ManageFavoritesView extends StatelessWidget {
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 4),
|
padding: const EdgeInsets.symmetric(horizontal: 4),
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.popupBG,
|
color: Theme.of(context).extension<StackColors>()!.popupBG,
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
|
@ -117,7 +117,8 @@ class ManageFavoritesView extends StatelessWidget {
|
||||||
child: Text(
|
child: Text(
|
||||||
"Add to favorites",
|
"Add to favorites",
|
||||||
style: STextStyles.itemSubtitle12(context).copyWith(
|
style: STextStyles.itemSubtitle12(context).copyWith(
|
||||||
color: StackTheme.instance.color.textDark3,
|
color:
|
||||||
|
Theme.of(context).extension<StackColors>()!.textDark3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -4,7 +4,7 @@ import 'package:stackwallet/notifications/notification_card.dart';
|
||||||
import 'package:stackwallet/providers/providers.dart';
|
import 'package:stackwallet/providers/providers.dart';
|
||||||
import 'package:stackwallet/providers/ui/unread_notifications_provider.dart';
|
import 'package:stackwallet/providers/ui/unread_notifications_provider.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ class _NotificationsViewState extends ConsumerState<NotificationsView> {
|
||||||
.toList(growable: false);
|
.toList(growable: false);
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
title: Text(
|
title: Text(
|
||||||
"Notifications",
|
"Notifications",
|
||||||
|
|
|
@ -13,7 +13,7 @@ import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
|
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/custom_pin_put/custom_pin_put.dart';
|
import 'package:stackwallet/widgets/custom_pin_put/custom_pin_put.dart';
|
||||||
|
|
||||||
|
@ -40,9 +40,10 @@ class CreatePinView extends ConsumerStatefulWidget {
|
||||||
class _CreatePinViewState extends ConsumerState<CreatePinView> {
|
class _CreatePinViewState extends ConsumerState<CreatePinView> {
|
||||||
BoxDecoration get _pinPutDecoration {
|
BoxDecoration get _pinPutDecoration {
|
||||||
return BoxDecoration(
|
return BoxDecoration(
|
||||||
color: StackTheme.instance.color.textSubtitle3,
|
color: Theme.of(context).extension<StackColors>()!.textSubtitle3,
|
||||||
border:
|
border: Border.all(
|
||||||
Border.all(width: 1, color: StackTheme.instance.color.textSubtitle3),
|
width: 1,
|
||||||
|
color: Theme.of(context).extension<StackColors>()!.textSubtitle3),
|
||||||
borderRadius: BorderRadius.circular(6),
|
borderRadius: BorderRadius.circular(6),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -81,7 +82,7 @@ class _CreatePinViewState extends ConsumerState<CreatePinView> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -136,14 +137,19 @@ class _CreatePinViewState extends ConsumerState<CreatePinView> {
|
||||||
disabledBorder: InputBorder.none,
|
disabledBorder: InputBorder.none,
|
||||||
errorBorder: InputBorder.none,
|
errorBorder: InputBorder.none,
|
||||||
focusedErrorBorder: InputBorder.none,
|
focusedErrorBorder: InputBorder.none,
|
||||||
fillColor: StackTheme.instance.color.background,
|
fillColor:
|
||||||
|
Theme.of(context).extension<StackColors>()!.background,
|
||||||
counterText: "",
|
counterText: "",
|
||||||
),
|
),
|
||||||
submittedFieldDecoration: _pinPutDecoration.copyWith(
|
submittedFieldDecoration: _pinPutDecoration.copyWith(
|
||||||
color: StackTheme.instance.color.infoItemIcons,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.infoItemIcons,
|
||||||
border: Border.all(
|
border: Border.all(
|
||||||
width: 1,
|
width: 1,
|
||||||
color: StackTheme.instance.color.infoItemIcons,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.infoItemIcons,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
selectedFieldDecoration: _pinPutDecoration,
|
selectedFieldDecoration: _pinPutDecoration,
|
||||||
|
@ -196,14 +202,19 @@ class _CreatePinViewState extends ConsumerState<CreatePinView> {
|
||||||
disabledBorder: InputBorder.none,
|
disabledBorder: InputBorder.none,
|
||||||
errorBorder: InputBorder.none,
|
errorBorder: InputBorder.none,
|
||||||
focusedErrorBorder: InputBorder.none,
|
focusedErrorBorder: InputBorder.none,
|
||||||
fillColor: StackTheme.instance.color.background,
|
fillColor:
|
||||||
|
Theme.of(context).extension<StackColors>()!.background,
|
||||||
counterText: "",
|
counterText: "",
|
||||||
),
|
),
|
||||||
submittedFieldDecoration: _pinPutDecoration.copyWith(
|
submittedFieldDecoration: _pinPutDecoration.copyWith(
|
||||||
color: StackTheme.instance.color.infoItemIcons,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.infoItemIcons,
|
||||||
border: Border.all(
|
border: Border.all(
|
||||||
width: 1,
|
width: 1,
|
||||||
color: StackTheme.instance.color.infoItemIcons,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.infoItemIcons,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
selectedFieldDecoration: _pinPutDecoration,
|
selectedFieldDecoration: _pinPutDecoration,
|
||||||
|
|
|
@ -16,7 +16,7 @@ import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
|
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/custom_pin_put/custom_pin_put.dart';
|
import 'package:stackwallet/widgets/custom_pin_put/custom_pin_put.dart';
|
||||||
import 'package:stackwallet/widgets/shake/shake.dart';
|
import 'package:stackwallet/widgets/shake/shake.dart';
|
||||||
|
@ -151,9 +151,10 @@ class _LockscreenViewState extends ConsumerState<LockscreenView> {
|
||||||
|
|
||||||
BoxDecoration get _pinPutDecoration {
|
BoxDecoration get _pinPutDecoration {
|
||||||
return BoxDecoration(
|
return BoxDecoration(
|
||||||
color: StackTheme.instance.color.textSubtitle2,
|
color: Theme.of(context).extension<StackColors>()!.textSubtitle2,
|
||||||
border:
|
border: Border.all(
|
||||||
Border.all(width: 1, color: StackTheme.instance.color.textSubtitle2),
|
width: 1,
|
||||||
|
color: Theme.of(context).extension<StackColors>()!.textSubtitle2),
|
||||||
borderRadius: BorderRadius.circular(6),
|
borderRadius: BorderRadius.circular(6),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -165,7 +166,7 @@ class _LockscreenViewState extends ConsumerState<LockscreenView> {
|
||||||
late Biometrics biometrics;
|
late Biometrics biometrics;
|
||||||
|
|
||||||
Scaffold get _body => Scaffold(
|
Scaffold get _body => Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: widget.showBackButton
|
leading: widget.showBackButton
|
||||||
? AppBarBackButton(
|
? AppBarBackButton(
|
||||||
|
@ -221,14 +222,20 @@ class _LockscreenViewState extends ConsumerState<LockscreenView> {
|
||||||
disabledBorder: InputBorder.none,
|
disabledBorder: InputBorder.none,
|
||||||
errorBorder: InputBorder.none,
|
errorBorder: InputBorder.none,
|
||||||
focusedErrorBorder: InputBorder.none,
|
focusedErrorBorder: InputBorder.none,
|
||||||
fillColor: StackTheme.instance.color.background,
|
fillColor: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.background,
|
||||||
counterText: "",
|
counterText: "",
|
||||||
),
|
),
|
||||||
submittedFieldDecoration: _pinPutDecoration.copyWith(
|
submittedFieldDecoration: _pinPutDecoration.copyWith(
|
||||||
color: StackTheme.instance.color.infoItemIcons,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.infoItemIcons,
|
||||||
border: Border.all(
|
border: Border.all(
|
||||||
width: 1,
|
width: 1,
|
||||||
color: StackTheme.instance.color.infoItemIcons,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.infoItemIcons,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
selectedFieldDecoration: _pinPutDecoration,
|
selectedFieldDecoration: _pinPutDecoration,
|
||||||
|
|
|
@ -18,7 +18,7 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
@ -101,7 +101,7 @@ class _GenerateUriQrCodeViewState extends State<GenerateUriQrCodeView> {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
debugPrint("BUILD: $runtimeType");
|
debugPrint("BUILD: $runtimeType");
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -246,7 +246,8 @@ class _GenerateUriQrCodeViewState extends State<GenerateUriQrCodeView> {
|
||||||
height: 8,
|
height: 8,
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonColor(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
final amountString = amountController.text;
|
final amountString = amountController.text;
|
||||||
|
@ -318,11 +319,13 @@ class _GenerateUriQrCodeViewState extends State<GenerateUriQrCodeView> {
|
||||||
child: QrImage(
|
child: QrImage(
|
||||||
data: uriString,
|
data: uriString,
|
||||||
size: width,
|
size: width,
|
||||||
backgroundColor: StackTheme
|
backgroundColor: Theme.of(
|
||||||
.instance.color.popupBG,
|
context)
|
||||||
foregroundColor: StackTheme
|
.extension<StackColors>()!
|
||||||
.instance
|
.popupBG,
|
||||||
.color
|
foregroundColor: Theme.of(
|
||||||
|
context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.accentColorDark),
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -338,7 +341,8 @@ class _GenerateUriQrCodeViewState extends State<GenerateUriQrCodeView> {
|
||||||
// TODO: add save button as well
|
// TODO: add save button as well
|
||||||
await _capturePng(true);
|
await _capturePng(true);
|
||||||
},
|
},
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(
|
.getSecondaryEnabledButtonColor(
|
||||||
context),
|
context),
|
||||||
child: Row(
|
child: Row(
|
||||||
|
@ -366,9 +370,9 @@ class _GenerateUriQrCodeViewState extends State<GenerateUriQrCodeView> {
|
||||||
style: STextStyles.button(
|
style: STextStyles.button(
|
||||||
context)
|
context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance
|
.extension<
|
||||||
.color
|
StackColors>()!
|
||||||
.buttonTextSecondary,
|
.buttonTextSecondary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -14,7 +14,7 @@ import 'package:stackwallet/utilities/clipboard_interface.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/blue_text_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/blue_text_button.dart';
|
||||||
import 'package:stackwallet/widgets/custom_loading_overlay.dart';
|
import 'package:stackwallet/widgets/custom_loading_overlay.dart';
|
||||||
|
@ -52,7 +52,10 @@ class _ReceiveViewState extends ConsumerState<ReceiveView> {
|
||||||
return WillPopScope(
|
return WillPopScope(
|
||||||
onWillPop: () async => shouldPop,
|
onWillPop: () async => shouldPop,
|
||||||
child: Container(
|
child: Container(
|
||||||
color: StackTheme.instance.color.overlay.withOpacity(0.5),
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.overlay
|
||||||
|
.withOpacity(0.5),
|
||||||
child: const CustomLoadingOverlay(
|
child: const CustomLoadingOverlay(
|
||||||
message: "Generating address",
|
message: "Generating address",
|
||||||
eventBus: null,
|
eventBus: null,
|
||||||
|
@ -113,7 +116,7 @@ class _ReceiveViewState extends ConsumerState<ReceiveView> {
|
||||||
});
|
});
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -161,8 +164,9 @@ class _ReceiveViewState extends ConsumerState<ReceiveView> {
|
||||||
Assets.svg.copy,
|
Assets.svg.copy,
|
||||||
width: 10,
|
width: 10,
|
||||||
height: 10,
|
height: 10,
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.infoItemIcons,
|
.extension<StackColors>()!
|
||||||
|
.infoItemIcons,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 4,
|
width: 4,
|
||||||
|
@ -199,12 +203,15 @@ class _ReceiveViewState extends ConsumerState<ReceiveView> {
|
||||||
if (coin != Coin.epicCash)
|
if (coin != Coin.epicCash)
|
||||||
TextButton(
|
TextButton(
|
||||||
onPressed: generateNewAddress,
|
onPressed: generateNewAddress,
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Generate new address",
|
"Generate new address",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
color: StackTheme.instance.color.accentColorDark),
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
@ -219,8 +226,9 @@ class _ReceiveViewState extends ConsumerState<ReceiveView> {
|
||||||
QrImage(
|
QrImage(
|
||||||
data: "${coin.uriScheme}:$receivingAddress",
|
data: "${coin.uriScheme}:$receivingAddress",
|
||||||
size: MediaQuery.of(context).size.width / 2,
|
size: MediaQuery.of(context).size.width / 2,
|
||||||
foregroundColor:
|
foregroundColor: Theme.of(context)
|
||||||
StackTheme.instance.color.accentColorDark),
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 20,
|
height: 20,
|
||||||
),
|
),
|
||||||
|
|
|
@ -15,7 +15,7 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/format.dart';
|
import 'package:stackwallet/utilities/format.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_container.dart';
|
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
@ -111,12 +111,15 @@ class _ConfirmTransactionViewState
|
||||||
title: "Broadcast transaction failed",
|
title: "Broadcast transaction failed",
|
||||||
message: e.toString(),
|
message: e.toString(),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style:
|
style: Theme.of(context)
|
||||||
StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
.extension<StackColors>()!
|
||||||
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Ok",
|
"Ok",
|
||||||
style: STextStyles.button(context)
|
style: STextStyles.button(context).copyWith(
|
||||||
.copyWith(color: StackTheme.instance.color.accentColorDark),
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
|
@ -142,7 +145,7 @@ class _ConfirmTransactionViewState
|
||||||
.select((value) => value.getManagerProvider(walletId)));
|
.select((value) => value.getManagerProvider(walletId)));
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
// if (FocusScope.of(context).hasFocus) {
|
// if (FocusScope.of(context).hasFocus) {
|
||||||
|
@ -283,7 +286,9 @@ class _ConfirmTransactionViewState
|
||||||
height: 12,
|
height: 12,
|
||||||
),
|
),
|
||||||
RoundedContainer(
|
RoundedContainer(
|
||||||
color: StackTheme.instance.color.snackBarBackSuccess,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.snackBarBackSuccess,
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
|
@ -313,7 +318,8 @@ class _ConfirmTransactionViewState
|
||||||
height: 16,
|
height: 16,
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonColor(context),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
final unlocked = await Navigator.push(
|
final unlocked = await Navigator.push(
|
||||||
|
|
|
@ -9,6 +9,7 @@ import 'package:stackwallet/models/send_view_auto_fill_data.dart';
|
||||||
import 'package:stackwallet/pages/address_book_views/address_book_view.dart';
|
import 'package:stackwallet/pages/address_book_views/address_book_view.dart';
|
||||||
import 'package:stackwallet/pages/send_view/confirm_transaction_view.dart';
|
import 'package:stackwallet/pages/send_view/confirm_transaction_view.dart';
|
||||||
import 'package:stackwallet/pages/send_view/sub_widgets/building_transaction_dialog.dart';
|
import 'package:stackwallet/pages/send_view/sub_widgets/building_transaction_dialog.dart';
|
||||||
|
import 'package:stackwallet/pages/send_view/sub_widgets/firo_balance_selection_sheet.dart';
|
||||||
import 'package:stackwallet/pages/send_view/sub_widgets/transaction_fee_selection_sheet.dart';
|
import 'package:stackwallet/pages/send_view/sub_widgets/transaction_fee_selection_sheet.dart';
|
||||||
import 'package:stackwallet/providers/providers.dart';
|
import 'package:stackwallet/providers/providers.dart';
|
||||||
import 'package:stackwallet/providers/ui/fee_rate_type_state_provider.dart';
|
import 'package:stackwallet/providers/ui/fee_rate_type_state_provider.dart';
|
||||||
|
@ -27,7 +28,7 @@ import 'package:stackwallet/utilities/enums/fee_rate_type_enum.dart';
|
||||||
import 'package:stackwallet/utilities/format.dart';
|
import 'package:stackwallet/utilities/format.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/animated_text.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/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/blue_text_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/blue_text_button.dart';
|
||||||
|
@ -39,8 +40,6 @@ import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
import 'package:stackwallet/widgets/textfield_icon_button.dart';
|
||||||
|
|
||||||
import 'sub_widgets/firo_balance_selection_sheet.dart';
|
|
||||||
|
|
||||||
class SendView extends ConsumerStatefulWidget {
|
class SendView extends ConsumerStatefulWidget {
|
||||||
const SendView({
|
const SendView({
|
||||||
Key? key,
|
Key? key,
|
||||||
|
@ -360,7 +359,7 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
}
|
}
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -400,7 +399,9 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.popupBG,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.popupBG,
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
|
@ -856,8 +857,9 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
error,
|
error,
|
||||||
textAlign: TextAlign.left,
|
textAlign: TextAlign.left,
|
||||||
style: STextStyles.label(context).copyWith(
|
style: STextStyles.label(context).copyWith(
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.textError,
|
.extension<StackColors>()!
|
||||||
|
.textError,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -891,8 +893,9 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
horizontal: 12,
|
horizontal: 12,
|
||||||
),
|
),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
splashColor:
|
splashColor: Theme.of(context)
|
||||||
StackTheme.instance.color.highlight,
|
.extension<StackColors>()!
|
||||||
|
.highlight,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
|
@ -997,8 +1000,9 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
Assets.svg.chevronDown,
|
Assets.svg.chevronDown,
|
||||||
width: 8,
|
width: 8,
|
||||||
height: 4,
|
height: 4,
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textSubtitle2,
|
.extension<StackColors>()!
|
||||||
|
.textSubtitle2,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -1090,8 +1094,9 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
coin.ticker,
|
coin.ticker,
|
||||||
style: STextStyles.smallMed14(context)
|
style: STextStyles.smallMed14(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorDark),
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -1193,8 +1198,9 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
.select((value) => value.currency)),
|
.select((value) => value.currency)),
|
||||||
style: STextStyles.smallMed14(context)
|
style: STextStyles.smallMed14(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorDark),
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -1270,8 +1276,9 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
horizontal: 12,
|
horizontal: 12,
|
||||||
),
|
),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
splashColor:
|
splashColor: Theme.of(context)
|
||||||
StackTheme.instance.color.highlight,
|
.extension<StackColors>()!
|
||||||
|
.highlight,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
|
@ -1398,8 +1405,9 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
Assets.svg.chevronDown,
|
Assets.svg.chevronDown,
|
||||||
width: 8,
|
width: 8,
|
||||||
height: 4,
|
height: 4,
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textSubtitle2,
|
.extension<StackColors>()!
|
||||||
|
.textSubtitle2,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -1439,16 +1447,17 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
message:
|
message:
|
||||||
"Sending to self is currently disabled",
|
"Sending to self is currently disabled",
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(
|
.getSecondaryEnabledButtonColor(
|
||||||
context),
|
context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Ok",
|
"Ok",
|
||||||
style: STextStyles.button(context)
|
style: STextStyles.button(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance
|
.extension<
|
||||||
.color
|
StackColors>()!
|
||||||
.accentColorDark),
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -1503,16 +1512,17 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
message:
|
message:
|
||||||
"You are about to send your entire balance. Would you like to continue?",
|
"You are about to send your entire balance. Would you like to continue?",
|
||||||
leftButton: TextButton(
|
leftButton: TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(
|
.getSecondaryEnabledButtonColor(
|
||||||
context),
|
context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
style: STextStyles.button(context)
|
style: STextStyles.button(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance
|
.extension<
|
||||||
.color
|
StackColors>()!
|
||||||
.accentColorDark),
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -1520,7 +1530,8 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(
|
.getPrimaryEnabledButtonColor(
|
||||||
context),
|
context),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
@ -1628,7 +1639,8 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
title: "Transaction failed",
|
title: "Transaction failed",
|
||||||
message: e.toString(),
|
message: e.toString(),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(
|
.getSecondaryEnabledButtonColor(
|
||||||
context),
|
context),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
@ -1636,9 +1648,9 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
style: STextStyles.button(
|
style: STextStyles.button(
|
||||||
context)
|
context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance
|
.extension<
|
||||||
.color
|
StackColors>()!
|
||||||
.accentColorDark),
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -1655,9 +1667,11 @@ class _SendViewState extends ConsumerState<SendView> {
|
||||||
style: ref
|
style: ref
|
||||||
.watch(previewTxButtonStateProvider.state)
|
.watch(previewTxButtonStateProvider.state)
|
||||||
.state
|
.state
|
||||||
? StackTheme.instance
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonColor(context)
|
||||||
: StackTheme.instance
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Preview",
|
"Preview",
|
||||||
|
|
|
@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
|
|
||||||
class BuildingTransactionDialog extends StatefulWidget {
|
class BuildingTransactionDialog extends StatefulWidget {
|
||||||
|
@ -62,13 +62,15 @@ class _RestoringDialogState extends State<BuildingTransactionDialog>
|
||||||
turns: _spinAnimation,
|
turns: _spinAnimation,
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
Assets.svg.arrowRotate,
|
Assets.svg.arrowRotate,
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context).extension<StackColors>()!.accentColorDark,
|
||||||
width: 24,
|
width: 24,
|
||||||
height: 24,
|
height: 24,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
style: STextStyles.itemSubtitle12(context),
|
style: STextStyles.itemSubtitle12(context),
|
||||||
|
|
|
@ -7,7 +7,7 @@ import 'package:stackwallet/services/coins/firo/firo_wallet.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/animated_text.dart';
|
import 'package:stackwallet/widgets/animated_text.dart';
|
||||||
|
|
||||||
class FiroBalanceSelectionSheet extends ConsumerStatefulWidget {
|
class FiroBalanceSelectionSheet extends ConsumerStatefulWidget {
|
||||||
|
@ -50,7 +50,7 @@ class _FiroBalanceSelectionSheetState
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.popupBG,
|
color: Theme.of(context).extension<StackColors>()!.popupBG,
|
||||||
borderRadius: const BorderRadius.vertical(
|
borderRadius: const BorderRadius.vertical(
|
||||||
top: Radius.circular(20),
|
top: Radius.circular(20),
|
||||||
),
|
),
|
||||||
|
@ -69,7 +69,9 @@ class _FiroBalanceSelectionSheetState
|
||||||
Center(
|
Center(
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.textFieldDefaultBG,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textFieldDefaultBG,
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
|
@ -114,8 +116,9 @@ class _FiroBalanceSelectionSheetState
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
child: Radio(
|
child: Radio(
|
||||||
activeColor: StackTheme
|
activeColor: Theme.of(context)
|
||||||
.instance.color.radioButtonIconEnabled,
|
.extension<StackColors>()!
|
||||||
|
.radioButtonIconEnabled,
|
||||||
value: "Private",
|
value: "Private",
|
||||||
groupValue: ref
|
groupValue: ref
|
||||||
.watch(
|
.watch(
|
||||||
|
@ -204,8 +207,9 @@ class _FiroBalanceSelectionSheetState
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
child: Radio(
|
child: Radio(
|
||||||
activeColor: StackTheme
|
activeColor: Theme.of(context)
|
||||||
.instance.color.radioButtonIconEnabled,
|
.extension<StackColors>()!
|
||||||
|
.radioButtonIconEnabled,
|
||||||
value: "Public",
|
value: "Public",
|
||||||
groupValue: ref
|
groupValue: ref
|
||||||
.watch(
|
.watch(
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
|
|
||||||
class SendingTransactionDialog extends StatefulWidget {
|
class SendingTransactionDialog extends StatefulWidget {
|
||||||
|
@ -55,7 +55,7 @@ class _RestoringDialogState extends State<SendingTransactionDialog>
|
||||||
turns: _spinAnimation,
|
turns: _spinAnimation,
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
Assets.svg.arrowRotate,
|
Assets.svg.arrowRotate,
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context).extension<StackColors>()!.accentColorDark,
|
||||||
width: 24,
|
width: 24,
|
||||||
height: 24,
|
height: 24,
|
||||||
),
|
),
|
||||||
|
|
|
@ -11,7 +11,7 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/enums/fee_rate_type_enum.dart';
|
import 'package:stackwallet/utilities/enums/fee_rate_type_enum.dart';
|
||||||
import 'package:stackwallet/utilities/format.dart';
|
import 'package:stackwallet/utilities/format.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/animated_text.dart';
|
import 'package:stackwallet/widgets/animated_text.dart';
|
||||||
|
|
||||||
final feeSheetSessionCacheProvider =
|
final feeSheetSessionCacheProvider =
|
||||||
|
@ -163,7 +163,7 @@ class _TransactionFeeSelectionSheetState
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.popupBG,
|
color: Theme.of(context).extension<StackColors>()!.popupBG,
|
||||||
borderRadius: const BorderRadius.vertical(
|
borderRadius: const BorderRadius.vertical(
|
||||||
top: Radius.circular(20),
|
top: Radius.circular(20),
|
||||||
),
|
),
|
||||||
|
@ -182,7 +182,9 @@ class _TransactionFeeSelectionSheetState
|
||||||
Center(
|
Center(
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.textFieldDefaultBG,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textFieldDefaultBG,
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
|
@ -235,8 +237,9 @@ class _TransactionFeeSelectionSheetState
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
child: Radio(
|
child: Radio(
|
||||||
activeColor: StackTheme
|
activeColor: Theme.of(context)
|
||||||
.instance.color.radioButtonIconEnabled,
|
.extension<StackColors>()!
|
||||||
|
.radioButtonIconEnabled,
|
||||||
value: FeeRateType.fast,
|
value: FeeRateType.fast,
|
||||||
groupValue: ref
|
groupValue: ref
|
||||||
.watch(feeRateTypeStateProvider.state)
|
.watch(feeRateTypeStateProvider.state)
|
||||||
|
@ -362,8 +365,9 @@ class _TransactionFeeSelectionSheetState
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
child: Radio(
|
child: Radio(
|
||||||
activeColor: StackTheme
|
activeColor: Theme.of(context)
|
||||||
.instance.color.radioButtonIconEnabled,
|
.extension<StackColors>()!
|
||||||
|
.radioButtonIconEnabled,
|
||||||
value: FeeRateType.average,
|
value: FeeRateType.average,
|
||||||
groupValue: ref
|
groupValue: ref
|
||||||
.watch(feeRateTypeStateProvider.state)
|
.watch(feeRateTypeStateProvider.state)
|
||||||
|
@ -488,8 +492,9 @@ class _TransactionFeeSelectionSheetState
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
child: Radio(
|
child: Radio(
|
||||||
activeColor: StackTheme
|
activeColor: Theme.of(context)
|
||||||
.instance.color.radioButtonIconEnabled,
|
.extension<StackColors>()!
|
||||||
|
.radioButtonIconEnabled,
|
||||||
value: FeeRateType.slow,
|
value: FeeRateType.slow,
|
||||||
groupValue: ref
|
groupValue: ref
|
||||||
.watch(feeRateTypeStateProvider.state)
|
.watch(feeRateTypeStateProvider.state)
|
||||||
|
|
|
@ -10,7 +10,7 @@ import 'package:lelantus/git_versions.dart' as FIRO_VERSIONS;
|
||||||
import 'package:package_info_plus/package_info_plus.dart';
|
import 'package:package_info_plus/package_info_plus.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/blue_text_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/blue_text_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
@ -118,7 +118,7 @@ class AboutView extends ConsumerWidget {
|
||||||
Future commitMoneroFuture = Future.wait(futureMoneroList);
|
Future commitMoneroFuture = Future.wait(futureMoneroList);
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -269,20 +269,23 @@ class AboutView extends ConsumerWidget {
|
||||||
case CommitStatus.isHead:
|
case CommitStatus.isHead:
|
||||||
indicationStyle =
|
indicationStyle =
|
||||||
STextStyles.itemSubtitle(context).copyWith(
|
STextStyles.itemSubtitle(context).copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorGreen);
|
.extension<StackColors>()!
|
||||||
|
.accentColorGreen);
|
||||||
break;
|
break;
|
||||||
case CommitStatus.isOldCommit:
|
case CommitStatus.isOldCommit:
|
||||||
indicationStyle =
|
indicationStyle =
|
||||||
STextStyles.itemSubtitle(context).copyWith(
|
STextStyles.itemSubtitle(context).copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorYellow);
|
.extension<StackColors>()!
|
||||||
|
.accentColorYellow);
|
||||||
break;
|
break;
|
||||||
case CommitStatus.notACommit:
|
case CommitStatus.notACommit:
|
||||||
indicationStyle =
|
indicationStyle =
|
||||||
STextStyles.itemSubtitle(context).copyWith(
|
STextStyles.itemSubtitle(context).copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorRed);
|
.extension<StackColors>()!
|
||||||
|
.accentColorRed);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -335,20 +338,23 @@ class AboutView extends ConsumerWidget {
|
||||||
case CommitStatus.isHead:
|
case CommitStatus.isHead:
|
||||||
indicationStyle =
|
indicationStyle =
|
||||||
STextStyles.itemSubtitle(context).copyWith(
|
STextStyles.itemSubtitle(context).copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorGreen);
|
.extension<StackColors>()!
|
||||||
|
.accentColorGreen);
|
||||||
break;
|
break;
|
||||||
case CommitStatus.isOldCommit:
|
case CommitStatus.isOldCommit:
|
||||||
indicationStyle =
|
indicationStyle =
|
||||||
STextStyles.itemSubtitle(context).copyWith(
|
STextStyles.itemSubtitle(context).copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorYellow);
|
.extension<StackColors>()!
|
||||||
|
.accentColorYellow);
|
||||||
break;
|
break;
|
||||||
case CommitStatus.notACommit:
|
case CommitStatus.notACommit:
|
||||||
indicationStyle =
|
indicationStyle =
|
||||||
STextStyles.itemSubtitle(context).copyWith(
|
STextStyles.itemSubtitle(context).copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorRed);
|
.extension<StackColors>()!
|
||||||
|
.accentColorRed);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -401,20 +407,23 @@ class AboutView extends ConsumerWidget {
|
||||||
case CommitStatus.isHead:
|
case CommitStatus.isHead:
|
||||||
indicationStyle =
|
indicationStyle =
|
||||||
STextStyles.itemSubtitle(context).copyWith(
|
STextStyles.itemSubtitle(context).copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorGreen);
|
.extension<StackColors>()!
|
||||||
|
.accentColorGreen);
|
||||||
break;
|
break;
|
||||||
case CommitStatus.isOldCommit:
|
case CommitStatus.isOldCommit:
|
||||||
indicationStyle =
|
indicationStyle =
|
||||||
STextStyles.itemSubtitle(context).copyWith(
|
STextStyles.itemSubtitle(context).copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorYellow);
|
.extension<StackColors>()!
|
||||||
|
.accentColorYellow);
|
||||||
break;
|
break;
|
||||||
case CommitStatus.notACommit:
|
case CommitStatus.notACommit:
|
||||||
indicationStyle =
|
indicationStyle =
|
||||||
STextStyles.itemSubtitle(context).copyWith(
|
STextStyles.itemSubtitle(context).copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorRed);
|
.extension<StackColors>()!
|
||||||
|
.accentColorRed);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -4,7 +4,7 @@ import 'package:stackwallet/pages/settings_views/global_settings_view/advanced_v
|
||||||
import 'package:stackwallet/providers/global/prefs_provider.dart';
|
import 'package:stackwallet/providers/global/prefs_provider.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/draggable_switch_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/draggable_switch_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
@ -21,7 +21,7 @@ class AdvancedSettingsView extends StatelessWidget {
|
||||||
debugPrint("BUILD: $runtimeType");
|
debugPrint("BUILD: $runtimeType");
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -41,7 +41,7 @@ class AdvancedSettingsView extends StatelessWidget {
|
||||||
RoundedWhiteContainer(
|
RoundedWhiteContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
|
@ -75,7 +75,7 @@ class AdvancedSettingsView extends StatelessWidget {
|
||||||
child: Consumer(
|
child: Consumer(
|
||||||
builder: (_, ref, __) {
|
builder: (_, ref, __) {
|
||||||
return RawMaterialButton(
|
return RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
|
|
|
@ -15,7 +15,7 @@ import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/blue_text_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/blue_text_button.dart';
|
||||||
import 'package:stackwallet/widgets/custom_loading_overlay.dart';
|
import 'package:stackwallet/widgets/custom_loading_overlay.dart';
|
||||||
|
@ -90,7 +90,7 @@ class _DebugViewState extends ConsumerState<DebugView> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -114,10 +114,12 @@ class _DebugViewState extends ConsumerState<DebugView> {
|
||||||
key: const Key("deleteLogsAppBarButtonKey"),
|
key: const Key("deleteLogsAppBarButtonKey"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
icon: SvgPicture.asset(
|
icon: SvgPicture.asset(
|
||||||
Assets.svg.trash,
|
Assets.svg.trash,
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
),
|
),
|
||||||
|
@ -129,7 +131,8 @@ class _DebugViewState extends ConsumerState<DebugView> {
|
||||||
message:
|
message:
|
||||||
"You are about to delete all logs permanently. Are you sure?",
|
"You are about to delete all logs permanently. Are you sure?",
|
||||||
leftButton: TextButton(
|
leftButton: TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancel",
|
"Cancel",
|
||||||
|
@ -140,7 +143,8 @@ class _DebugViewState extends ConsumerState<DebugView> {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Delete logs",
|
"Delete logs",
|
||||||
|
@ -376,14 +380,18 @@ class _DebugViewState extends ConsumerState<DebugView> {
|
||||||
return Container(
|
return Container(
|
||||||
key: Key("log_${log.id}_${log.timestampInMillisUTC}"),
|
key: Key("log_${log.id}_${log.timestampInMillisUTC}"),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.popupBG,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.popupBG,
|
||||||
borderRadius: _borderRadius(index, logs.length),
|
borderRadius: _borderRadius(index, logs.length),
|
||||||
),
|
),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(4),
|
padding: const EdgeInsets.all(4),
|
||||||
child: RoundedContainer(
|
child: RoundedContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
color: StackTheme.instance.color.popupBG,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.popupBG,
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
|
@ -395,18 +403,20 @@ class _DebugViewState extends ConsumerState<DebugView> {
|
||||||
.copyWith(
|
.copyWith(
|
||||||
fontSize: 8,
|
fontSize: 8,
|
||||||
color: (log.logLevel == LogLevel.Info
|
color: (log.logLevel == LogLevel.Info
|
||||||
? StackTheme.instance.color
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.topNavIconGreen
|
.topNavIconGreen
|
||||||
: (log.logLevel ==
|
: (log.logLevel ==
|
||||||
LogLevel.Warning
|
LogLevel.Warning
|
||||||
? StackTheme.instance.color
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.topNavIconYellow
|
.topNavIconYellow
|
||||||
: (log.logLevel ==
|
: (log.logLevel ==
|
||||||
LogLevel.Error
|
LogLevel.Error
|
||||||
? Colors.orange
|
? Colors.orange
|
||||||
: StackTheme
|
: Theme.of(context)
|
||||||
.instance
|
.extension<
|
||||||
.color
|
StackColors>()!
|
||||||
.topNavIconRed))),
|
.topNavIconRed))),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -415,8 +425,9 @@ class _DebugViewState extends ConsumerState<DebugView> {
|
||||||
style: STextStyles.baseXS(context)
|
style: STextStyles.baseXS(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
fontSize: 8,
|
fontSize: 8,
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textDark3,
|
.extension<StackColors>()!
|
||||||
|
.textDark3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
@ -9,7 +9,6 @@ import 'package:stackwallet/utilities/theme/color_theme.dart';
|
||||||
import 'package:stackwallet/utilities/theme/dark_colors.dart';
|
import 'package:stackwallet/utilities/theme/dark_colors.dart';
|
||||||
import 'package:stackwallet/utilities/theme/light_colors.dart';
|
import 'package:stackwallet/utilities/theme/light_colors.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/draggable_switch_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/draggable_switch_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
@ -22,7 +21,7 @@ class AppearanceSettingsView extends ConsumerWidget {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -51,7 +50,9 @@ class AppearanceSettingsView extends ConsumerWidget {
|
||||||
child: Consumer(
|
child: Consumer(
|
||||||
builder: (_, ref, __) {
|
builder: (_, ref, __) {
|
||||||
return RawMaterialButton(
|
return RawMaterialButton(
|
||||||
splashColor: StackTheme.instance.color.highlight,
|
splashColor: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.highlight,
|
||||||
materialTapTargetSize:
|
materialTapTargetSize:
|
||||||
MaterialTapTargetSize.shrinkWrap,
|
MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
|
@ -102,7 +103,9 @@ class AppearanceSettingsView extends ConsumerWidget {
|
||||||
child: Consumer(
|
child: Consumer(
|
||||||
builder: (_, ref, __) {
|
builder: (_, ref, __) {
|
||||||
return RawMaterialButton(
|
return RawMaterialButton(
|
||||||
splashColor: StackTheme.instance.color.highlight,
|
splashColor: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.highlight,
|
||||||
materialTapTargetSize:
|
materialTapTargetSize:
|
||||||
MaterialTapTargetSize.shrinkWrap,
|
MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
|
@ -113,28 +116,15 @@ class AppearanceSettingsView extends ConsumerWidget {
|
||||||
onPressed: null,
|
onPressed: null,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding:
|
padding:
|
||||||
const EdgeInsets.symmetric(vertical: 2),
|
const EdgeInsets.symmetric(vertical: 8),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment:
|
mainAxisAlignment:
|
||||||
MainAxisAlignment.spaceBetween,
|
MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Column(
|
Text(
|
||||||
crossAxisAlignment:
|
"Enable dark mode",
|
||||||
CrossAxisAlignment.start,
|
style: STextStyles.titleBold12(context),
|
||||||
children: [
|
textAlign: TextAlign.left,
|
||||||
Text(
|
|
||||||
"Enabled dark mode",
|
|
||||||
style:
|
|
||||||
STextStyles.titleBold12(context),
|
|
||||||
textAlign: TextAlign.left,
|
|
||||||
),
|
|
||||||
Text(
|
|
||||||
"Requires restart",
|
|
||||||
style:
|
|
||||||
STextStyles.itemSubtitle(context),
|
|
||||||
textAlign: TextAlign.left,
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: 20,
|
height: 20,
|
||||||
|
|
|
@ -6,7 +6,7 @@ import 'package:stackwallet/providers/providers.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_container.dart';
|
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||||
|
@ -101,7 +101,7 @@ class _CurrencyViewState extends ConsumerState<BaseCurrencySettingsView> {
|
||||||
}
|
}
|
||||||
currenciesWithoutSelected = _filtered();
|
currenciesWithoutSelected = _filtered();
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -204,7 +204,9 @@ class _CurrencyViewState extends ConsumerState<BaseCurrencySettingsView> {
|
||||||
(context, index) {
|
(context, index) {
|
||||||
return Container(
|
return Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.popupBG,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.popupBG,
|
||||||
borderRadius: _borderRadius(index),
|
borderRadius: _borderRadius(index),
|
||||||
),
|
),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
@ -214,8 +216,12 @@ class _CurrencyViewState extends ConsumerState<BaseCurrencySettingsView> {
|
||||||
child: RoundedContainer(
|
child: RoundedContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
color: currenciesWithoutSelected[index] == current
|
color: currenciesWithoutSelected[index] == current
|
||||||
? StackTheme.instance.color.currencyListItemBG
|
? Theme.of(context)
|
||||||
: StackTheme.instance.color.popupBG,
|
.extension<StackColors>()!
|
||||||
|
.currencyListItemBG
|
||||||
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.popupBG,
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
onTap(index);
|
onTap(index);
|
||||||
|
@ -235,7 +241,8 @@ class _CurrencyViewState extends ConsumerState<BaseCurrencySettingsView> {
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
child: Radio(
|
child: Radio(
|
||||||
activeColor: StackTheme.instance.color
|
activeColor: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.radioButtonIconEnabled,
|
.radioButtonIconEnabled,
|
||||||
materialTapTargetSize:
|
materialTapTargetSize:
|
||||||
MaterialTapTargetSize.shrinkWrap,
|
MaterialTapTargetSize.shrinkWrap,
|
||||||
|
|
|
@ -16,7 +16,7 @@ import 'package:stackwallet/pages/settings_views/sub_widgets/settings_list_butto
|
||||||
import 'package:stackwallet/route_generator.dart';
|
import 'package:stackwallet/route_generator.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ class GlobalSettingsView extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
debugPrint("BUILD: $runtimeType");
|
debugPrint("BUILD: $runtimeType");
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -231,7 +231,7 @@ class GlobalSettingsView extends StatelessWidget {
|
||||||
// ?.copyWith(
|
// ?.copyWith(
|
||||||
// backgroundColor:
|
// backgroundColor:
|
||||||
// MaterialStateProperty.all<Color>(
|
// MaterialStateProperty.all<Color>(
|
||||||
// StackTheme.instance.color.accentColorDark
|
// Theme.of(context).extension<StackColors>()!.accentColorDark
|
||||||
// ),
|
// ),
|
||||||
// ),
|
// ),
|
||||||
// child: Text(
|
// child: Text(
|
||||||
|
|
|
@ -7,7 +7,7 @@ import 'package:stackwallet/providers/global/debug_service_provider.dart';
|
||||||
import 'package:stackwallet/providers/providers.dart';
|
import 'package:stackwallet/providers/providers.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
|
||||||
class HiddenSettings extends StatelessWidget {
|
class HiddenSettings extends StatelessWidget {
|
||||||
|
@ -18,7 +18,7 @@ class HiddenSettings extends StatelessWidget {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: Container(),
|
leading: Container(),
|
||||||
title: Text(
|
title: Text(
|
||||||
|
@ -64,8 +64,9 @@ class HiddenSettings extends StatelessWidget {
|
||||||
child: Text(
|
child: Text(
|
||||||
"Delete notifications",
|
"Delete notifications",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorDark),
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -92,7 +93,7 @@ class HiddenSettings extends StatelessWidget {
|
||||||
// child: Text(
|
// child: Text(
|
||||||
// "Delete trade history",
|
// "Delete trade history",
|
||||||
// style: STextStyles.button(context).copyWith(
|
// style: STextStyles.button(context).copyWith(
|
||||||
// color: StackTheme.instance.color.accentColorDark
|
// color: Theme.of(context).extension<StackColors>()!.accentColorDark
|
||||||
// ),
|
// ),
|
||||||
// ),
|
// ),
|
||||||
// ),
|
// ),
|
||||||
|
@ -118,8 +119,9 @@ class HiddenSettings extends StatelessWidget {
|
||||||
child: Text(
|
child: Text(
|
||||||
"Delete Debug Logs",
|
"Delete Debug Logs",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.accentColorDark),
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -147,7 +149,7 @@ class HiddenSettings extends StatelessWidget {
|
||||||
// child: Text(
|
// child: Text(
|
||||||
// "Lottie test",
|
// "Lottie test",
|
||||||
// style: STextStyles.button(context).copyWith(
|
// style: STextStyles.button(context).copyWith(
|
||||||
// color: StackTheme.instance.color.accentColorDark
|
// color: Theme.of(context).extension<StackColors>()!.accentColorDark
|
||||||
// ),
|
// ),
|
||||||
// ),
|
// ),
|
||||||
// ),
|
// ),
|
||||||
|
|
|
@ -6,7 +6,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/languages_enum.dart';
|
import 'package:stackwallet/utilities/enums/languages_enum.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_container.dart';
|
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||||
|
@ -99,7 +99,7 @@ class _LanguageViewState extends ConsumerState<LanguageSettingsView> {
|
||||||
}
|
}
|
||||||
listWithoutSelected = _filtered();
|
listWithoutSelected = _filtered();
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -202,7 +202,9 @@ class _LanguageViewState extends ConsumerState<LanguageSettingsView> {
|
||||||
(context, index) {
|
(context, index) {
|
||||||
return Container(
|
return Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.popupBG,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.popupBG,
|
||||||
borderRadius: _borderRadius(index),
|
borderRadius: _borderRadius(index),
|
||||||
),
|
),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
@ -212,8 +214,12 @@ class _LanguageViewState extends ConsumerState<LanguageSettingsView> {
|
||||||
child: RoundedContainer(
|
child: RoundedContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
color: index == 0
|
color: index == 0
|
||||||
? StackTheme.instance.color.currencyListItemBG
|
? Theme.of(context)
|
||||||
: StackTheme.instance.color.popupBG,
|
.extension<StackColors>()!
|
||||||
|
.currencyListItemBG
|
||||||
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.popupBG,
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
onTap(index);
|
onTap(index);
|
||||||
|
@ -233,7 +239,8 @@ class _LanguageViewState extends ConsumerState<LanguageSettingsView> {
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
child: Radio(
|
child: Radio(
|
||||||
activeColor: StackTheme.instance.color
|
activeColor: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.radioButtonIconEnabled,
|
.radioButtonIconEnabled,
|
||||||
value: true,
|
value: true,
|
||||||
groupValue: index == 0,
|
groupValue: index == 0,
|
||||||
|
|
|
@ -19,7 +19,7 @@ import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/test_epic_box_connection.dart';
|
import 'package:stackwallet/utilities/test_epic_box_connection.dart';
|
||||||
import 'package:stackwallet/utilities/test_monero_node_connection.dart';
|
import 'package:stackwallet/utilities/test_monero_node_connection.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
import 'package:stackwallet/widgets/icon_widgets/x_icon.dart';
|
||||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
|
@ -192,7 +192,7 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -223,10 +223,12 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
|
||||||
key: const Key("deleteNodeAppBarButtonKey"),
|
key: const Key("deleteNodeAppBarButtonKey"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
icon: SvgPicture.asset(
|
icon: SvgPicture.asset(
|
||||||
Assets.svg.trash,
|
Assets.svg.trash,
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
),
|
),
|
||||||
|
@ -293,23 +295,30 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
|
||||||
await _testConnection();
|
await _testConnection();
|
||||||
}
|
}
|
||||||
: null,
|
: null,
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Test connection",
|
"Test connection",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
color: testConnectionEnabled
|
color: testConnectionEnabled
|
||||||
? StackTheme.instance.color.textDark
|
? Theme.of(context)
|
||||||
: StackTheme.instance.color.textWhite,
|
.extension<StackColors>()!
|
||||||
|
.textDark
|
||||||
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textWhite,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
TextButton(
|
TextButton(
|
||||||
style: saveEnabled
|
style: saveEnabled
|
||||||
? StackTheme.instance
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonColor(context)
|
||||||
: StackTheme.instance
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonColor(context),
|
||||||
onPressed: saveEnabled
|
onPressed: saveEnabled
|
||||||
? () async {
|
? () async {
|
||||||
|
@ -335,15 +344,18 @@ class _AddEditNodeViewState extends ConsumerState<AddEditNodeView> {
|
||||||
"Cancel",
|
"Cancel",
|
||||||
style: STextStyles.button(context)
|
style: STextStyles.button(context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme.instance
|
color: Theme.of(context)
|
||||||
.color.accentColorDark),
|
.extension<
|
||||||
|
StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
Navigator.of(context).pop(true);
|
Navigator.of(context).pop(true);
|
||||||
},
|
},
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(
|
.getPrimaryEnabledButtonColor(
|
||||||
context),
|
context),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
@ -889,8 +901,9 @@ class _NodeFormState extends ConsumerState<NodeForm> {
|
||||||
height: 20,
|
height: 20,
|
||||||
child: Checkbox(
|
child: Checkbox(
|
||||||
fillColor: widget.readOnly
|
fillColor: widget.readOnly
|
||||||
? MaterialStateProperty.all(
|
? MaterialStateProperty.all(Theme.of(context)
|
||||||
StackTheme.instance.color.checkboxBGDisabled)
|
.extension<StackColors>()!
|
||||||
|
.checkboxBGDisabled)
|
||||||
: null,
|
: null,
|
||||||
materialTapTargetSize:
|
materialTapTargetSize:
|
||||||
MaterialTapTargetSize.shrinkWrap,
|
MaterialTapTargetSize.shrinkWrap,
|
||||||
|
|
|
@ -6,7 +6,7 @@ import 'package:stackwallet/pages/settings_views/sub_widgets/nodes_list.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:tuple/tuple.dart';
|
import 'package:tuple/tuple.dart';
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ class _CoinNodesViewState extends ConsumerState<CoinNodesView> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -62,10 +62,12 @@ class _CoinNodesViewState extends ConsumerState<CoinNodesView> {
|
||||||
key: const Key("manageNodesAddNewNodeButtonKey"),
|
key: const Key("manageNodesAddNewNodeButtonKey"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
icon: SvgPicture.asset(
|
icon: SvgPicture.asset(
|
||||||
Assets.svg.plus,
|
Assets.svg.plus,
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
),
|
),
|
||||||
|
|
|
@ -7,7 +7,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ class _ManageNodesViewState extends ConsumerState<ManageNodesView> {
|
||||||
: _coins.sublist(0, _coins.length - kTestNetCoinCount);
|
: _coins.sublist(0, _coins.length - kTestNetCoinCount);
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -82,7 +82,7 @@ class _ManageNodesViewState extends ConsumerState<ManageNodesView> {
|
||||||
child: RoundedWhiteContainer(
|
child: RoundedWhiteContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
|
|
|
@ -16,7 +16,7 @@ import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/test_epic_box_connection.dart';
|
import 'package:stackwallet/utilities/test_epic_box_connection.dart';
|
||||||
import 'package:stackwallet/utilities/test_monero_node_connection.dart';
|
import 'package:stackwallet/utilities/test_monero_node_connection.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:tuple/tuple.dart';
|
import 'package:tuple/tuple.dart';
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ class _NodeDetailsViewState extends ConsumerState<NodeDetailsView> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -171,10 +171,12 @@ class _NodeDetailsViewState extends ConsumerState<NodeDetailsView> {
|
||||||
key: const Key("nodeDetailsEditNodeAppBarButtonKey"),
|
key: const Key("nodeDetailsEditNodeAppBarButtonKey"),
|
||||||
size: 36,
|
size: 36,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
icon: SvgPicture.asset(
|
icon: SvgPicture.asset(
|
||||||
Assets.svg.pencil,
|
Assets.svg.pencil,
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
),
|
),
|
||||||
|
@ -223,7 +225,8 @@ class _NodeDetailsViewState extends ConsumerState<NodeDetailsView> {
|
||||||
),
|
),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
TextButton(
|
TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getSecondaryEnabledButtonColor(context),
|
.getSecondaryEnabledButtonColor(context),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
await _testConnection(ref, context);
|
await _testConnection(ref, context);
|
||||||
|
@ -231,8 +234,9 @@ class _NodeDetailsViewState extends ConsumerState<NodeDetailsView> {
|
||||||
child: Text(
|
child: Text(
|
||||||
"Test connection",
|
"Test connection",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.accentColorDark),
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
|
|
|
@ -8,7 +8,7 @@ import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
|
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/custom_pin_put/custom_pin_put.dart';
|
import 'package:stackwallet/widgets/custom_pin_put/custom_pin_put.dart';
|
||||||
|
|
||||||
|
@ -31,9 +31,10 @@ class ChangePinView extends StatefulWidget {
|
||||||
class _ChangePinViewState extends State<ChangePinView> {
|
class _ChangePinViewState extends State<ChangePinView> {
|
||||||
BoxDecoration get _pinPutDecoration {
|
BoxDecoration get _pinPutDecoration {
|
||||||
return BoxDecoration(
|
return BoxDecoration(
|
||||||
color: StackTheme.instance.color.textSubtitle2,
|
color: Theme.of(context).extension<StackColors>()!.textSubtitle2,
|
||||||
border:
|
border: Border.all(
|
||||||
Border.all(width: 1, color: StackTheme.instance.color.textSubtitle2),
|
width: 1,
|
||||||
|
color: Theme.of(context).extension<StackColors>()!.textSubtitle2),
|
||||||
borderRadius: BorderRadius.circular(6),
|
borderRadius: BorderRadius.circular(6),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -70,7 +71,7 @@ class _ChangePinViewState extends State<ChangePinView> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -120,14 +121,19 @@ class _ChangePinViewState extends State<ChangePinView> {
|
||||||
disabledBorder: InputBorder.none,
|
disabledBorder: InputBorder.none,
|
||||||
errorBorder: InputBorder.none,
|
errorBorder: InputBorder.none,
|
||||||
focusedErrorBorder: InputBorder.none,
|
focusedErrorBorder: InputBorder.none,
|
||||||
fillColor: StackTheme.instance.color.background,
|
fillColor:
|
||||||
|
Theme.of(context).extension<StackColors>()!.background,
|
||||||
counterText: "",
|
counterText: "",
|
||||||
),
|
),
|
||||||
submittedFieldDecoration: _pinPutDecoration.copyWith(
|
submittedFieldDecoration: _pinPutDecoration.copyWith(
|
||||||
color: StackTheme.instance.color.infoItemIcons,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.infoItemIcons,
|
||||||
border: Border.all(
|
border: Border.all(
|
||||||
width: 1,
|
width: 1,
|
||||||
color: StackTheme.instance.color.infoItemIcons,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.infoItemIcons,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
selectedFieldDecoration: _pinPutDecoration,
|
selectedFieldDecoration: _pinPutDecoration,
|
||||||
|
@ -176,14 +182,19 @@ class _ChangePinViewState extends State<ChangePinView> {
|
||||||
disabledBorder: InputBorder.none,
|
disabledBorder: InputBorder.none,
|
||||||
errorBorder: InputBorder.none,
|
errorBorder: InputBorder.none,
|
||||||
focusedErrorBorder: InputBorder.none,
|
focusedErrorBorder: InputBorder.none,
|
||||||
fillColor: StackTheme.instance.color.background,
|
fillColor:
|
||||||
|
Theme.of(context).extension<StackColors>()!.background,
|
||||||
counterText: "",
|
counterText: "",
|
||||||
),
|
),
|
||||||
submittedFieldDecoration: _pinPutDecoration.copyWith(
|
submittedFieldDecoration: _pinPutDecoration.copyWith(
|
||||||
color: StackTheme.instance.color.infoItemIcons,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.infoItemIcons,
|
||||||
border: Border.all(
|
border: Border.all(
|
||||||
width: 1,
|
width: 1,
|
||||||
color: StackTheme.instance.color.infoItemIcons,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.infoItemIcons,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
selectedFieldDecoration: _pinPutDecoration,
|
selectedFieldDecoration: _pinPutDecoration,
|
||||||
|
|
|
@ -6,7 +6,7 @@ import 'package:stackwallet/providers/global/prefs_provider.dart';
|
||||||
import 'package:stackwallet/route_generator.dart';
|
import 'package:stackwallet/route_generator.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/draggable_switch_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/draggable_switch_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
@ -23,7 +23,7 @@ class SecurityView extends StatelessWidget {
|
||||||
debugPrint("BUILD: $runtimeType");
|
debugPrint("BUILD: $runtimeType");
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -43,7 +43,7 @@ class SecurityView extends StatelessWidget {
|
||||||
RoundedWhiteContainer(
|
RoundedWhiteContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
|
@ -92,7 +92,7 @@ class SecurityView extends StatelessWidget {
|
||||||
child: Consumer(
|
child: Consumer(
|
||||||
builder: (_, ref, __) {
|
builder: (_, ref, __) {
|
||||||
return RawMaterialButton(
|
return RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
|
|
|
@ -10,7 +10,7 @@ import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart';
|
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart';
|
||||||
import 'package:stackwallet/utilities/format.dart';
|
import 'package:stackwallet/utilities/format.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/blue_text_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/blue_text_button.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/draggable_switch_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/draggable_switch_button.dart';
|
||||||
|
@ -81,11 +81,14 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
|
||||||
title: "Enable Auto Backup",
|
title: "Enable Auto Backup",
|
||||||
message: "To enable Auto Backup, you need to create a backup file.",
|
message: "To enable Auto Backup, you need to create a backup file.",
|
||||||
leftButton: TextButton(
|
leftButton: TextButton(
|
||||||
style: StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Back",
|
"Back",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color:
|
||||||
|
Theme.of(context).extension<StackColors>()!.accentColorDark,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -93,7 +96,9 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: StackTheme.instance.getPrimaryEnabledButtonColor(context),
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.getPrimaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Continue",
|
"Continue",
|
||||||
style: STextStyles.button(context),
|
style: STextStyles.button(context),
|
||||||
|
@ -133,11 +138,14 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
|
||||||
message:
|
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.",
|
"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(
|
leftButton: TextButton(
|
||||||
style: StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Back",
|
"Back",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color:
|
||||||
|
Theme.of(context).extension<StackColors>()!.accentColorDark,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -145,7 +153,9 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: StackTheme.instance.getPrimaryEnabledButtonColor(context),
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.getPrimaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Disable",
|
"Disable",
|
||||||
style: STextStyles.button(context),
|
style: STextStyles.button(context),
|
||||||
|
@ -214,7 +224,7 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
|
||||||
});
|
});
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -234,7 +244,7 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
|
||||||
RoundedWhiteContainer(
|
RoundedWhiteContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
|
@ -347,8 +357,10 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
|
||||||
controller: fileLocationController,
|
controller: fileLocationController,
|
||||||
enabled: false,
|
enabled: false,
|
||||||
style: STextStyles.field(context).copyWith(
|
style: STextStyles.field(context).copyWith(
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.textDark.withOpacity(0.5),
|
.extension<StackColors>()!
|
||||||
|
.textDark
|
||||||
|
.withOpacity(0.5),
|
||||||
),
|
),
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
enableSuggestions: false,
|
enableSuggestions: false,
|
||||||
|
@ -379,8 +391,10 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
|
||||||
controller: passwordController,
|
controller: passwordController,
|
||||||
enabled: false,
|
enabled: false,
|
||||||
style: STextStyles.field(context).copyWith(
|
style: STextStyles.field(context).copyWith(
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.textDark.withOpacity(0.5),
|
.extension<StackColors>()!
|
||||||
|
.textDark
|
||||||
|
.withOpacity(0.5),
|
||||||
),
|
),
|
||||||
obscureText: true,
|
obscureText: true,
|
||||||
enableSuggestions: false,
|
enableSuggestions: false,
|
||||||
|
@ -413,8 +427,10 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
|
||||||
controller: frequencyController,
|
controller: frequencyController,
|
||||||
enabled: false,
|
enabled: false,
|
||||||
style: STextStyles.field(context).copyWith(
|
style: STextStyles.field(context).copyWith(
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.textDark.withOpacity(0.5),
|
.extension<StackColors>()!
|
||||||
|
.textDark
|
||||||
|
.withOpacity(0.5),
|
||||||
),
|
),
|
||||||
toolbarOptions: const ToolbarOptions(
|
toolbarOptions: const ToolbarOptions(
|
||||||
copy: true,
|
copy: true,
|
||||||
|
|
|
@ -20,7 +20,7 @@ import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
|
||||||
import 'package:stackwallet/utilities/format.dart';
|
import 'package:stackwallet/utilities/format.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/progress_bar.dart';
|
import 'package:stackwallet/widgets/progress_bar.dart';
|
||||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
|
@ -102,7 +102,7 @@ class _EnableAutoBackupViewState extends ConsumerState<CreateAutoBackupView> {
|
||||||
debugPrint("BUILD: $runtimeType");
|
debugPrint("BUILD: $runtimeType");
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -164,7 +164,9 @@ class _EnableAutoBackupViewState extends ConsumerState<CreateAutoBackupView> {
|
||||||
),
|
),
|
||||||
SvgPicture.asset(
|
SvgPicture.asset(
|
||||||
Assets.svg.folder,
|
Assets.svg.folder,
|
||||||
color: StackTheme.instance.color.textDark3,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textDark3,
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
),
|
),
|
||||||
|
@ -224,7 +226,9 @@ class _EnableAutoBackupViewState extends ConsumerState<CreateAutoBackupView> {
|
||||||
hidePassword
|
hidePassword
|
||||||
? Assets.svg.eye
|
? Assets.svg.eye
|
||||||
: Assets.svg.eyeSlash,
|
: Assets.svg.eyeSlash,
|
||||||
color: StackTheme.instance.color.textDark3,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textDark3,
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
),
|
),
|
||||||
|
@ -303,12 +307,19 @@ class _EnableAutoBackupViewState extends ConsumerState<CreateAutoBackupView> {
|
||||||
width: MediaQuery.of(context).size.width - 32 - 24,
|
width: MediaQuery.of(context).size.width - 32 - 24,
|
||||||
height: 5,
|
height: 5,
|
||||||
fillColor: passwordStrength < 0.51
|
fillColor: passwordStrength < 0.51
|
||||||
? StackTheme.instance.color.accentColorRed
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorRed
|
||||||
: passwordStrength < 1
|
: passwordStrength < 1
|
||||||
? StackTheme.instance.color.accentColorYellow
|
? Theme.of(context)
|
||||||
: StackTheme.instance.color.accentColorGreen,
|
.extension<StackColors>()!
|
||||||
backgroundColor:
|
.accentColorYellow
|
||||||
StackTheme.instance.color.buttonBackSecondary,
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorGreen,
|
||||||
|
backgroundColor: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.buttonBackSecondary,
|
||||||
percent:
|
percent:
|
||||||
passwordStrength < 0.25 ? 0.03 : passwordStrength,
|
passwordStrength < 0.25 ? 0.03 : passwordStrength,
|
||||||
),
|
),
|
||||||
|
@ -351,7 +362,9 @@ class _EnableAutoBackupViewState extends ConsumerState<CreateAutoBackupView> {
|
||||||
hidePassword
|
hidePassword
|
||||||
? Assets.svg.eye
|
? Assets.svg.eye
|
||||||
: Assets.svg.eyeSlash,
|
: Assets.svg.eyeSlash,
|
||||||
color: StackTheme.instance.color.textDark3,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textDark3,
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
),
|
),
|
||||||
|
@ -387,7 +400,9 @@ class _EnableAutoBackupViewState extends ConsumerState<CreateAutoBackupView> {
|
||||||
),
|
),
|
||||||
Positioned.fill(
|
Positioned.fill(
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
splashColor: StackTheme.instance.color.highlight,
|
splashColor: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.highlight,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
|
@ -424,8 +439,9 @@ class _EnableAutoBackupViewState extends ConsumerState<CreateAutoBackupView> {
|
||||||
padding: const EdgeInsets.only(right: 4.0),
|
padding: const EdgeInsets.only(right: 4.0),
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
Assets.svg.chevronDown,
|
Assets.svg.chevronDown,
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textSubtitle2,
|
.extension<StackColors>()!
|
||||||
|
.textSubtitle2,
|
||||||
width: 12,
|
width: 12,
|
||||||
height: 6,
|
height: 6,
|
||||||
),
|
),
|
||||||
|
@ -443,9 +459,11 @@ class _EnableAutoBackupViewState extends ConsumerState<CreateAutoBackupView> {
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
style: shouldEnableCreate
|
style: shouldEnableCreate
|
||||||
? StackTheme.instance
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonColor(context)
|
||||||
: StackTheme.instance
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonColor(context),
|
||||||
onPressed: !shouldEnableCreate
|
onPressed: !shouldEnableCreate
|
||||||
? null
|
? null
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:stackwallet/pages/settings_views/global_settings_view/stack_backup_views/create_backup_view.dart';
|
import 'package:stackwallet/pages/settings_views/global_settings_view/stack_backup_views/create_backup_view.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ class CreateBackupInfoView extends StatelessWidget {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -63,7 +63,8 @@ class CreateBackupInfoView extends StatelessWidget {
|
||||||
),
|
),
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
TextButton(
|
TextButton(
|
||||||
style: StackTheme.instance
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonColor(context),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Navigator.of(context)
|
Navigator.of(context)
|
||||||
|
|
|
@ -13,7 +13,7 @@ import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/progress_bar.dart';
|
import 'package:stackwallet/widgets/progress_bar.dart';
|
||||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
|
@ -82,7 +82,7 @@ class _RestoreFromFileViewState extends State<CreateBackupView> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -164,8 +164,9 @@ class _RestoreFromFileViewState extends State<CreateBackupView> {
|
||||||
),
|
),
|
||||||
SvgPicture.asset(
|
SvgPicture.asset(
|
||||||
Assets.svg.folder,
|
Assets.svg.folder,
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.textDark3,
|
.extension<StackColors>()!
|
||||||
|
.textDark3,
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
),
|
),
|
||||||
|
@ -229,8 +230,9 @@ class _RestoreFromFileViewState extends State<CreateBackupView> {
|
||||||
hidePassword
|
hidePassword
|
||||||
? Assets.svg.eye
|
? Assets.svg.eye
|
||||||
: Assets.svg.eyeSlash,
|
: Assets.svg.eyeSlash,
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.textDark3,
|
.extension<StackColors>()!
|
||||||
|
.textDark3,
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
),
|
),
|
||||||
|
@ -309,14 +311,15 @@ class _RestoreFromFileViewState extends State<CreateBackupView> {
|
||||||
width: MediaQuery.of(context).size.width - 32 - 24,
|
width: MediaQuery.of(context).size.width - 32 - 24,
|
||||||
height: 5,
|
height: 5,
|
||||||
fillColor: passwordStrength < 0.51
|
fillColor: passwordStrength < 0.51
|
||||||
? StackTheme.instance.color.accentColorRed
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorRed
|
||||||
: passwordStrength < 1
|
: passwordStrength < 1
|
||||||
? StackTheme
|
? Theme.of(context).extension<StackColors>()!.accentColorYellow
|
||||||
.instance.color.accentColorYellow
|
: Theme.of(context).extension<StackColors>()!.accentColorGreen,
|
||||||
: StackTheme
|
backgroundColor: Theme.of(context)
|
||||||
.instance.color.accentColorGreen,
|
.extension<StackColors>()!
|
||||||
backgroundColor:
|
.buttonBackSecondary,
|
||||||
StackTheme.instance.color.buttonBackSecondary,
|
|
||||||
percent: passwordStrength < 0.25
|
percent: passwordStrength < 0.25
|
||||||
? 0.03
|
? 0.03
|
||||||
: passwordStrength,
|
: passwordStrength,
|
||||||
|
@ -360,8 +363,9 @@ class _RestoreFromFileViewState extends State<CreateBackupView> {
|
||||||
hidePassword
|
hidePassword
|
||||||
? Assets.svg.eye
|
? Assets.svg.eye
|
||||||
: Assets.svg.eyeSlash,
|
: Assets.svg.eyeSlash,
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.textDark3,
|
.extension<StackColors>()!
|
||||||
|
.textDark3,
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
),
|
),
|
||||||
|
@ -385,10 +389,8 @@ class _RestoreFromFileViewState extends State<CreateBackupView> {
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
TextButton(
|
TextButton(
|
||||||
style: shouldEnableCreate
|
style: shouldEnableCreate
|
||||||
? StackTheme.instance
|
? Theme.of(context) .extension<StackColors>()!.getPrimaryEnabledButtonColor(context)
|
||||||
.getPrimaryEnabledButtonColor(context)
|
: Theme.of(context) .extension<StackColors>()!.getPrimaryDisabledButtonColor(context),
|
||||||
: StackTheme.instance
|
|
||||||
.getPrimaryDisabledButtonColor(context),
|
|
||||||
onPressed: !shouldEnableCreate
|
onPressed: !shouldEnableCreate
|
||||||
? null
|
? null
|
||||||
: () async {
|
: () async {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
|
|
||||||
class CancelStackRestoreDialog extends StatelessWidget {
|
class CancelStackRestoreDialog extends StatelessWidget {
|
||||||
|
@ -19,7 +19,9 @@ class CancelStackRestoreDialog extends StatelessWidget {
|
||||||
message:
|
message:
|
||||||
"Cancelling will revert any changes that may have been applied",
|
"Cancelling will revert any changes that may have been applied",
|
||||||
leftButton: TextButton(
|
leftButton: TextButton(
|
||||||
style: StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Back",
|
"Back",
|
||||||
style: STextStyles.itemSubtitle12(context),
|
style: STextStyles.itemSubtitle12(context),
|
||||||
|
@ -29,11 +31,14 @@ class CancelStackRestoreDialog extends StatelessWidget {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
rightButton: TextButton(
|
rightButton: TextButton(
|
||||||
style: StackTheme.instance.getPrimaryEnabledButtonColor(context),
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.getPrimaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
"Yes, cancel",
|
"Yes, cancel",
|
||||||
style: STextStyles.itemSubtitle12(context).copyWith(
|
style: STextStyles.itemSubtitle12(context).copyWith(
|
||||||
color: StackTheme.instance.color.buttonTextPrimary,
|
color:
|
||||||
|
Theme.of(context).extension<StackColors>()!.buttonTextPrimary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
|
|
@ -20,7 +20,7 @@ import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart';
|
||||||
import 'package:stackwallet/utilities/format.dart';
|
import 'package:stackwallet/utilities/format.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/progress_bar.dart';
|
import 'package:stackwallet/widgets/progress_bar.dart';
|
||||||
import 'package:stackwallet/widgets/stack_dialog.dart';
|
import 'package:stackwallet/widgets/stack_dialog.dart';
|
||||||
|
@ -104,7 +104,7 @@ class _EditAutoBackupViewState extends ConsumerState<EditAutoBackupView> {
|
||||||
debugPrint("BUILD: $runtimeType");
|
debugPrint("BUILD: $runtimeType");
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -166,7 +166,9 @@ class _EditAutoBackupViewState extends ConsumerState<EditAutoBackupView> {
|
||||||
),
|
),
|
||||||
SvgPicture.asset(
|
SvgPicture.asset(
|
||||||
Assets.svg.folder,
|
Assets.svg.folder,
|
||||||
color: StackTheme.instance.color.textDark3,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textDark3,
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
),
|
),
|
||||||
|
@ -226,7 +228,9 @@ class _EditAutoBackupViewState extends ConsumerState<EditAutoBackupView> {
|
||||||
hidePassword
|
hidePassword
|
||||||
? Assets.svg.eye
|
? Assets.svg.eye
|
||||||
: Assets.svg.eyeSlash,
|
: Assets.svg.eyeSlash,
|
||||||
color: StackTheme.instance.color.textDark3,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textDark3,
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
),
|
),
|
||||||
|
@ -305,12 +309,19 @@ class _EditAutoBackupViewState extends ConsumerState<EditAutoBackupView> {
|
||||||
width: MediaQuery.of(context).size.width - 32 - 24,
|
width: MediaQuery.of(context).size.width - 32 - 24,
|
||||||
height: 5,
|
height: 5,
|
||||||
fillColor: passwordStrength < 0.51
|
fillColor: passwordStrength < 0.51
|
||||||
? StackTheme.instance.color.accentColorRed
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorRed
|
||||||
: passwordStrength < 1
|
: passwordStrength < 1
|
||||||
? StackTheme.instance.color.accentColorYellow
|
? Theme.of(context)
|
||||||
: StackTheme.instance.color.accentColorGreen,
|
.extension<StackColors>()!
|
||||||
backgroundColor:
|
.accentColorYellow
|
||||||
StackTheme.instance.color.buttonBackSecondary,
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorGreen,
|
||||||
|
backgroundColor: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.buttonBackSecondary,
|
||||||
percent:
|
percent:
|
||||||
passwordStrength < 0.25 ? 0.03 : passwordStrength,
|
passwordStrength < 0.25 ? 0.03 : passwordStrength,
|
||||||
),
|
),
|
||||||
|
@ -353,7 +364,9 @@ class _EditAutoBackupViewState extends ConsumerState<EditAutoBackupView> {
|
||||||
hidePassword
|
hidePassword
|
||||||
? Assets.svg.eye
|
? Assets.svg.eye
|
||||||
: Assets.svg.eyeSlash,
|
: Assets.svg.eyeSlash,
|
||||||
color: StackTheme.instance.color.textDark3,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textDark3,
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
),
|
),
|
||||||
|
@ -389,7 +402,9 @@ class _EditAutoBackupViewState extends ConsumerState<EditAutoBackupView> {
|
||||||
),
|
),
|
||||||
Positioned.fill(
|
Positioned.fill(
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
splashColor: StackTheme.instance.color.highlight,
|
splashColor: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.highlight,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
|
@ -426,8 +441,9 @@ class _EditAutoBackupViewState extends ConsumerState<EditAutoBackupView> {
|
||||||
padding: const EdgeInsets.only(right: 4.0),
|
padding: const EdgeInsets.only(right: 4.0),
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
Assets.svg.chevronDown,
|
Assets.svg.chevronDown,
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textSubtitle2,
|
.extension<StackColors>()!
|
||||||
|
.textSubtitle2,
|
||||||
width: 12,
|
width: 12,
|
||||||
height: 6,
|
height: 6,
|
||||||
),
|
),
|
||||||
|
@ -445,9 +461,11 @@ class _EditAutoBackupViewState extends ConsumerState<EditAutoBackupView> {
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
style: shouldEnableCreate
|
style: shouldEnableCreate
|
||||||
? StackTheme.instance
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonColor(context)
|
||||||
: StackTheme.instance
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonColor(context),
|
||||||
onPressed: !shouldEnableCreate
|
onPressed: !shouldEnableCreate
|
||||||
? null
|
? null
|
||||||
|
|
|
@ -11,7 +11,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/loading_indicator.dart';
|
import 'package:stackwallet/widgets/loading_indicator.dart';
|
||||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
|
@ -63,7 +63,7 @@ class _RestoreFromEncryptedStringViewState
|
||||||
return WillPopScope(
|
return WillPopScope(
|
||||||
onWillPop: _onWillPop,
|
onWillPop: _onWillPop,
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -129,8 +129,9 @@ class _RestoreFromEncryptedStringViewState
|
||||||
hidePassword
|
hidePassword
|
||||||
? Assets.svg.eye
|
? Assets.svg.eye
|
||||||
: Assets.svg.eyeSlash,
|
: Assets.svg.eyeSlash,
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.textDark3,
|
.extension<StackColors>()!
|
||||||
|
.textDark3,
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
),
|
),
|
||||||
|
@ -153,9 +154,11 @@ class _RestoreFromEncryptedStringViewState
|
||||||
const Spacer(),
|
const Spacer(),
|
||||||
TextButton(
|
TextButton(
|
||||||
style: passwordController.text.isEmpty
|
style: passwordController.text.isEmpty
|
||||||
? StackTheme.instance
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context)
|
.getPrimaryEnabledButtonColor(context)
|
||||||
: StackTheme.instance
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context),
|
.getPrimaryDisabledButtonColor(context),
|
||||||
onPressed: passwordController.text.isEmpty
|
onPressed: passwordController.text.isEmpty
|
||||||
? null
|
? null
|
||||||
|
@ -191,8 +194,9 @@ class _RestoreFromEncryptedStringViewState
|
||||||
style: STextStyles.pageTitleH2(
|
style: STextStyles.pageTitleH2(
|
||||||
context)
|
context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textWhite,
|
.extension<StackColors>()!
|
||||||
|
.textWhite,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -14,7 +14,7 @@ import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/loading_indicator.dart';
|
import 'package:stackwallet/widgets/loading_indicator.dart';
|
||||||
import 'package:stackwallet/widgets/stack_text_field.dart';
|
import 'package:stackwallet/widgets/stack_text_field.dart';
|
||||||
|
@ -64,7 +64,7 @@ class _RestoreFromFileViewState extends ConsumerState<RestoreFromFileView> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -138,7 +138,9 @@ class _RestoreFromFileViewState extends ConsumerState<RestoreFromFileView> {
|
||||||
),
|
),
|
||||||
SvgPicture.asset(
|
SvgPicture.asset(
|
||||||
Assets.svg.folder,
|
Assets.svg.folder,
|
||||||
color: StackTheme.instance.color.textDark3,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textDark3,
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
),
|
),
|
||||||
|
@ -197,8 +199,9 @@ class _RestoreFromFileViewState extends ConsumerState<RestoreFromFileView> {
|
||||||
hidePassword
|
hidePassword
|
||||||
? Assets.svg.eye
|
? Assets.svg.eye
|
||||||
: Assets.svg.eyeSlash,
|
: Assets.svg.eyeSlash,
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.textDark3,
|
.extension<StackColors>()!
|
||||||
|
.textDark3,
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
),
|
),
|
||||||
|
@ -222,9 +225,11 @@ class _RestoreFromFileViewState extends ConsumerState<RestoreFromFileView> {
|
||||||
TextButton(
|
TextButton(
|
||||||
style: passwordController.text.isEmpty ||
|
style: passwordController.text.isEmpty ||
|
||||||
fileLocationController.text.isEmpty
|
fileLocationController.text.isEmpty
|
||||||
? StackTheme.instance
|
? Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryDisabledButtonColor(context)
|
.getPrimaryDisabledButtonColor(context)
|
||||||
: StackTheme.instance
|
: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.getPrimaryEnabledButtonColor(context),
|
.getPrimaryEnabledButtonColor(context),
|
||||||
onPressed: passwordController.text.isEmpty ||
|
onPressed: passwordController.text.isEmpty ||
|
||||||
fileLocationController.text.isEmpty
|
fileLocationController.text.isEmpty
|
||||||
|
@ -272,8 +277,9 @@ class _RestoreFromFileViewState extends ConsumerState<RestoreFromFileView> {
|
||||||
style: STextStyles.pageTitleH2(
|
style: STextStyles.pageTitleH2(
|
||||||
context)
|
context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: StackTheme
|
color: Theme.of(context)
|
||||||
.instance.color.textWhite,
|
.extension<StackColors>()!
|
||||||
|
.textWhite,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -6,7 +6,7 @@ import 'package:stackwallet/pages/settings_views/global_settings_view/stack_back
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ class StackBackupView extends StatelessWidget {
|
||||||
debugPrint("BUILD: $runtimeType");
|
debugPrint("BUILD: $runtimeType");
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -42,7 +42,7 @@ class StackBackupView extends StatelessWidget {
|
||||||
RoundedWhiteContainer(
|
RoundedWhiteContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
|
@ -83,7 +83,7 @@ class StackBackupView extends StatelessWidget {
|
||||||
RoundedWhiteContainer(
|
RoundedWhiteContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
|
@ -125,7 +125,7 @@ class StackBackupView extends StatelessWidget {
|
||||||
RoundedWhiteContainer(
|
RoundedWhiteContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
|
|
|
@ -4,7 +4,7 @@ import 'package:stackwallet/providers/global/prefs_provider.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart';
|
import 'package:stackwallet/utilities/enums/backup_frequency_type.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
|
|
||||||
class BackupFrequencyTypeSelectSheet extends ConsumerWidget {
|
class BackupFrequencyTypeSelectSheet extends ConsumerWidget {
|
||||||
const BackupFrequencyTypeSelectSheet({
|
const BackupFrequencyTypeSelectSheet({
|
||||||
|
@ -32,7 +32,7 @@ class BackupFrequencyTypeSelectSheet extends ConsumerWidget {
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.popupBG,
|
color: Theme.of(context).extension<StackColors>()!.popupBG,
|
||||||
borderRadius: const BorderRadius.vertical(
|
borderRadius: const BorderRadius.vertical(
|
||||||
top: Radius.circular(20),
|
top: Radius.circular(20),
|
||||||
),
|
),
|
||||||
|
@ -51,7 +51,9 @@ class BackupFrequencyTypeSelectSheet extends ConsumerWidget {
|
||||||
Center(
|
Center(
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.textFieldDefaultBG,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.textFieldDefaultBG,
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
),
|
),
|
||||||
|
@ -100,8 +102,9 @@ class BackupFrequencyTypeSelectSheet extends ConsumerWidget {
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
child: Radio(
|
child: Radio(
|
||||||
activeColor: StackTheme
|
activeColor: Theme.of(context)
|
||||||
.instance.color.radioButtonIconEnabled,
|
.extension<StackColors>()!
|
||||||
|
.radioButtonIconEnabled,
|
||||||
value: BackupFrequencyType.values[i],
|
value: BackupFrequencyType.values[i],
|
||||||
groupValue: ref.watch(
|
groupValue: ref.watch(
|
||||||
prefsChangeNotifierProvider.select(
|
prefsChangeNotifierProvider.select(
|
||||||
|
|
|
@ -7,7 +7,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/clipboard_interface.dart';
|
import 'package:stackwallet/utilities/clipboard_interface.dart';
|
||||||
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
import 'package:stackwallet/utilities/enums/flush_bar_type.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
|
|
||||||
class RecoverPhraseView extends StatelessWidget {
|
class RecoverPhraseView extends StatelessWidget {
|
||||||
|
@ -28,7 +28,7 @@ class RecoverPhraseView extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
debugPrint("BUILD: $runtimeType");
|
debugPrint("BUILD: $runtimeType");
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -41,7 +41,7 @@ class RecoverPhraseView extends StatelessWidget {
|
||||||
child: AspectRatio(
|
child: AspectRatio(
|
||||||
aspectRatio: 1,
|
aspectRatio: 1,
|
||||||
child: AppBarIconButton(
|
child: AppBarIconButton(
|
||||||
color: StackTheme.instance.color.background,
|
color: Theme.of(context).extension<StackColors>()!.background,
|
||||||
shadows: const [],
|
shadows: const [],
|
||||||
icon: SvgPicture.asset(
|
icon: SvgPicture.asset(
|
||||||
Assets.svg.copy,
|
Assets.svg.copy,
|
||||||
|
|
|
@ -16,7 +16,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/enums/stack_restoring_status.dart';
|
import 'package:stackwallet/utilities/enums/stack_restoring_status.dart';
|
||||||
import 'package:stackwallet/utilities/logger.dart';
|
import 'package:stackwallet/utilities/logger.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/icon_widgets/addressbook_icon.dart';
|
import 'package:stackwallet/widgets/icon_widgets/addressbook_icon.dart';
|
||||||
import 'package:stackwallet/widgets/loading_indicator.dart';
|
import 'package:stackwallet/widgets/loading_indicator.dart';
|
||||||
|
@ -58,7 +58,8 @@ class _StackRestoreProgressViewState
|
||||||
child: Text(
|
child: Text(
|
||||||
"Cancelling restore. Please wait.",
|
"Cancelling restore. Please wait.",
|
||||||
style: STextStyles.pageTitleH2(context).copyWith(
|
style: STextStyles.pageTitleH2(context).copyWith(
|
||||||
color: StackTheme.instance.color.textWhite,
|
color:
|
||||||
|
Theme.of(context).extension<StackColors>()!.textWhite,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -140,22 +141,23 @@ class _StackRestoreProgressViewState
|
||||||
case StackRestoringStatus.waiting:
|
case StackRestoringStatus.waiting:
|
||||||
return SvgPicture.asset(
|
return SvgPicture.asset(
|
||||||
Assets.svg.loader,
|
Assets.svg.loader,
|
||||||
color: StackTheme.instance.color.buttonBackSecondary,
|
color:
|
||||||
|
Theme.of(context).extension<StackColors>()!.buttonBackSecondary,
|
||||||
);
|
);
|
||||||
case StackRestoringStatus.restoring:
|
case StackRestoringStatus.restoring:
|
||||||
return SvgPicture.asset(
|
return SvgPicture.asset(
|
||||||
Assets.svg.loader,
|
Assets.svg.loader,
|
||||||
color: StackTheme.instance.color.accentColorGreen,
|
color: Theme.of(context).extension<StackColors>()!.accentColorGreen,
|
||||||
);
|
);
|
||||||
case StackRestoringStatus.success:
|
case StackRestoringStatus.success:
|
||||||
return SvgPicture.asset(
|
return SvgPicture.asset(
|
||||||
Assets.svg.checkCircle,
|
Assets.svg.checkCircle,
|
||||||
color: StackTheme.instance.color.accentColorGreen,
|
color: Theme.of(context).extension<StackColors>()!.accentColorGreen,
|
||||||
);
|
);
|
||||||
case StackRestoringStatus.failed:
|
case StackRestoringStatus.failed:
|
||||||
return SvgPicture.asset(
|
return SvgPicture.asset(
|
||||||
Assets.svg.circleAlert,
|
Assets.svg.circleAlert,
|
||||||
color: StackTheme.instance.color.textError,
|
color: Theme.of(context).extension<StackColors>()!.textError,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -180,7 +182,7 @@ class _StackRestoreProgressViewState
|
||||||
return WillPopScope(
|
return WillPopScope(
|
||||||
onWillPop: _onWillPop,
|
onWillPop: _onWillPop,
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -239,15 +241,17 @@ class _StackRestoreProgressViewState
|
||||||
height: 32,
|
height: 32,
|
||||||
child: RoundedContainer(
|
child: RoundedContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.buttonBackSecondary,
|
.extension<StackColors>()!
|
||||||
|
.buttonBackSecondary,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
Assets.svg.gear,
|
Assets.svg.gear,
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.accentColorDark,
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -280,14 +284,16 @@ class _StackRestoreProgressViewState
|
||||||
height: 32,
|
height: 32,
|
||||||
child: RoundedContainer(
|
child: RoundedContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.buttonBackSecondary,
|
.extension<StackColors>()!
|
||||||
|
.buttonBackSecondary,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: AddressBookIcon(
|
child: AddressBookIcon(
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.accentColorDark,
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -320,15 +326,17 @@ class _StackRestoreProgressViewState
|
||||||
height: 32,
|
height: 32,
|
||||||
child: RoundedContainer(
|
child: RoundedContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.buttonBackSecondary,
|
.extension<StackColors>()!
|
||||||
|
.buttonBackSecondary,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
Assets.svg.node,
|
Assets.svg.node,
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.accentColorDark,
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -361,15 +369,17 @@ class _StackRestoreProgressViewState
|
||||||
height: 32,
|
height: 32,
|
||||||
child: RoundedContainer(
|
child: RoundedContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.buttonBackSecondary,
|
.extension<StackColors>()!
|
||||||
|
.buttonBackSecondary,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
Assets.svg.arrowRotate2,
|
Assets.svg.arrowRotate2,
|
||||||
width: 16,
|
width: 16,
|
||||||
height: 16,
|
height: 16,
|
||||||
color:
|
color: Theme.of(context)
|
||||||
StackTheme.instance.color.accentColorDark,
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -433,11 +443,15 @@ class _StackRestoreProgressViewState
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
style: StackTheme.instance.getSecondaryEnabledButtonColor(context),
|
style: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.getSecondaryEnabledButtonColor(context),
|
||||||
child: Text(
|
child: Text(
|
||||||
_success ? "OK" : "Cancel restore process",
|
_success ? "OK" : "Cancel restore process",
|
||||||
style: STextStyles.button(context).copyWith(
|
style: STextStyles.button(context).copyWith(
|
||||||
color: StackTheme.instance.color.buttonTextPrimary,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.buttonTextPrimary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -10,7 +10,7 @@ import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/enums/stack_restoring_status.dart';
|
import 'package:stackwallet/utilities/enums/stack_restoring_status.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/loading_indicator.dart';
|
import 'package:stackwallet/widgets/loading_indicator.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_container.dart';
|
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||||
|
|
||||||
|
@ -35,23 +35,23 @@ class _RestoringWalletCardState extends ConsumerState<RestoringWalletCard> {
|
||||||
case StackRestoringStatus.waiting:
|
case StackRestoringStatus.waiting:
|
||||||
return SvgPicture.asset(
|
return SvgPicture.asset(
|
||||||
Assets.svg.loader,
|
Assets.svg.loader,
|
||||||
color: StackTheme.instance.color.buttonBackSecondary,
|
color: Theme.of(context).extension<StackColors>()!.buttonBackSecondary,
|
||||||
);
|
);
|
||||||
case StackRestoringStatus.restoring:
|
case StackRestoringStatus.restoring:
|
||||||
return const LoadingIndicator();
|
return const LoadingIndicator();
|
||||||
// return SvgPicture.asset(
|
// return SvgPicture.asset(
|
||||||
// Assets.svg.loader,
|
// Assets.svg.loader,
|
||||||
// color: StackTheme.instance.color.accentColorGreen,
|
// color: Theme.of(context).extension<StackColors>()!.accentColorGreen,
|
||||||
// );
|
// );
|
||||||
case StackRestoringStatus.success:
|
case StackRestoringStatus.success:
|
||||||
return SvgPicture.asset(
|
return SvgPicture.asset(
|
||||||
Assets.svg.checkCircle,
|
Assets.svg.checkCircle,
|
||||||
color: StackTheme.instance.color.accentColorGreen,
|
color: Theme.of(context).extension<StackColors>()!.accentColorGreen,
|
||||||
);
|
);
|
||||||
case StackRestoringStatus.failed:
|
case StackRestoringStatus.failed:
|
||||||
return SvgPicture.asset(
|
return SvgPicture.asset(
|
||||||
Assets.svg.circleAlert,
|
Assets.svg.circleAlert,
|
||||||
color: StackTheme.instance.color.textError,
|
color: Theme.of(context).extension<StackColors>()!.textError,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ class _RestoringWalletCardState extends ConsumerState<RestoringWalletCard> {
|
||||||
height: 32,
|
height: 32,
|
||||||
child: RoundedContainer(
|
child: RoundedContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
color: StackTheme.instance.colorForCoin(coin),
|
color: Theme.of(context).extension<StackColors>()!.colorForCoin(coin),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
Assets.svg.iconFor(
|
Assets.svg.iconFor(
|
||||||
|
@ -155,14 +155,14 @@ class _RestoringWalletCardState extends ConsumerState<RestoringWalletCard> {
|
||||||
? Container(
|
? Container(
|
||||||
height: 20,
|
height: 20,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance.color.buttonBackSecondary,
|
color: Theme.of(context).extension<StackColors>()!.buttonBackSecondary,
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
1000,
|
1000,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
splashColor: StackTheme.instance.color.highlight,
|
splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
1000,
|
1000,
|
||||||
|
@ -187,7 +187,7 @@ class _RestoringWalletCardState extends ConsumerState<RestoringWalletCard> {
|
||||||
child: Text(
|
child: Text(
|
||||||
"Show recovery phrase",
|
"Show recovery phrase",
|
||||||
style: STextStyles.infoSmall(context).copyWith(
|
style: STextStyles.infoSmall(context).copyWith(
|
||||||
color: StackTheme.instance.color.accentColorDark),
|
color: Theme.of(context).extension<StackColors>()!.accentColorDark),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -4,7 +4,7 @@ import 'package:stackwallet/pages/settings_views/global_settings_view/startup_pr
|
||||||
import 'package:stackwallet/providers/global/prefs_provider.dart';
|
import 'package:stackwallet/providers/global/prefs_provider.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ class _StartupPreferencesViewState
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -56,7 +56,7 @@ class _StartupPreferencesViewState
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(4.0),
|
padding: const EdgeInsets.all(4.0),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize:
|
materialTapTargetSize:
|
||||||
MaterialTapTargetSize.shrinkWrap,
|
MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
|
@ -81,8 +81,9 @@ class _StartupPreferencesViewState
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
child: Radio(
|
child: Radio(
|
||||||
activeColor: StackTheme.instance
|
activeColor: Theme.of(context)
|
||||||
.color.radioButtonIconEnabled,
|
.extension<StackColors>()!
|
||||||
|
.radioButtonIconEnabled,
|
||||||
value: false,
|
value: false,
|
||||||
groupValue: ref.watch(
|
groupValue: ref.watch(
|
||||||
prefsChangeNotifierProvider
|
prefsChangeNotifierProvider
|
||||||
|
@ -131,7 +132,7 @@ class _StartupPreferencesViewState
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(4),
|
padding: const EdgeInsets.all(4),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize:
|
materialTapTargetSize:
|
||||||
MaterialTapTargetSize.shrinkWrap,
|
MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
|
@ -156,8 +157,9 @@ class _StartupPreferencesViewState
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
child: Radio(
|
child: Radio(
|
||||||
activeColor: StackTheme.instance
|
activeColor: Theme.of(context)
|
||||||
.color.radioButtonIconEnabled,
|
.extension<StackColors>()!
|
||||||
|
.radioButtonIconEnabled,
|
||||||
value: true,
|
value: true,
|
||||||
groupValue: ref.watch(
|
groupValue: ref.watch(
|
||||||
prefsChangeNotifierProvider
|
prefsChangeNotifierProvider
|
||||||
|
@ -228,7 +230,7 @@ class _StartupPreferencesViewState
|
||||||
),
|
),
|
||||||
Flexible(
|
Flexible(
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize:
|
materialTapTargetSize:
|
||||||
MaterialTapTargetSize.shrinkWrap,
|
MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
|
|
|
@ -5,7 +5,7 @@ import 'package:stackwallet/providers/providers.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/draggable_switch_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/draggable_switch_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
@ -34,7 +34,7 @@ class _StartupWalletSelectionViewState
|
||||||
}
|
}
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -90,7 +90,8 @@ class _StartupWalletSelectionViewState
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.colorForCoin(manager.coin)
|
.colorForCoin(manager.coin)
|
||||||
.withOpacity(0.5),
|
.withOpacity(0.5),
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
|
@ -162,7 +163,8 @@ class _StartupWalletSelectionViewState
|
||||||
height: 20,
|
height: 20,
|
||||||
width: 20,
|
width: 20,
|
||||||
child: Radio(
|
child: Radio(
|
||||||
activeColor: StackTheme.instance.color
|
activeColor: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.radioButtonIconEnabled,
|
.radioButtonIconEnabled,
|
||||||
value: manager.walletId,
|
value: manager.walletId,
|
||||||
groupValue: ref.watch(
|
groupValue: ref.watch(
|
||||||
|
|
|
@ -3,7 +3,7 @@ import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
import 'package:stackwallet/utilities/assets.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
import 'package:url_launcher/url_launcher.dart';
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
@ -21,7 +21,7 @@ class SupportView extends StatelessWidget {
|
||||||
debugPrint("BUILD: $runtimeType");
|
debugPrint("BUILD: $runtimeType");
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -50,7 +50,7 @@ class SupportView extends StatelessWidget {
|
||||||
RoundedWhiteContainer(
|
RoundedWhiteContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
|
@ -74,7 +74,9 @@ class SupportView extends StatelessWidget {
|
||||||
Assets.socials.telegram,
|
Assets.socials.telegram,
|
||||||
width: iconSize,
|
width: iconSize,
|
||||||
height: iconSize,
|
height: iconSize,
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 12,
|
width: 12,
|
||||||
|
@ -95,7 +97,7 @@ class SupportView extends StatelessWidget {
|
||||||
RoundedWhiteContainer(
|
RoundedWhiteContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
|
@ -119,7 +121,9 @@ class SupportView extends StatelessWidget {
|
||||||
Assets.socials.discord,
|
Assets.socials.discord,
|
||||||
width: iconSize,
|
width: iconSize,
|
||||||
height: iconSize,
|
height: iconSize,
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 12,
|
width: 12,
|
||||||
|
@ -140,7 +144,7 @@ class SupportView extends StatelessWidget {
|
||||||
RoundedWhiteContainer(
|
RoundedWhiteContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
|
@ -164,7 +168,9 @@ class SupportView extends StatelessWidget {
|
||||||
Assets.socials.reddit,
|
Assets.socials.reddit,
|
||||||
width: iconSize,
|
width: iconSize,
|
||||||
height: iconSize,
|
height: iconSize,
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 12,
|
width: 12,
|
||||||
|
@ -185,7 +191,7 @@ class SupportView extends StatelessWidget {
|
||||||
RoundedWhiteContainer(
|
RoundedWhiteContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
|
@ -209,7 +215,9 @@ class SupportView extends StatelessWidget {
|
||||||
Assets.socials.twitter,
|
Assets.socials.twitter,
|
||||||
width: iconSize,
|
width: iconSize,
|
||||||
height: iconSize,
|
height: iconSize,
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 12,
|
width: 12,
|
||||||
|
@ -230,7 +238,7 @@ class SupportView extends StatelessWidget {
|
||||||
RoundedWhiteContainer(
|
RoundedWhiteContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
|
@ -254,7 +262,9 @@ class SupportView extends StatelessWidget {
|
||||||
Assets.svg.envelope,
|
Assets.svg.envelope,
|
||||||
width: iconSize,
|
width: iconSize,
|
||||||
height: iconSize,
|
height: iconSize,
|
||||||
color: StackTheme.instance.color.accentColorDark,
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
|
.accentColorDark,
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 12,
|
width: 12,
|
||||||
|
|
|
@ -5,7 +5,7 @@ import 'package:stackwallet/providers/providers.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart';
|
import 'package:stackwallet/utilities/enums/sync_type_enum.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ class SyncingOptionsView extends ConsumerWidget {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -49,7 +49,7 @@ class SyncingOptionsView extends ConsumerWidget {
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(4),
|
padding: const EdgeInsets.all(4),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize:
|
materialTapTargetSize:
|
||||||
MaterialTapTargetSize.shrinkWrap,
|
MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
|
@ -90,8 +90,9 @@ class SyncingOptionsView extends ConsumerWidget {
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
child: Radio(
|
child: Radio(
|
||||||
activeColor: StackTheme.instance
|
activeColor: Theme.of(context)
|
||||||
.color.radioButtonIconEnabled,
|
.extension<StackColors>()!
|
||||||
|
.radioButtonIconEnabled,
|
||||||
value:
|
value:
|
||||||
SyncingType.currentWalletOnly,
|
SyncingType.currentWalletOnly,
|
||||||
groupValue: ref.watch(
|
groupValue: ref.watch(
|
||||||
|
@ -141,7 +142,7 @@ class SyncingOptionsView extends ConsumerWidget {
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(4.0),
|
padding: const EdgeInsets.all(4.0),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize:
|
materialTapTargetSize:
|
||||||
MaterialTapTargetSize.shrinkWrap,
|
MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
|
@ -180,8 +181,9 @@ class SyncingOptionsView extends ConsumerWidget {
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
child: Radio(
|
child: Radio(
|
||||||
activeColor: StackTheme.instance
|
activeColor: Theme.of(context)
|
||||||
.color.radioButtonIconEnabled,
|
.extension<StackColors>()!
|
||||||
|
.radioButtonIconEnabled,
|
||||||
value:
|
value:
|
||||||
SyncingType.allWalletsOnStartup,
|
SyncingType.allWalletsOnStartup,
|
||||||
groupValue: ref.watch(
|
groupValue: ref.watch(
|
||||||
|
@ -231,7 +233,7 @@ class SyncingOptionsView extends ConsumerWidget {
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.all(4),
|
padding: const EdgeInsets.all(4),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize:
|
materialTapTargetSize:
|
||||||
MaterialTapTargetSize.shrinkWrap,
|
MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
|
@ -274,8 +276,9 @@ class SyncingOptionsView extends ConsumerWidget {
|
||||||
width: 20,
|
width: 20,
|
||||||
height: 20,
|
height: 20,
|
||||||
child: Radio(
|
child: Radio(
|
||||||
activeColor: StackTheme.instance
|
activeColor: Theme.of(context)
|
||||||
.color.radioButtonIconEnabled,
|
.extension<StackColors>()!
|
||||||
|
.radioButtonIconEnabled,
|
||||||
value: SyncingType
|
value: SyncingType
|
||||||
.selectedWalletsAtStartup,
|
.selectedWalletsAtStartup,
|
||||||
groupValue: ref.watch(
|
groupValue: ref.watch(
|
||||||
|
@ -349,7 +352,7 @@ class SyncingOptionsView extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
Flexible(
|
Flexible(
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize:
|
materialTapTargetSize:
|
||||||
MaterialTapTargetSize.shrinkWrap,
|
MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
|
|
|
@ -5,7 +5,7 @@ import 'package:stackwallet/providers/providers.dart';
|
||||||
import 'package:stackwallet/utilities/constants.dart';
|
import 'package:stackwallet/utilities/constants.dart';
|
||||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart';
|
import 'package:stackwallet/utilities/enums/sync_type_enum.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/draggable_switch_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/draggable_switch_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
@ -29,7 +29,7 @@ class SyncingPreferencesView extends ConsumerWidget {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -57,7 +57,7 @@ class SyncingPreferencesView extends ConsumerWidget {
|
||||||
RoundedWhiteContainer(
|
RoundedWhiteContainer(
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
child: RawMaterialButton(
|
child: RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
padding: const EdgeInsets.all(0),
|
padding: const EdgeInsets.all(0),
|
||||||
materialTapTargetSize:
|
materialTapTargetSize:
|
||||||
MaterialTapTargetSize.shrinkWrap,
|
MaterialTapTargetSize.shrinkWrap,
|
||||||
|
@ -104,7 +104,7 @@ class SyncingPreferencesView extends ConsumerWidget {
|
||||||
child: Consumer(
|
child: Consumer(
|
||||||
builder: (_, ref, __) {
|
builder: (_, ref, __) {
|
||||||
return RawMaterialButton(
|
return RawMaterialButton(
|
||||||
// splashColor: StackTheme.instance.color.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize:
|
materialTapTargetSize:
|
||||||
MaterialTapTargetSize.shrinkWrap,
|
MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
|
|
|
@ -9,7 +9,7 @@ import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||||
import 'package:stackwallet/utilities/enums/sync_type_enum.dart';
|
import 'package:stackwallet/utilities/enums/sync_type_enum.dart';
|
||||||
import 'package:stackwallet/utilities/format.dart';
|
import 'package:stackwallet/utilities/format.dart';
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
import 'package:stackwallet/widgets/animated_text.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/app_bar_icon_button.dart';
|
||||||
import 'package:stackwallet/widgets/custom_buttons/draggable_switch_button.dart';
|
import 'package:stackwallet/widgets/custom_buttons/draggable_switch_button.dart';
|
||||||
|
@ -26,7 +26,7 @@ class WalletSyncingOptionsView extends ConsumerWidget {
|
||||||
.watch(walletsChangeNotifierProvider.select((value) => value.managers));
|
.watch(walletsChangeNotifierProvider.select((value) => value.managers));
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StackTheme.instance.color.background,
|
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: AppBarBackButton(
|
leading: AppBarBackButton(
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
|
@ -82,7 +82,8 @@ class WalletSyncingOptionsView extends ConsumerWidget {
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: StackTheme.instance
|
color: Theme.of(context)
|
||||||
|
.extension<StackColors>()!
|
||||||
.colorForCoin(manager.coin)
|
.colorForCoin(manager.coin)
|
||||||
.withOpacity(0.5),
|
.withOpacity(0.5),
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue