mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-22 19:39:22 +00:00
fix variable read
This commit is contained in:
parent
96966a78a1
commit
2ba0dc576e
5 changed files with 29 additions and 25 deletions
|
@ -15,15 +15,11 @@ import 'package:flutter/services.dart';
|
|||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:qr_flutter/qr_flutter.dart';
|
||||
import 'package:tuple/tuple.dart';
|
||||
|
||||
import '../../../app_config.dart';
|
||||
import '../../../models/exchange/incomplete_exchange.dart';
|
||||
import '../../../notifications/show_flush_bar.dart';
|
||||
import '../confirm_change_now_send.dart';
|
||||
import '../send_from_view.dart';
|
||||
import '../sub_widgets/step_row.dart';
|
||||
import '../../home_view/home_view.dart';
|
||||
import '../../send_view/sub_widgets/building_transaction_dialog.dart';
|
||||
import '../../wallet_view/wallet_view.dart';
|
||||
import '../../../providers/providers.dart';
|
||||
import '../../../route_generator.dart';
|
||||
import '../../../themes/stack_colors.dart';
|
||||
|
@ -44,7 +40,12 @@ import '../../../widgets/desktop/secondary_button.dart';
|
|||
import '../../../widgets/rounded_container.dart';
|
||||
import '../../../widgets/rounded_white_container.dart';
|
||||
import '../../../widgets/stack_dialog.dart';
|
||||
import 'package:tuple/tuple.dart';
|
||||
import '../../home_view/home_view.dart';
|
||||
import '../../send_view/sub_widgets/building_transaction_dialog.dart';
|
||||
import '../../wallet_view/wallet_view.dart';
|
||||
import '../confirm_change_now_send.dart';
|
||||
import '../send_from_view.dart';
|
||||
import '../sub_widgets/step_row.dart';
|
||||
|
||||
class Step4View extends ConsumerStatefulWidget {
|
||||
const Step4View({
|
||||
|
@ -816,7 +817,7 @@ class _Step4ViewState extends ConsumerState<Step4View> {
|
|||
Builder(
|
||||
builder: (context) {
|
||||
String buttonTitle =
|
||||
"Send from {$AppConfig.appName}";
|
||||
"Send from ${AppConfig.appName}";
|
||||
|
||||
final tuple = ref
|
||||
.read(
|
||||
|
|
|
@ -15,11 +15,10 @@ import 'package:flutter/foundation.dart';
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:tuple/tuple.dart';
|
||||
|
||||
import '../../../../app_config.dart';
|
||||
import '../../../../notifications/show_flush_bar.dart';
|
||||
import 'helpers/restore_create_backup.dart';
|
||||
import 'helpers/swb_file_system.dart';
|
||||
import 'sub_views/stack_restore_progress_view.dart';
|
||||
import '../../../../route_generator.dart';
|
||||
import '../../../../themes/stack_colors.dart';
|
||||
import '../../../../utilities/assets.dart';
|
||||
|
@ -36,7 +35,9 @@ import '../../../../widgets/desktop/primary_button.dart';
|
|||
import '../../../../widgets/desktop/secondary_button.dart';
|
||||
import '../../../../widgets/loading_indicator.dart';
|
||||
import '../../../../widgets/stack_text_field.dart';
|
||||
import 'package:tuple/tuple.dart';
|
||||
import 'helpers/restore_create_backup.dart';
|
||||
import 'helpers/swb_file_system.dart';
|
||||
import 'sub_views/stack_restore_progress_view.dart';
|
||||
|
||||
class RestoreFromFileView extends ConsumerStatefulWidget {
|
||||
const RestoreFromFileView({Key? key}) : super(key: key);
|
||||
|
@ -537,7 +538,7 @@ class _RestoreFromFileViewState extends ConsumerState<RestoreFromFileView> {
|
|||
.all(
|
||||
32),
|
||||
child: Text(
|
||||
"Restore {$AppConfig.appName}",
|
||||
"Restore ${AppConfig.appName}",
|
||||
style: STextStyles
|
||||
.desktopH3(
|
||||
context),
|
||||
|
|
|
@ -13,14 +13,8 @@ import 'dart:async';
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
|
||||
import '../../../../../app_config.dart';
|
||||
import '../../../../home_view/home_view.dart';
|
||||
import '../dialogs/cancel_stack_restore_dialog.dart';
|
||||
import '../helpers/restore_create_backup.dart';
|
||||
import '../restore_from_encrypted_string_view.dart';
|
||||
import '../stack_backup_view.dart';
|
||||
import '../sub_widgets/restoring_item_card.dart';
|
||||
import '../sub_widgets/restoring_wallet_card.dart';
|
||||
import '../../../../../pages_desktop_specific/desktop_home_view.dart';
|
||||
import '../../../../../pages_desktop_specific/desktop_menu.dart';
|
||||
import '../../../../../providers/desktop/current_desktop_menu_item.dart';
|
||||
|
@ -40,6 +34,13 @@ import '../../../../../widgets/desktop/secondary_button.dart';
|
|||
import '../../../../../widgets/icon_widgets/addressbook_icon.dart';
|
||||
import '../../../../../widgets/loading_indicator.dart';
|
||||
import '../../../../../widgets/rounded_container.dart';
|
||||
import '../../../../home_view/home_view.dart';
|
||||
import '../dialogs/cancel_stack_restore_dialog.dart';
|
||||
import '../helpers/restore_create_backup.dart';
|
||||
import '../restore_from_encrypted_string_view.dart';
|
||||
import '../stack_backup_view.dart';
|
||||
import '../sub_widgets/restoring_item_card.dart';
|
||||
import '../sub_widgets/restoring_wallet_card.dart';
|
||||
|
||||
class StackRestoreProgressView extends ConsumerStatefulWidget {
|
||||
const StackRestoreProgressView({
|
||||
|
@ -264,7 +265,7 @@ class _StackRestoreProgressViewState
|
|||
},
|
||||
),
|
||||
title: Text(
|
||||
"Restoring {$AppConfig.appName}",
|
||||
"Restoring ${AppConfig.appName}",
|
||||
style: STextStyles.navBarTitle(context),
|
||||
),
|
||||
),
|
||||
|
|
|
@ -319,7 +319,7 @@ class _StepScaffoldState extends ConsumerState<StepScaffold> {
|
|||
onPressed: onBack,
|
||||
),
|
||||
secondChild: SecondaryButton(
|
||||
label: "Send from {$AppConfig.appName}",
|
||||
label: "Send from ${AppConfig.appName}",
|
||||
buttonHeight: ButtonHeight.l,
|
||||
onPressed: sendFromStack,
|
||||
),
|
||||
|
|
|
@ -15,13 +15,14 @@ import 'package:flutter/foundation.dart';
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:tuple/tuple.dart';
|
||||
|
||||
import '../../app_config.dart';
|
||||
import '../../db/hive/db.dart';
|
||||
import '../../notifications/show_flush_bar.dart';
|
||||
import '../../pages/settings_views/global_settings_view/stack_backup_views/helpers/restore_create_backup.dart';
|
||||
import '../../pages/settings_views/global_settings_view/stack_backup_views/helpers/swb_file_system.dart';
|
||||
import '../../pages/settings_views/global_settings_view/stack_backup_views/sub_views/stack_restore_progress_view.dart';
|
||||
import 'create_password_view.dart';
|
||||
import '../../providers/desktop/storage_crypto_handler_provider.dart';
|
||||
import '../../providers/global/secure_store_provider.dart';
|
||||
import '../../providers/global/wallets_provider.dart';
|
||||
|
@ -38,7 +39,7 @@ import '../../widgets/desktop/desktop_scaffold.dart';
|
|||
import '../../widgets/desktop/primary_button.dart';
|
||||
import '../../widgets/loading_indicator.dart';
|
||||
import '../../widgets/stack_text_field.dart';
|
||||
import 'package:tuple/tuple.dart';
|
||||
import 'create_password_view.dart';
|
||||
|
||||
class ForgottenPassphraseRestoreFromSWB extends ConsumerStatefulWidget {
|
||||
const ForgottenPassphraseRestoreFromSWB({Key? key}) : super(key: key);
|
||||
|
@ -155,7 +156,7 @@ class _ForgottenPassphraseRestoreFromSWBState
|
|||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
"Restoring {$AppConfig.appName}",
|
||||
"Restoring ${AppConfig.appName}",
|
||||
style: STextStyles.desktopH3(context),
|
||||
),
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue