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), 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(