adjust padding

This commit is contained in:
ryleedavis 2023-09-05 16:34:53 -06:00
parent 1dea6cdb7d
commit 2fc116707b

View file

@ -46,6 +46,7 @@ class _TorSettingsState extends ConsumerState<TorSettings> {
Widget build(BuildContext context) {
final isDesktop = Util.isDesktop;
/// todo: redo the padding
return Column(
children: [
Padding(
@ -110,18 +111,23 @@ class _TorSettingsState extends ConsumerState<TorSettings> {
),
),
const SizedBox(
height: 20,
height: 10,
),
SecondaryButton(
Padding(
padding: const EdgeInsets.all(10.0),
child: SecondaryButton(
label: "Disconnect from Tor",
width: 200,
buttonHeight: ButtonHeight.m,
onPressed: () {},
),
const SizedBox(
height: 40,
),
Row(
const SizedBox(
height: 30,
),
Padding(
padding: const EdgeInsets.all(10.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Row(
@ -152,7 +158,9 @@ class _TorSettingsState extends ConsumerState<TorSettings> {
),
],
),
SizedBox(
Padding(
padding: const EdgeInsets.only(right: 8.0),
child: SizedBox(
height: 20,
width: 40,
child: DraggableSwitchButton(
@ -161,13 +169,16 @@ class _TorSettingsState extends ConsumerState<TorSettings> {
.select((value) => value.torKillswitch),
),
onValueChanged: (newValue) {
ref.read(prefsChangeNotifierProvider).torKillswitch =
newValue;
ref
.read(prefsChangeNotifierProvider)
.torKillswitch = newValue;
},
),
),
),
],
),
),
const SizedBox(
height: 10,
),