mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-22 19:39:22 +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(
|
||||
height: 16,
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
RadioTextButton(
|
||||
label: "Only TOR traffic",
|
||||
enabled: !widget.readOnly,
|
||||
value: TorPlainNetworkOption.tor,
|
||||
groupValue: netOption,
|
||||
onChanged: (value) {
|
||||
if (!widget.readOnly) {
|
||||
setState(
|
||||
() => netOption = TorPlainNetworkOption.tor,
|
||||
);
|
||||
_updateState();
|
||||
}
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 8,
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
RadioTextButton(
|
||||
label: "Only non-TOR traffic",
|
||||
enabled: !widget.readOnly,
|
||||
value: TorPlainNetworkOption.clear,
|
||||
groupValue: netOption,
|
||||
onChanged: (value) {
|
||||
if (!widget.readOnly) {
|
||||
setState(
|
||||
() => netOption = TorPlainNetworkOption.clear,
|
||||
);
|
||||
_updateState();
|
||||
}
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 8,
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
RadioTextButton(
|
||||
label: "Allow both",
|
||||
enabled: !widget.readOnly,
|
||||
value: TorPlainNetworkOption.both,
|
||||
groupValue: netOption,
|
||||
onChanged: (value) {
|
||||
if (!widget.readOnly) {
|
||||
setState(
|
||||
() => netOption = TorPlainNetworkOption.both,
|
||||
);
|
||||
_updateState();
|
||||
}
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
if (widget.coin is! Ethereum)
|
||||
const SizedBox(
|
||||
height: 16,
|
||||
),
|
||||
if (widget.coin is! Ethereum)
|
||||
Row(
|
||||
children: [
|
||||
RadioTextButton(
|
||||
label: "Only TOR traffic",
|
||||
enabled: !widget.readOnly,
|
||||
value: TorPlainNetworkOption.tor,
|
||||
groupValue: netOption,
|
||||
onChanged: (value) {
|
||||
if (!widget.readOnly) {
|
||||
setState(
|
||||
() => netOption = TorPlainNetworkOption.tor,
|
||||
);
|
||||
_updateState();
|
||||
}
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
if (widget.coin is! Ethereum)
|
||||
const SizedBox(
|
||||
height: 8,
|
||||
),
|
||||
if (widget.coin is! Ethereum)
|
||||
Row(
|
||||
children: [
|
||||
RadioTextButton(
|
||||
label: "Only non-TOR traffic",
|
||||
enabled: !widget.readOnly,
|
||||
value: TorPlainNetworkOption.clear,
|
||||
groupValue: netOption,
|
||||
onChanged: (value) {
|
||||
if (!widget.readOnly) {
|
||||
setState(
|
||||
() => netOption = TorPlainNetworkOption.clear,
|
||||
);
|
||||
_updateState();
|
||||
}
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
if (widget.coin is! Ethereum)
|
||||
const SizedBox(
|
||||
height: 8,
|
||||
),
|
||||
if (widget.coin is! Ethereum)
|
||||
Row(
|
||||
children: [
|
||||
RadioTextButton(
|
||||
label: "Allow both",
|
||||
enabled: !widget.readOnly,
|
||||
value: TorPlainNetworkOption.both,
|
||||
groupValue: netOption,
|
||||
onChanged: (value) {
|
||||
if (!widget.readOnly) {
|
||||
setState(
|
||||
() => netOption = TorPlainNetworkOption.both,
|
||||
);
|
||||
_updateState();
|
||||
}
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue