mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
fixes (#280)
* xmr send fix * small screen recovery phrase warning view fix * mnemonic field crashes fix
This commit is contained in:
parent
23d913df0c
commit
32299975c3
3 changed files with 38 additions and 8 deletions
|
@ -19,6 +19,7 @@ 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_colors.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/conditional_parent.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';
|
||||||
import 'package:stackwallet/widgets/desktop/desktop_scaffold.dart';
|
import 'package:stackwallet/widgets/desktop/desktop_scaffold.dart';
|
||||||
|
@ -105,8 +106,25 @@ class _NewWalletRecoveryPhraseWarningViewState
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
body: Padding(
|
body: ConditionalParent(
|
||||||
padding: EdgeInsets.all(isDesktop ? 0 : 16),
|
condition: !isDesktop,
|
||||||
|
builder: (child) => LayoutBuilder(
|
||||||
|
builder: (context, constraints) {
|
||||||
|
return SingleChildScrollView(
|
||||||
|
child: ConstrainedBox(
|
||||||
|
constraints: BoxConstraints(
|
||||||
|
minHeight: constraints.maxHeight,
|
||||||
|
),
|
||||||
|
child: IntrinsicHeight(
|
||||||
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.all(16),
|
||||||
|
child: child,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: isDesktop
|
crossAxisAlignment: isDesktop
|
||||||
? CrossAxisAlignment.center
|
? CrossAxisAlignment.center
|
||||||
|
@ -315,9 +333,11 @@ class _NewWalletRecoveryPhraseWarningViewState
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 20,
|
width: 20,
|
||||||
),
|
),
|
||||||
Text(
|
Expanded(
|
||||||
"Do not show them to anyone.",
|
child: Text(
|
||||||
style: STextStyles.navBarTitle(context),
|
"Do not show them to anyone.",
|
||||||
|
style: STextStyles.navBarTitle(context),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
@ -327,6 +347,10 @@ class _NewWalletRecoveryPhraseWarningViewState
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (!isDesktop) const Spacer(),
|
if (!isDesktop) const Spacer(),
|
||||||
|
if (!isDesktop)
|
||||||
|
const SizedBox(
|
||||||
|
height: 16,
|
||||||
|
),
|
||||||
if (isDesktop)
|
if (isDesktop)
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 32,
|
height: 32,
|
||||||
|
|
|
@ -736,6 +736,8 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
TextFormField(
|
TextFormField(
|
||||||
|
autocorrect: !isDesktop,
|
||||||
|
enableSuggestions: !isDesktop,
|
||||||
textCapitalization:
|
textCapitalization:
|
||||||
TextCapitalization.none,
|
TextCapitalization.none,
|
||||||
key: Key(
|
key: Key(
|
||||||
|
@ -831,6 +833,8 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
TextFormField(
|
TextFormField(
|
||||||
|
autocorrect: !isDesktop,
|
||||||
|
enableSuggestions: !isDesktop,
|
||||||
textCapitalization:
|
textCapitalization:
|
||||||
TextCapitalization.none,
|
TextCapitalization.none,
|
||||||
key: Key(
|
key: Key(
|
||||||
|
@ -954,6 +958,8 @@ class _RestoreWalletViewState extends ConsumerState<RestoreWalletView> {
|
||||||
padding:
|
padding:
|
||||||
const EdgeInsets.symmetric(vertical: 4),
|
const EdgeInsets.symmetric(vertical: 4),
|
||||||
child: TextFormField(
|
child: TextFormField(
|
||||||
|
autocorrect: !isDesktop,
|
||||||
|
enableSuggestions: !isDesktop,
|
||||||
textCapitalization:
|
textCapitalization:
|
||||||
TextCapitalization.none,
|
TextCapitalization.none,
|
||||||
key: Key("restoreMnemonicFormField_$i"),
|
key: Key("restoreMnemonicFormField_$i"),
|
||||||
|
|
|
@ -141,7 +141,7 @@ class MoneroWallet extends CoinServiceAPI {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
// not used for monero
|
// not used for monero
|
||||||
Future<List<String>> get allOwnAddresses => throw UnimplementedError();
|
Future<List<String>> get allOwnAddresses async => [];
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<Decimal> get availableBalance async {
|
Future<Decimal> get availableBalance async {
|
||||||
|
@ -841,9 +841,9 @@ class MoneroWallet extends CoinServiceAPI {
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<void> updateSentCachedTxData(Map<String, dynamic> txData) {
|
Future<void> updateSentCachedTxData(Map<String, dynamic> txData) async {
|
||||||
// not used for xmr
|
// not used for xmr
|
||||||
throw UnimplementedError();
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
Loading…
Reference in a new issue