Merge pull request #5481 from dignow/feat/add_oidc_gitlab_default_icon
oidc, add default gitlab icon
This commit is contained in:
commit
efdd17fa9a
1
flutter/assets/auth-gitlab.svg
Normal file
1
flutter/assets/auth-gitlab.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg height="236" preserveAspectRatio="xMidYMid" viewBox="0 0 256 236" width="256" xmlns="http://www.w3.org/2000/svg"><path d="m128.07485 236.074667 47.104-144.9703622h-94.2080005z" fill="#e24329"/><path d="m128.07485 236.074423-47.1040005-144.970362h-66.0150857z" fill="#fc6d26"/><path d="m14.9558857 91.1044267-14.31405713 44.0551623c-1.3056 4.017981.12434286 8.419961 3.54255238 10.903161l123.89059005 90.012039z" fill="#fca326"/><path d="m14.9558857 91.1045486h66.0150857l-28.3708952-87.31428574c-1.4592-4.49340953-7.8153143-4.49219048-9.2745143 0z" fill="#e24329"/><path d="m128.07485 236.074423 47.104-144.970362h66.015085z" fill="#fc6d26"/><path d="m241.193935 91.1044267 14.314057 44.0551623c1.3056 4.017981-.124342 8.419961-3.542552 10.903161l-123.89059 90.012039z" fill="#fca326"/><path d="m241.193935 91.1045486h-66.015085l28.370895-87.31428574c1.4592-4.49340953 7.815314-4.49219048 9.274514 0z" fill="#e24329"/></svg>
|
After Width: | Height: | Size: 929 B |
@ -14,6 +14,7 @@ import './dialog.dart';
|
|||||||
|
|
||||||
const kOpSvgList = [
|
const kOpSvgList = [
|
||||||
'github',
|
'github',
|
||||||
|
'gitlab',
|
||||||
'google',
|
'google',
|
||||||
'apple',
|
'apple',
|
||||||
'okta',
|
'okta',
|
||||||
@ -72,6 +73,11 @@ class ButtonOP extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final opLabel = {
|
||||||
|
'github': 'GitHub',
|
||||||
|
'gitlab': 'GitLab'
|
||||||
|
}[op.toLowerCase()] ??
|
||||||
|
toCapitalized(op);
|
||||||
return Row(children: [
|
return Row(children: [
|
||||||
Container(
|
Container(
|
||||||
height: height,
|
height: height,
|
||||||
@ -97,8 +103,7 @@ class ButtonOP extends StatelessWidget {
|
|||||||
child: FittedBox(
|
child: FittedBox(
|
||||||
fit: BoxFit.scaleDown,
|
fit: BoxFit.scaleDown,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Text(
|
child: Text('${translate("Continue with")} $opLabel')),
|
||||||
'${translate("Continue with")} ${op.toLowerCase() == "github" ? "GitHub" : toCapitalized(op)}')),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user