Skip to content

Commit 165889e

Browse files
committed
fix: reformat [#286]
1 parent b04c464 commit 165889e

File tree

2 files changed

+49
-32
lines changed

2 files changed

+49
-32
lines changed

packages/clerk_flutter/lib/generated/clerk_sdk_localizations.dart

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,18 @@ import 'clerk_sdk_localizations_en.dart';
6262
/// be consistent with the languages listed in the ClerkSdkLocalizations.supportedLocales
6363
/// property.
6464
abstract class ClerkSdkLocalizations {
65-
ClerkSdkLocalizations(String locale) : localeName = intl.Intl.canonicalizedLocale(locale.toString());
65+
ClerkSdkLocalizations(String locale)
66+
: localeName = intl.Intl.canonicalizedLocale(locale.toString());
6667

6768
final String localeName;
6869

6970
static ClerkSdkLocalizations? of(BuildContext context) {
70-
return Localizations.of<ClerkSdkLocalizations>(context, ClerkSdkLocalizations);
71+
return Localizations.of<ClerkSdkLocalizations>(
72+
context, ClerkSdkLocalizations);
7173
}
7274

73-
static const LocalizationsDelegate<ClerkSdkLocalizations> delegate = _ClerkSdkLocalizationsDelegate();
75+
static const LocalizationsDelegate<ClerkSdkLocalizations> delegate =
76+
_ClerkSdkLocalizationsDelegate();
7477

7578
/// A list of this localizations delegate along with the default localizations
7679
/// delegates.
@@ -82,17 +85,16 @@ abstract class ClerkSdkLocalizations {
8285
/// Additional delegates can be added by appending to this list in
8386
/// MaterialApp. This list does not have to be used at all if a custom list
8487
/// of delegates is preferred or required.
85-
static const List<LocalizationsDelegate<dynamic>> localizationsDelegates = <LocalizationsDelegate<dynamic>>[
88+
static const List<LocalizationsDelegate<dynamic>> localizationsDelegates =
89+
<LocalizationsDelegate<dynamic>>[
8690
delegate,
8791
GlobalMaterialLocalizations.delegate,
8892
GlobalCupertinoLocalizations.delegate,
8993
GlobalWidgetsLocalizations.delegate,
9094
];
9195

9296
/// A list of this localizations delegate's supported locales.
93-
static const List<Locale> supportedLocales = <Locale>[
94-
Locale('en')
95-
];
97+
static const List<Locale> supportedLocales = <Locale>[Locale('en')];
9698

9799
/// No description provided for @aLengthOfBetweenMINAndMAX.
98100
///
@@ -923,33 +925,34 @@ abstract class ClerkSdkLocalizations {
923925
String get welcomePleaseFillInTheDetailsToGetStarted;
924926
}
925927

926-
class _ClerkSdkLocalizationsDelegate extends LocalizationsDelegate<ClerkSdkLocalizations> {
928+
class _ClerkSdkLocalizationsDelegate
929+
extends LocalizationsDelegate<ClerkSdkLocalizations> {
927930
const _ClerkSdkLocalizationsDelegate();
928931

929932
@override
930933
Future<ClerkSdkLocalizations> load(Locale locale) {
931-
return SynchronousFuture<ClerkSdkLocalizations>(lookupClerkSdkLocalizations(locale));
934+
return SynchronousFuture<ClerkSdkLocalizations>(
935+
lookupClerkSdkLocalizations(locale));
932936
}
933937

934938
@override
935-
bool isSupported(Locale locale) => <String>['en'].contains(locale.languageCode);
939+
bool isSupported(Locale locale) =>
940+
<String>['en'].contains(locale.languageCode);
936941

937942
@override
938943
bool shouldReload(_ClerkSdkLocalizationsDelegate old) => false;
939944
}
940945

941946
ClerkSdkLocalizations lookupClerkSdkLocalizations(Locale locale) {
942-
943-
944947
// Lookup logic when only language code is specified.
945948
switch (locale.languageCode) {
946-
case 'en': return ClerkSdkLocalizationsEn();
949+
case 'en':
950+
return ClerkSdkLocalizationsEn();
947951
}
948952

949953
throw FlutterError(
950-
'ClerkSdkLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
951-
'an issue with the localizations generation tool. Please file an issue '
952-
'on GitHub with a reproducible sample app and the gen-l10n configuration '
953-
'that was used.'
954-
);
954+
'ClerkSdkLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
955+
'an issue with the localizations generation tool. Please file an issue '
956+
'on GitHub with a reproducible sample app and the gen-l10n configuration '
957+
'that was used.');
955958
}

packages/clerk_flutter/lib/generated/clerk_sdk_localizations_en.dart

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ class ClerkSdkLocalizationsEn extends ClerkSdkLocalizations {
3333
String get abandoned => 'abandoned';
3434

3535
@override
36-
String get acceptTerms => 'I agree to the Terms of Service and Privacy Policy';
36+
String get acceptTerms =>
37+
'I agree to the Terms of Service and Privacy Policy';
3738

3839
@override
39-
String get actionNotTimely => 'Awaited user action not completed in required timeframe';
40+
String get actionNotTimely =>
41+
'Awaited user action not completed in required timeframe';
4042

4143
@override
4244
String get active => 'active';
@@ -142,7 +144,8 @@ class ClerkSdkLocalizationsEn extends ClerkSdkLocalizations {
142144
String get enterTheCodeSentToYou => 'Enter the code sent to you';
143145

144146
@override
145-
String get enterYourOrganizationDetailsToContinue => 'Enter your organization details to continue';
147+
String get enterYourOrganizationDetailsToContinue =>
148+
'Enter your organization details to continue';
146149

147150
@override
148151
String get expired => 'expired';
@@ -279,13 +282,15 @@ class ClerkSdkLocalizationsEn extends ClerkSdkLocalizations {
279282
String get password => 'Password';
280283

281284
@override
282-
String get passwordAndPasswordConfirmationMustMatch => 'Password and password confirmation must match';
285+
String get passwordAndPasswordConfirmationMustMatch =>
286+
'Password and password confirmation must match';
283287

284288
@override
285289
String get passwordConfirmation => 'confirm password';
286290

287291
@override
288-
String get passwordMatchError => 'Password and password confirmation must match';
292+
String get passwordMatchError =>
293+
'Password and password confirmation must match';
289294

290295
@override
291296
String get passwordMustBeSupplied => 'A password must be supplied';
@@ -306,10 +311,12 @@ class ClerkSdkLocalizationsEn extends ClerkSdkLocalizations {
306311
String get phoneNumberConcise => 'phone';
307312

308313
@override
309-
String get pleaseAddRequiredInformation => 'Something seems to be missing. Please add the required information';
314+
String get pleaseAddRequiredInformation =>
315+
'Something seems to be missing. Please add the required information';
310316

311317
@override
312-
String get pleaseChooseAnAccountToConnect => 'Please choose an account to connect';
318+
String get pleaseChooseAnAccountToConnect =>
319+
'Please choose an account to connect';
313320

314321
@override
315322
String get pleaseEnterYourIdentifier => 'Please enter your identifier';
@@ -339,13 +346,15 @@ class ClerkSdkLocalizationsEn extends ClerkSdkLocalizations {
339346
String get resend => 'Resend';
340347

341348
@override
342-
String get resetFailed => 'That password reset attempt failed. A new code has been sent.';
349+
String get resetFailed =>
350+
'That password reset attempt failed. A new code has been sent.';
343351

344352
@override
345353
String get resetPassword => 'Reset password and sign in';
346354

347355
@override
348-
String get selectAccount => 'Select the account with which you wish to continue';
356+
String get selectAccount =>
357+
'Select the account with which you wish to continue';
349358

350359
@override
351360
String get sendMeTheCode => 'Send me the reset code';
@@ -357,13 +366,16 @@ class ClerkSdkLocalizationsEn extends ClerkSdkLocalizations {
357366
String get signIn => 'Sign in';
358367

359368
@override
360-
String get signInByClickingALinkSentToYouByEmail => 'Sign in by clicking a link sent to you by email';
369+
String get signInByClickingALinkSentToYouByEmail =>
370+
'Sign in by clicking a link sent to you by email';
361371

362372
@override
363-
String get signInByEnteringACodeSentToYouByEmail => 'Sign in by entering a code sent to you by email';
373+
String get signInByEnteringACodeSentToYouByEmail =>
374+
'Sign in by entering a code sent to you by email';
364375

365376
@override
366-
String get signInByEnteringACodeSentToYouByTextMessage => 'Sign in by entering a code sent to you by text message';
377+
String get signInByEnteringACodeSentToYouByTextMessage =>
378+
'Sign in by entering a code sent to you by text message';
367379

368380
@override
369381
String signInError(String arg) {
@@ -459,8 +471,10 @@ class ClerkSdkLocalizationsEn extends ClerkSdkLocalizations {
459471
String get web3Wallet => 'web3 wallet';
460472

461473
@override
462-
String get welcomeBackPleaseSignInToContinue => 'Welcome back! Please sign in to continue';
474+
String get welcomeBackPleaseSignInToContinue =>
475+
'Welcome back! Please sign in to continue';
463476

464477
@override
465-
String get welcomePleaseFillInTheDetailsToGetStarted => 'Welcome! Please fill in the details to get started';
478+
String get welcomePleaseFillInTheDetailsToGetStarted =>
479+
'Welcome! Please fill in the details to get started';
466480
}

0 commit comments

Comments
 (0)