Skip to content
Open
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
649 changes: 649 additions & 0 deletions docs/ARCHITECTURE.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -3148,6 +3148,7 @@
"txFlagExcludeFromBudgetHint": "Doesn't count against your budget",
"txFlagExcludedTag": "Excluded",
"txFlagBudgetExcludedTag": "No budget",
"txContinueEntry": "Record another",
"txCurrencyLabel": "Currency",
"txRateLabel": "Rate",
"txConvertedPreview": "≈ {amount} {currency}",
Expand Down
3 changes: 2 additions & 1 deletion lib/l10n/app_ko.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2169,5 +2169,6 @@
"txFlagExcludeFromStatsHint": "통계에서는 제외되지만 잔액에는 계속 반영됩니다",
"txFlagExcludeFromBudgetHint": "예산에는 반영되지 않습니다",
"txFlagExcludedTag": "제외됨",
"txFlagBudgetExcludedTag": "예산 제외"
"txFlagBudgetExcludedTag": "예산 제외",
"txContinueEntry": "한 건 더 기록"
}
6 changes: 6 additions & 0 deletions lib/l10n/app_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13376,6 +13376,12 @@ abstract class AppLocalizations {
/// **'No budget'**
String get txFlagBudgetExcludedTag;

/// No description provided for @txContinueEntry.
///
/// In en, this message translates to:
/// **'Record another'**
String get txContinueEntry;

/// No description provided for @txCurrencyLabel.
///
/// In en, this message translates to:
Expand Down
3 changes: 3 additions & 0 deletions lib/l10n/app_localizations_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7063,6 +7063,9 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get txFlagBudgetExcludedTag => 'No budget';

@override
String get txContinueEntry => 'Record another';

@override
String get txCurrencyLabel => 'Currency';

Expand Down
3 changes: 3 additions & 0 deletions lib/l10n/app_localizations_ko.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7063,6 +7063,9 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get txFlagBudgetExcludedTag => '예산 제외';

@override
String get txContinueEntry => '한 건 더 기록';

@override
String get txCurrencyLabel => 'Currency';

Expand Down
6 changes: 6 additions & 0 deletions lib/l10n/app_localizations_zh.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7063,6 +7063,9 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get txFlagBudgetExcludedTag => '不计预算';

@override
String get txContinueEntry => '再记一笔';

@override
String get txCurrencyLabel => '币种';

Expand Down Expand Up @@ -14493,6 +14496,9 @@ class AppLocalizationsZhTw extends AppLocalizationsZh {
@override
String get txFlagBudgetExcludedTag => '不計預算';

@override
String get txContinueEntry => '再記一筆';

@override
String get txCurrencyLabel => '幣種';

Expand Down
1 change: 1 addition & 0 deletions lib/l10n/app_zh.arb
Original file line number Diff line number Diff line change
Expand Up @@ -3072,6 +3072,7 @@
"txFlagExcludeFromBudgetHint": "不占用预算额度",
"txFlagExcludedTag": "不计收支",
"txFlagBudgetExcludedTag": "不计预算",
"txContinueEntry": "再记一笔",
"txCurrencyLabel": "币种",
"txRateLabel": "汇率",
"txConvertedPreview": "≈ {amount} {currency}",
Expand Down
1 change: 1 addition & 0 deletions lib/l10n/app_zh_TW.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2784,6 +2784,7 @@
"txFlagExcludeFromBudgetHint": "不佔用預算額度",
"txFlagExcludedTag": "不計收支",
"txFlagBudgetExcludedTag": "不計預算",
"txContinueEntry": "再記一筆",
"txCurrencyLabel": "幣種",
"txRateLabel": "匯率",
"txConvertedPreview": "≈ {amount} {currency}",
Expand Down
8 changes: 6 additions & 2 deletions lib/pages/transaction/transaction_editor_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,12 @@ class _TransactionEditorPageState extends ConsumerState<TransactionEditorPage>
updateAppWidget(ref, context);
}
// 先关闭页面,再播放反馈
if (ctx.mounted && Navigator.of(ctx).canPop()) Navigator.of(ctx).pop();
if (context.mounted && Navigator.of(context).canPop()) Navigator.of(context).pop();
// 再记一笔(连续记账):res.continueEntry 为 true 时不关闭,弹窗由
// sheet 内部清空表单复用,编辑器留在分类选择页方便继续录入。
if (!res.continueEntry) {
if (ctx.mounted && Navigator.of(ctx).canPop()) Navigator.of(ctx).pop();
if (context.mounted && Navigator.of(context).canPop()) Navigator.of(context).pop();
}
// 反馈:轻微触感 + 系统点击音
HapticFeedback.lightImpact();
SystemSound.play(SystemSoundType.click);
Expand Down
Loading