Merge branch 'krille/homepicker-dark-mode' into 'main'

fix: SSO Button design in dark mode

See merge request famedly/fluffychat!556
This commit is contained in:
Krille Fear 2021-11-20 10:05:40 +00:00
commit 0539a663b0

View File

@ -188,15 +188,24 @@ class _SsoButton extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
identityProvider.icon == null Material(
? const Icon(Icons.web_outlined) color: Colors.white,
: CachedNetworkImage( borderRadius: BorderRadius.circular(7),
imageUrl: Uri.parse(identityProvider.icon) clipBehavior: Clip.hardEdge,
.getDownloadLink(Matrix.of(context).getLoginClient()) child: Padding(
.toString(), padding: const EdgeInsets.all(2.0),
width: 32, child: identityProvider.icon == null
height: 32, ? const Icon(Icons.web_outlined)
), : CachedNetworkImage(
imageUrl: Uri.parse(identityProvider.icon)
.getDownloadLink(
Matrix.of(context).getLoginClient())
.toString(),
width: 32,
height: 32,
),
),
),
const SizedBox(height: 8), const SizedBox(height: 8),
Text( Text(
identityProvider.name ?? identityProvider.name ??