mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-30 16:29:30 +01:00
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:
commit
0539a663b0
@ -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 ??
|
||||||
|
Loading…
Reference in New Issue
Block a user