mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-25 19:55:52 +00:00
adjust padding
This commit is contained in:
parent
1dea6cdb7d
commit
2fc116707b
1 changed files with 60 additions and 49 deletions
|
@ -46,6 +46,7 @@ class _TorSettingsState extends ConsumerState<TorSettings> {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final isDesktop = Util.isDesktop;
|
final isDesktop = Util.isDesktop;
|
||||||
|
|
||||||
|
/// todo: redo the padding
|
||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
|
@ -110,18 +111,23 @@ class _TorSettingsState extends ConsumerState<TorSettings> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 20,
|
height: 10,
|
||||||
),
|
),
|
||||||
SecondaryButton(
|
Padding(
|
||||||
|
padding: const EdgeInsets.all(10.0),
|
||||||
|
child: SecondaryButton(
|
||||||
label: "Disconnect from Tor",
|
label: "Disconnect from Tor",
|
||||||
width: 200,
|
width: 200,
|
||||||
buttonHeight: ButtonHeight.m,
|
buttonHeight: ButtonHeight.m,
|
||||||
onPressed: () {},
|
onPressed: () {},
|
||||||
),
|
),
|
||||||
const SizedBox(
|
|
||||||
height: 40,
|
|
||||||
),
|
),
|
||||||
Row(
|
const SizedBox(
|
||||||
|
height: 30,
|
||||||
|
),
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.all(10.0),
|
||||||
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
|
@ -152,7 +158,9 @@ class _TorSettingsState extends ConsumerState<TorSettings> {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
SizedBox(
|
Padding(
|
||||||
|
padding: const EdgeInsets.only(right: 8.0),
|
||||||
|
child: SizedBox(
|
||||||
height: 20,
|
height: 20,
|
||||||
width: 40,
|
width: 40,
|
||||||
child: DraggableSwitchButton(
|
child: DraggableSwitchButton(
|
||||||
|
@ -161,13 +169,16 @@ class _TorSettingsState extends ConsumerState<TorSettings> {
|
||||||
.select((value) => value.torKillswitch),
|
.select((value) => value.torKillswitch),
|
||||||
),
|
),
|
||||||
onValueChanged: (newValue) {
|
onValueChanged: (newValue) {
|
||||||
ref.read(prefsChangeNotifierProvider).torKillswitch =
|
ref
|
||||||
newValue;
|
.read(prefsChangeNotifierProvider)
|
||||||
|
.torKillswitch = newValue;
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue