Changed Tor info dialogs so padding looks better

This commit is contained in:
ryleedavis 2023-09-18 14:42:38 -06:00
parent 309fce399f
commit 932c8d6bb9

View file

@ -215,40 +215,37 @@ class _TorSettingsState extends ConsumerState<TorSettings> {
return DesktopDialog( return DesktopDialog(
maxWidth: 580, maxWidth: 580,
maxHeight: double.infinity, maxHeight: double.infinity,
child: Column( child: Padding(
children: [ padding: const EdgeInsets.only(
Row( top: 10,
mainAxisAlignment: left: 20,
MainAxisAlignment bottom: 20,
.spaceBetween, right: 10,
children: [ ),
Padding( child: Column(
padding: children: [
const EdgeInsets.only( Row(
left: 32, mainAxisAlignment:
), MainAxisAlignment
child: Text( .spaceBetween,
children: [
Text(
"What is Tor?", "What is Tor?",
style: style:
STextStyles.desktopH2( STextStyles.desktopH2(
context), context),
), ),
), DesktopDialogCloseButton(
DesktopDialogCloseButton( onPressedOverride: () =>
onPressedOverride: () => Navigator.of(context)
Navigator.of(context) .pop(true),
.pop(true), ),
), ],
],
),
Padding(
padding: const EdgeInsets.only(
top: 12,
left: 32,
bottom: 32,
right: 32,
), ),
child: Text( const SizedBox(
height: 16,
),
Text(
"Short for \"The Onion Router\", is an open-source software that enables internet communication" "Short for \"The Onion Router\", is an open-source software that enables internet communication"
" to remain anonymous by routing internet traffic through a series of layered nodes," " to remain anonymous by routing internet traffic through a series of layered nodes,"
" to obscure the origin and destination of data.", " to obscure the origin and destination of data.",
@ -261,8 +258,8 @@ class _TorSettingsState extends ConsumerState<TorSettings> {
.textDark3, .textDark3,
), ),
), ),
), ],
], ),
), ),
); );
}, },
@ -324,40 +321,37 @@ class _TorSettingsState extends ConsumerState<TorSettings> {
return DesktopDialog( return DesktopDialog(
maxWidth: 580, maxWidth: 580,
maxHeight: double.infinity, maxHeight: double.infinity,
child: Column( child: Padding(
children: [ padding: const EdgeInsets.only(
Row( top: 10,
mainAxisAlignment: left: 20,
MainAxisAlignment bottom: 20,
.spaceBetween, right: 10,
children: [ ),
Padding( child: Column(
padding: children: [
const EdgeInsets.only( Row(
left: 32, mainAxisAlignment:
), MainAxisAlignment
child: Text( .spaceBetween,
children: [
Text(
"What is Tor killswitch?", "What is Tor killswitch?",
style: STextStyles style: STextStyles
.desktopH2(context), .desktopH2(context),
), ),
), DesktopDialogCloseButton(
DesktopDialogCloseButton( onPressedOverride: () =>
onPressedOverride: () => Navigator.of(
Navigator.of(context) context)
.pop(true), .pop(true),
), ),
], ],
),
Padding(
padding:
const EdgeInsets.only(
top: 12,
left: 32,
bottom: 32,
right: 32,
), ),
child: Text( const SizedBox(
height: 16,
),
Text(
"A security feature that protects your information from accidental exposure by" "A security feature that protects your information from accidental exposure by"
" disconnecting your device from the Tor network if the" " disconnecting your device from the Tor network if the"
" connection is disrupted or compromised.", " connection is disrupted or compromised.",
@ -371,16 +365,16 @@ class _TorSettingsState extends ConsumerState<TorSettings> {
.textDark3, .textDark3,
), ),
), ),
), ],
], ),
), ),
); );
}, },
); );
}, },
), ),
), ],
], ),
), ),
], ],
), ),