mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-21 22:58:49 +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,63 +111,73 @@ class _TorSettingsState extends ConsumerState<TorSettings> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 20,
|
height: 10,
|
||||||
),
|
),
|
||||||
SecondaryButton(
|
Padding(
|
||||||
label: "Disconnect from Tor",
|
padding: const EdgeInsets.all(10.0),
|
||||||
width: 200,
|
child: SecondaryButton(
|
||||||
buttonHeight: ButtonHeight.m,
|
label: "Disconnect from Tor",
|
||||||
onPressed: () {},
|
width: 200,
|
||||||
|
buttonHeight: ButtonHeight.m,
|
||||||
|
onPressed: () {},
|
||||||
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 40,
|
height: 30,
|
||||||
),
|
),
|
||||||
Row(
|
Padding(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
padding: const EdgeInsets.all(10.0),
|
||||||
children: [
|
child: Row(
|
||||||
Row(
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
RichText(
|
Row(
|
||||||
textAlign: TextAlign.start,
|
children: [
|
||||||
text: TextSpan(
|
RichText(
|
||||||
children: [
|
textAlign: TextAlign.start,
|
||||||
TextSpan(
|
text: TextSpan(
|
||||||
text: "Tor killswitch",
|
children: [
|
||||||
style: STextStyles.desktopTextExtraExtraSmall(
|
TextSpan(
|
||||||
context)
|
text: "Tor killswitch",
|
||||||
.copyWith(
|
style: STextStyles.desktopTextExtraExtraSmall(
|
||||||
color: Theme.of(context)
|
context)
|
||||||
.extension<StackColors>()!
|
.copyWith(
|
||||||
.accentColorDark),
|
color: Theme.of(context)
|
||||||
),
|
.extension<StackColors>()!
|
||||||
TextSpan(
|
.accentColorDark),
|
||||||
text: "\nWhat is Tor killswitch?",
|
|
||||||
style: STextStyles.richLink(context).copyWith(
|
|
||||||
fontSize: 14,
|
|
||||||
),
|
),
|
||||||
recognizer: TapGestureRecognizer()
|
TextSpan(
|
||||||
..onTap = () {},
|
text: "\nWhat is Tor killswitch?",
|
||||||
),
|
style: STextStyles.richLink(context).copyWith(
|
||||||
],
|
fontSize: 14,
|
||||||
|
),
|
||||||
|
recognizer: TapGestureRecognizer()
|
||||||
|
..onTap = () {},
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.only(right: 8.0),
|
||||||
|
child: SizedBox(
|
||||||
|
height: 20,
|
||||||
|
width: 40,
|
||||||
|
child: DraggableSwitchButton(
|
||||||
|
isOn: ref.watch(
|
||||||
|
prefsChangeNotifierProvider
|
||||||
|
.select((value) => value.torKillswitch),
|
||||||
|
),
|
||||||
|
onValueChanged: (newValue) {
|
||||||
|
ref
|
||||||
|
.read(prefsChangeNotifierProvider)
|
||||||
|
.torKillswitch = newValue;
|
||||||
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
|
||||||
),
|
|
||||||
SizedBox(
|
|
||||||
height: 20,
|
|
||||||
width: 40,
|
|
||||||
child: DraggableSwitchButton(
|
|
||||||
isOn: ref.watch(
|
|
||||||
prefsChangeNotifierProvider
|
|
||||||
.select((value) => value.torKillswitch),
|
|
||||||
),
|
|
||||||
onValueChanged: (newValue) {
|
|
||||||
ref.read(prefsChangeNotifierProvider).torKillswitch =
|
|
||||||
newValue;
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
|
|
Loading…
Reference in a new issue