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,52 +221,63 @@ class _WalletSettingsWalletSettingsViewState
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
if (ref.watch(pWallets).getWallet(widget.walletId)
|
||||||
height: 8,
|
is RbfInterface)
|
||||||
),
|
const SizedBox(
|
||||||
RoundedWhiteContainer(
|
height: 8,
|
||||||
child: Consumer(
|
),
|
||||||
builder: (_, ref, __) {
|
if (ref.watch(pWallets).getWallet(widget.walletId)
|
||||||
return RawMaterialButton(
|
is MultiAddressInterface)
|
||||||
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
RoundedWhiteContainer(
|
||||||
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
child: Consumer(
|
||||||
shape: RoundedRectangleBorder(
|
builder: (_, ref, __) {
|
||||||
borderRadius: BorderRadius.circular(
|
return RawMaterialButton(
|
||||||
Constants.size.circularBorderRadius,
|
// splashColor: Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
),
|
materialTapTargetSize:
|
||||||
),
|
MaterialTapTargetSize.shrinkWrap,
|
||||||
onPressed: null,
|
shape: RoundedRectangleBorder(
|
||||||
child: Padding(
|
borderRadius: BorderRadius.circular(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 8),
|
Constants.size.circularBorderRadius,
|
||||||
child: Row(
|
),
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
),
|
||||||
children: [
|
onPressed: null,
|
||||||
Text(
|
child: Padding(
|
||||||
"Reuse receiving address by default",
|
padding: const EdgeInsets.symmetric(vertical: 8),
|
||||||
style: STextStyles.titleBold12(context),
|
child: Row(
|
||||||
textAlign: TextAlign.left,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
),
|
children: [
|
||||||
SizedBox(
|
Text(
|
||||||
height: 20,
|
"Reuse receiving address by default",
|
||||||
width: 40,
|
style: STextStyles.titleBold12(context),
|
||||||
child: DraggableSwitchButton(
|
textAlign: TextAlign.left,
|
||||||
isOn: ref.watch(
|
),
|
||||||
pWalletInfo(widget.walletId)
|
SizedBox(
|
||||||
.select((value) => value.otherData),
|
height: 20,
|
||||||
)[WalletInfoKeys.reuseAddress] as bool? ??
|
width: 40,
|
||||||
false,
|
child: DraggableSwitchButton(
|
||||||
onValueChanged: (newValue) {
|
isOn: ref.watch(
|
||||||
_switchReuseAddressToggled(newValue);
|
pWalletInfo(widget.walletId).select(
|
||||||
},
|
(value) => value.otherData),
|
||||||
),
|
)[WalletInfoKeys.reuseAddress]
|
||||||
),
|
as bool? ??
|
||||||
],
|
false,
|
||||||
),
|
onValueChanged: (newValue) {
|
||||||
),
|
_switchReuseAddressToggled(newValue);
|
||||||
);
|
},
|
||||||
},
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
|
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