1
0
forked from baron/baron-sso

style(userfront): format dart files to fix ci pipeline

This commit is contained in:
2026-04-10 16:00:37 +09:00
parent a96ef3d204
commit f33f023b90
2 changed files with 9 additions and 13 deletions

View File

@@ -1072,7 +1072,8 @@ class AuthProxyService {
} }
} catch (e) { } catch (e) {
// Fallback if the body isn't valid JSON (e.g., an HTML error page) // Fallback if the body isn't valid JSON (e.g., an HTML error page)
errorMessage = 'Server error (${response.statusCode}): ${response.body.isNotEmpty ? response.body.substring(0, response.body.length > 100 ? 100 : response.body.length) : "Unknown error"}'; errorMessage =
'Server error (${response.statusCode}): ${response.body.isNotEmpty ? response.body.substring(0, response.body.length > 100 ? 100 : response.body.length) : "Unknown error"}';
} }
throw Exception(errorMessage); throw Exception(errorMessage);
} }

View File

@@ -1469,15 +1469,11 @@ class _SignupScreenState extends State<SignupScreen> {
items: [ items: [
DropdownMenuItem( DropdownMenuItem(
value: 'GENERAL', value: 'GENERAL',
child: Text( child: Text(tr('domain.affiliation.general')),
tr('domain.affiliation.general'),
),
), ),
DropdownMenuItem( DropdownMenuItem(
value: 'AFFILIATE', value: 'AFFILIATE',
child: Text( child: Text(tr('domain.affiliation.affiliate')),
tr('domain.affiliation.affiliate'),
),
), ),
], ],
onChanged: _isAffiliateLocked onChanged: _isAffiliateLocked
@@ -1517,9 +1513,8 @@ class _SignupScreenState extends State<SignupScreen> {
child: Text(t['name'] ?? t['slug']), child: Text(t['name'] ?? t['slug']),
); );
}).toList(), }).toList(),
onChanged: (val) => setState( onChanged: (val) =>
() => _companyCode = val, setState(() => _companyCode = val),
),
), ),
], ],
], ],