mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-08 00:51:20 +00:00
refactor(ui): Change SizedBox dimension hardcode from 10 to 8 for service cards
This commit is contained in:
parent
ec36f6b764
commit
c64c6e11d7
|
@ -129,7 +129,7 @@ class _Card extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 10),
|
const SizedBox(width: 8),
|
||||||
Text(
|
Text(
|
||||||
service.displayName,
|
service.displayName,
|
||||||
style: Theme.of(context).textTheme.headlineMedium,
|
style: Theme.of(context).textTheme.headlineMedium,
|
||||||
|
@ -139,14 +139,14 @@ class _Card extends StatelessWidget {
|
||||||
Column(
|
Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 8),
|
||||||
if (service.url != '' && service.url != null)
|
if (service.url != '' && service.url != null)
|
||||||
Column(
|
Column(
|
||||||
children: [
|
children: [
|
||||||
_ServiceLink(
|
_ServiceLink(
|
||||||
url: service.url ?? '',
|
url: service.url ?? '',
|
||||||
),
|
),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 8),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
if (service.id == 'mailserver')
|
if (service.id == 'mailserver')
|
||||||
|
@ -156,21 +156,21 @@ class _Card extends StatelessWidget {
|
||||||
url: domainName,
|
url: domainName,
|
||||||
isActive: false,
|
isActive: false,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 8),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
service.description,
|
service.description,
|
||||||
style: Theme.of(context).textTheme.bodyMedium,
|
style: Theme.of(context).textTheme.bodyMedium,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 8),
|
||||||
Text(
|
Text(
|
||||||
service.loginInfo,
|
service.loginInfo,
|
||||||
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
||||||
color: Theme.of(context).colorScheme.secondary,
|
color: Theme.of(context).colorScheme.secondary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 8),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue