mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-25 02:48:54 +01:00
Replace cloud icon with https indicator
This commit is contained in:
parent
7ad1f2fcf1
commit
d927bf3cb8
1 changed files with 14 additions and 4 deletions
|
@ -36,9 +36,19 @@ class HomeSliverAppBar extends StatelessWidget {
|
||||||
padding: const EdgeInsets.all(8),
|
padding: const EdgeInsets.all(8),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
|
Stack(
|
||||||
|
children: [
|
||||||
|
if (account.scheme == "http")
|
||||||
Icon(
|
Icon(
|
||||||
Icons.cloud,
|
Icons.no_encryption_outlined,
|
||||||
color: AppTheme.getCloudIconColor(context),
|
color: Colors.orange,
|
||||||
|
)
|
||||||
|
else
|
||||||
|
Icon(
|
||||||
|
Icons.https,
|
||||||
|
color: Theme.of(context).colorScheme.primary,
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(width: 8),
|
const SizedBox(width: 8),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
@ -46,7 +56,7 @@ class HomeSliverAppBar extends StatelessWidget {
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
account.url,
|
account.url.substring(account.scheme.length + 3),
|
||||||
style: const TextStyle(fontSize: 16),
|
style: const TextStyle(fontSize: 16),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
|
|
Loading…
Reference in a new issue