mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-24 18:38:48 +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),
|
||||
child: Row(
|
||||
children: [
|
||||
Stack(
|
||||
children: [
|
||||
if (account.scheme == "http")
|
||||
Icon(
|
||||
Icons.cloud,
|
||||
color: AppTheme.getCloudIconColor(context),
|
||||
Icons.no_encryption_outlined,
|
||||
color: Colors.orange,
|
||||
)
|
||||
else
|
||||
Icon(
|
||||
Icons.https,
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Expanded(
|
||||
|
@ -46,7 +56,7 @@ class HomeSliverAppBar extends StatelessWidget {
|
|||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
account.url,
|
||||
account.url.substring(account.scheme.length + 3),
|
||||
style: const TextStyle(fontSize: 16),
|
||||
),
|
||||
Text(
|
||||
|
|
Loading…
Reference in a new issue