Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@ example/pubspec.lock
build/
.flutter-plugins
.flutter-plugins-dependencies
test/failures
test/failures
.vscode/settings.json
**/GeneratedPluginRegistrant.swift
**/generated_plugin_registrant.cc
**/generated_plugin_registrant.h
**/generated_plugins.cmake
5 changes: 5 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ migrate_working_dir/
.pub-cache/
.pub/
/build/
.vscode/settings.json
**/GeneratedPluginRegistrant.swift
**/generated_plugin_registrant.cc
**/generated_plugin_registrant.h
**/generated_plugins.cmake

# Symbolication related
app.*.symbols
Expand Down
16 changes: 0 additions & 16 deletions example/macos/Flutter/GeneratedPluginRegistrant.swift

This file was deleted.

23 changes: 11 additions & 12 deletions lib/src/ui/l10n/sec_locale.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ import 'sec_locale_en.dart';
/// property.
abstract class SecLocalizations {
SecLocalizations(String locale)
: localeName = intl.Intl.canonicalizedLocale(locale.toString());
: localeName = intl.Intl.canonicalizedLocale(locale.toString());

final String localeName;

Expand All @@ -86,16 +86,16 @@ abstract class SecLocalizations {
/// of delegates is preferred or required.
static const List<LocalizationsDelegate<dynamic>> localizationsDelegates =
<LocalizationsDelegate<dynamic>>[
delegate,
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
];
delegate,
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
];

/// A list of this localizations delegate's supported locales.
static const List<Locale> supportedLocales = <Locale>[
Locale('de'),
Locale('en'),
Locale('en')
];

/// No description provided for @successfullyVerified.
Expand Down Expand Up @@ -258,9 +258,8 @@ SecLocalizations lookupSecLocalizations(Locale locale) {
}

throw FlutterError(
'SecLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
'an issue with the localizations generation tool. Please file an issue '
'on GitHub with a reproducible sample app and the gen-l10n configuration '
'that was used.',
);
'SecLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
'an issue with the localizations generation tool. Please file an issue '
'on GitHub with a reproducible sample app and the gen-l10n configuration '
'that was used.');
}