mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-08 19:59:29 +00:00
eth doesn't do tor due to underlying lib limitation.
This commit is contained in:
parent
25c6c7590b
commit
d87af969d6
1 changed files with 69 additions and 63 deletions
|
@ -1228,69 +1228,75 @@ class _NodeFormState extends ConsumerState<NodeForm> {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(
|
if (widget.coin is! Ethereum)
|
||||||
height: 16,
|
const SizedBox(
|
||||||
),
|
height: 16,
|
||||||
Row(
|
),
|
||||||
children: [
|
if (widget.coin is! Ethereum)
|
||||||
RadioTextButton(
|
Row(
|
||||||
label: "Only TOR traffic",
|
children: [
|
||||||
enabled: !widget.readOnly,
|
RadioTextButton(
|
||||||
value: TorPlainNetworkOption.tor,
|
label: "Only TOR traffic",
|
||||||
groupValue: netOption,
|
enabled: !widget.readOnly,
|
||||||
onChanged: (value) {
|
value: TorPlainNetworkOption.tor,
|
||||||
if (!widget.readOnly) {
|
groupValue: netOption,
|
||||||
setState(
|
onChanged: (value) {
|
||||||
() => netOption = TorPlainNetworkOption.tor,
|
if (!widget.readOnly) {
|
||||||
);
|
setState(
|
||||||
_updateState();
|
() => netOption = TorPlainNetworkOption.tor,
|
||||||
}
|
);
|
||||||
},
|
_updateState();
|
||||||
),
|
}
|
||||||
],
|
},
|
||||||
),
|
),
|
||||||
const SizedBox(
|
],
|
||||||
height: 8,
|
),
|
||||||
),
|
if (widget.coin is! Ethereum)
|
||||||
Row(
|
const SizedBox(
|
||||||
children: [
|
height: 8,
|
||||||
RadioTextButton(
|
),
|
||||||
label: "Only non-TOR traffic",
|
if (widget.coin is! Ethereum)
|
||||||
enabled: !widget.readOnly,
|
Row(
|
||||||
value: TorPlainNetworkOption.clear,
|
children: [
|
||||||
groupValue: netOption,
|
RadioTextButton(
|
||||||
onChanged: (value) {
|
label: "Only non-TOR traffic",
|
||||||
if (!widget.readOnly) {
|
enabled: !widget.readOnly,
|
||||||
setState(
|
value: TorPlainNetworkOption.clear,
|
||||||
() => netOption = TorPlainNetworkOption.clear,
|
groupValue: netOption,
|
||||||
);
|
onChanged: (value) {
|
||||||
_updateState();
|
if (!widget.readOnly) {
|
||||||
}
|
setState(
|
||||||
},
|
() => netOption = TorPlainNetworkOption.clear,
|
||||||
),
|
);
|
||||||
],
|
_updateState();
|
||||||
),
|
}
|
||||||
const SizedBox(
|
},
|
||||||
height: 8,
|
),
|
||||||
),
|
],
|
||||||
Row(
|
),
|
||||||
children: [
|
if (widget.coin is! Ethereum)
|
||||||
RadioTextButton(
|
const SizedBox(
|
||||||
label: "Allow both",
|
height: 8,
|
||||||
enabled: !widget.readOnly,
|
),
|
||||||
value: TorPlainNetworkOption.both,
|
if (widget.coin is! Ethereum)
|
||||||
groupValue: netOption,
|
Row(
|
||||||
onChanged: (value) {
|
children: [
|
||||||
if (!widget.readOnly) {
|
RadioTextButton(
|
||||||
setState(
|
label: "Allow both",
|
||||||
() => netOption = TorPlainNetworkOption.both,
|
enabled: !widget.readOnly,
|
||||||
);
|
value: TorPlainNetworkOption.both,
|
||||||
_updateState();
|
groupValue: netOption,
|
||||||
}
|
onChanged: (value) {
|
||||||
},
|
if (!widget.readOnly) {
|
||||||
),
|
setState(
|
||||||
],
|
() => netOption = TorPlainNetworkOption.both,
|
||||||
),
|
);
|
||||||
|
_updateState();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue