chore: bump app version to 1.0.2

This commit is contained in:
2026-06-12 01:30:54 +08:00
parent eb8b209c0c
commit 33e96072c9
5 changed files with 28 additions and 43 deletions
+1 -1
View File
@@ -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,
+16 -21
View File
@@ -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<AppLocalizations>(context, AppLocalizations)!;
}
static const LocalizationsDelegate<AppLocalizations> delegate =
_AppLocalizationsDelegate();
static const LocalizationsDelegate<AppLocalizations> 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<LocalizationsDelegate<dynamic>> localizationsDelegates =
<LocalizationsDelegate<dynamic>>[
delegate,
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
];
static const List<LocalizationsDelegate<dynamic>> localizationsDelegates = <LocalizationsDelegate<dynamic>>[
delegate,
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
];
/// A list of this localizations delegate's supported locales.
static const List<Locale> supportedLocales = <Locale>[
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<AppLocalizations> {
class _AppLocalizationsDelegate extends LocalizationsDelegate<AppLocalizations> {
const _AppLocalizationsDelegate();
@override
@@ -1033,26 +1029,25 @@ class _AppLocalizationsDelegate
}
@override
bool isSupported(Locale locale) =>
<String>['en', 'zh'].contains(locale.languageCode);
bool isSupported(Locale locale) => <String>['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.'
);
}
@@ -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';
@@ -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 => '你可以随时清理今日进度,或删除本机的全部本地数据。';