mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 17:27:39 +00:00
fix spacing on wallet settings view
This commit is contained in:
parent
2ee8d84543
commit
93d544809c
1 changed files with 57 additions and 45 deletions
|
@ -21,6 +21,7 @@ import '../../../../utilities/util.dart';
|
||||||
import '../../../../wallets/isar/models/wallet_info.dart';
|
import '../../../../wallets/isar/models/wallet_info.dart';
|
||||||
import '../../../../wallets/isar/providers/wallet_info_provider.dart';
|
import '../../../../wallets/isar/providers/wallet_info_provider.dart';
|
||||||
import '../../../../wallets/wallet/wallet_mixin_interfaces/lelantus_interface.dart';
|
import '../../../../wallets/wallet/wallet_mixin_interfaces/lelantus_interface.dart';
|
||||||
|
import '../../../../wallets/wallet/wallet_mixin_interfaces/multi_address_interface.dart';
|
||||||
import '../../../../wallets/wallet/wallet_mixin_interfaces/rbf_interface.dart';
|
import '../../../../wallets/wallet/wallet_mixin_interfaces/rbf_interface.dart';
|
||||||
import '../../../../wallets/wallet/wallet_mixin_interfaces/spark_interface.dart';
|
import '../../../../wallets/wallet/wallet_mixin_interfaces/spark_interface.dart';
|
||||||
import '../../../../widgets/background.dart';
|
import '../../../../widgets/background.dart';
|
||||||
|
@ -220,15 +221,20 @@ class _WalletSettingsWalletSettingsViewState
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
if (ref.watch(pWallets).getWallet(widget.walletId)
|
||||||
|
is RbfInterface)
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 8,
|
height: 8,
|
||||||
),
|
),
|
||||||
|
if (ref.watch(pWallets).getWallet(widget.walletId)
|
||||||
|
is MultiAddressInterface)
|
||||||
RoundedWhiteContainer(
|
RoundedWhiteContainer(
|
||||||
child: Consumer(
|
child: Consumer(
|
||||||
builder: (_, ref, __) {
|
builder: (_, ref, __) {
|
||||||
return RawMaterialButton(
|
return RawMaterialButton(
|
||||||
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
materialTapTargetSize:
|
||||||
|
MaterialTapTargetSize.shrinkWrap,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Constants.size.circularBorderRadius,
|
Constants.size.circularBorderRadius,
|
||||||
|
@ -250,9 +256,10 @@ class _WalletSettingsWalletSettingsViewState
|
||||||
width: 40,
|
width: 40,
|
||||||
child: DraggableSwitchButton(
|
child: DraggableSwitchButton(
|
||||||
isOn: ref.watch(
|
isOn: ref.watch(
|
||||||
pWalletInfo(widget.walletId)
|
pWalletInfo(widget.walletId).select(
|
||||||
.select((value) => value.otherData),
|
(value) => value.otherData),
|
||||||
)[WalletInfoKeys.reuseAddress] as bool? ??
|
)[WalletInfoKeys.reuseAddress]
|
||||||
|
as bool? ??
|
||||||
false,
|
false,
|
||||||
onValueChanged: (newValue) {
|
onValueChanged: (newValue) {
|
||||||
_switchReuseAddressToggled(newValue);
|
_switchReuseAddressToggled(newValue);
|
||||||
|
@ -266,6 +273,11 @@ class _WalletSettingsWalletSettingsViewState
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
if (ref.watch(pWallets).getWallet(widget.walletId)
|
||||||
|
is MultiAddressInterface)
|
||||||
|
const SizedBox(
|
||||||
|
height: 8,
|
||||||
|
),
|
||||||
if (ref.watch(pWallets).getWallet(widget.walletId)
|
if (ref.watch(pWallets).getWallet(widget.walletId)
|
||||||
is LelantusInterface)
|
is LelantusInterface)
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
|
|
Loading…
Reference in a new issue