Replace cloud icon with https indicator

This commit is contained in:
Ming Ming 2021-07-14 00:04:28 +08:00
parent 7ad1f2fcf1
commit d927bf3cb8

View file

@ -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(