diff --git a/lib/src/features/me/me_screen.dart b/lib/src/features/me/me_screen.dart index f062487..5510f40 100644 --- a/lib/src/features/me/me_screen.dart +++ b/lib/src/features/me/me_screen.dart @@ -168,7 +168,7 @@ class MeScreen extends StatelessWidget { ), const SizedBox(height: 18), Text( - 'Focus Seed 1.0.1', + 'Focus Seed 1.0.2', textAlign: TextAlign.center, style: Theme.of(context).textTheme.bodySmall?.copyWith( color: Theme.of(context).colorScheme.onSurfaceVariant, diff --git a/lib/src/l10n/generated/app_localizations.dart b/lib/src/l10n/generated/app_localizations.dart index 60b7288..b47a8aa 100644 --- a/lib/src/l10n/generated/app_localizations.dart +++ b/lib/src/l10n/generated/app_localizations.dart @@ -62,8 +62,7 @@ import 'app_localizations_zh.dart'; /// be consistent with the languages listed in the AppLocalizations.supportedLocales /// property. abstract class AppLocalizations { - AppLocalizations(String locale) - : localeName = intl.Intl.canonicalizedLocale(locale.toString()); + AppLocalizations(String locale) : localeName = intl.Intl.canonicalizedLocale(locale.toString()); final String localeName; @@ -71,8 +70,7 @@ abstract class AppLocalizations { return Localizations.of(context, AppLocalizations)!; } - static const LocalizationsDelegate delegate = - _AppLocalizationsDelegate(); + static const LocalizationsDelegate delegate = _AppLocalizationsDelegate(); /// A list of this localizations delegate along with the default localizations /// delegates. @@ -84,18 +82,17 @@ abstract class AppLocalizations { /// Additional delegates can be added by appending to this list in /// MaterialApp. This list does not have to be used at all if a custom list /// of delegates is preferred or required. - static const List> localizationsDelegates = - >[ - delegate, - GlobalMaterialLocalizations.delegate, - GlobalCupertinoLocalizations.delegate, - GlobalWidgetsLocalizations.delegate, - ]; + static const List> localizationsDelegates = >[ + delegate, + GlobalMaterialLocalizations.delegate, + GlobalCupertinoLocalizations.delegate, + GlobalWidgetsLocalizations.delegate, + ]; /// A list of this localizations delegate's supported locales. static const List supportedLocales = [ Locale('en'), - Locale('zh'), + Locale('zh') ]; /// No description provided for @appTitle. @@ -1023,8 +1020,7 @@ abstract class AppLocalizations { String get defaultHabitReflect; } -class _AppLocalizationsDelegate - extends LocalizationsDelegate { +class _AppLocalizationsDelegate extends LocalizationsDelegate { const _AppLocalizationsDelegate(); @override @@ -1033,26 +1029,25 @@ class _AppLocalizationsDelegate } @override - bool isSupported(Locale locale) => - ['en', 'zh'].contains(locale.languageCode); + bool isSupported(Locale locale) => ['en', 'zh'].contains(locale.languageCode); @override bool shouldReload(_AppLocalizationsDelegate old) => false; } AppLocalizations lookupAppLocalizations(Locale locale) { + + // Lookup logic when only language code is specified. switch (locale.languageCode) { - case 'en': - return AppLocalizationsEn(); - case 'zh': - return AppLocalizationsZh(); + case 'en': return AppLocalizationsEn(); + case 'zh': return AppLocalizationsZh(); } throw FlutterError( 'AppLocalizations.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.', + 'that was used.' ); } diff --git a/lib/src/l10n/generated/app_localizations_en.dart b/lib/src/l10n/generated/app_localizations_en.dart index 6cbfc6f..286f571 100644 --- a/lib/src/l10n/generated/app_localizations_en.dart +++ b/lib/src/l10n/generated/app_localizations_en.dart @@ -216,8 +216,7 @@ class AppLocalizationsEn extends AppLocalizations { String get deleteHabitTitle => 'Delete habit?'; @override - String get deleteHabitBody => - 'Past completion records for this habit will be removed.'; + String get deleteHabitBody => 'Past completion records for this habit will be removed.'; @override String get close => 'Close'; @@ -229,15 +228,13 @@ class AppLocalizationsEn extends AppLocalizations { String get clearTodayDataTitle => 'Clear today?'; @override - String get clearTodayDataBody => - 'This removes today\'s intention, habit checks, focus sessions, and reflection. Past days stay untouched.'; + String get clearTodayDataBody => 'This removes today\'s intention, habit checks, focus sessions, and reflection. Past days stay untouched.'; @override String get clearAllDataTitle => 'Delete all local data?'; @override - String get clearAllDataBody => - 'This deletes intentions, habits, focus sessions, and reflections on this device. It cannot be undone.'; + String get clearAllDataBody => 'This deletes intentions, habits, focus sessions, and reflections on this device. It cannot be undone.'; @override String get clear => 'Clear'; @@ -249,12 +246,10 @@ class AppLocalizationsEn extends AppLocalizations { String get privacyTitle => 'Privacy'; @override - String get privacyBodyOne => - 'Focus Seed stores your intention, habits, focus sessions, reflections, and settings locally on this device. This version has no sign-in, cloud sync, ads, analytics SDK, or billing SDK.'; + String get privacyBodyOne => 'Focus Seed stores your intention, habits, focus sessions, reflections, and settings locally on this device. This version has no sign-in, cloud sync, ads, analytics SDK, or billing SDK.'; @override - String get privacyBodyTwo => - 'You can clear today\'s progress or delete all local data from Me at any time.'; + String get privacyBodyTwo => 'You can clear today\'s progress or delete all local data from Me at any time.'; @override String get reflectionEmptyError => 'Write one honest sentence.'; @@ -402,15 +397,13 @@ class AppLocalizationsEn extends AppLocalizations { String get emptyFocusHistoryTitle => 'No focus sessions yet'; @override - String get emptyFocusHistoryBody => - 'Start one session from Today and it will appear here.'; + String get emptyFocusHistoryBody => 'Start one session from Today and it will appear here.'; @override String get emptyNotesHistoryTitle => 'No notes yet'; @override - String get emptyNotesHistoryBody => - 'Save a short reflection after focus to make your progress visible.'; + String get emptyNotesHistoryBody => 'Save a short reflection after focus to make your progress visible.'; @override String get recentFocus => 'Recent focus'; @@ -463,8 +456,7 @@ class AppLocalizationsEn extends AppLocalizations { String get sevenDayGrowth => '7-day growth'; @override - String get sevenDayGrowthSubtitle => - 'Small actions become visible over time.'; + String get sevenDayGrowthSubtitle => 'Small actions become visible over time.'; @override String get growthSeed => 'seed'; @@ -490,8 +482,7 @@ class AppLocalizationsEn extends AppLocalizations { String get growthSproutSemantic => 'A sprout growing from today\'s intention'; @override - String get growthLeavesSemantic => - 'A young plant growing with today\'s progress'; + String get growthLeavesSemantic => 'A young plant growing with today\'s progress'; @override String get growthFlowerSemantic => 'A flower marking a complete daily cycle'; diff --git a/lib/src/l10n/generated/app_localizations_zh.dart b/lib/src/l10n/generated/app_localizations_zh.dart index 4bc73bd..1d0fbb6 100644 --- a/lib/src/l10n/generated/app_localizations_zh.dart +++ b/lib/src/l10n/generated/app_localizations_zh.dart @@ -246,8 +246,7 @@ class AppLocalizationsZh extends AppLocalizations { String get privacyTitle => '隐私'; @override - String get privacyBodyOne => - 'Focus Seed 只在本机保存目标、习惯、专注记录、复盘和设置。当前版本没有登录、云同步、广告、分析 SDK 或付费 SDK。'; + String get privacyBodyOne => 'Focus Seed 只在本机保存目标、习惯、专注记录、复盘和设置。当前版本没有登录、云同步、广告、分析 SDK 或付费 SDK。'; @override String get privacyBodyTwo => '你可以随时清理今日进度,或删除本机的全部本地数据。'; diff --git a/pubspec.yaml b/pubspec.yaml index 975a1a5..5f5e8d7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.1+2 +version: 1.0.2+3 environment: sdk: ^3.7.2