added german translation and store stuff for app

This commit is contained in:
Jan Pleterski
2026-11-13 10:56:11 +01:00
parent d4bc01f202
commit 30708c73b1
47 changed files with 530 additions and 160 deletions
+11 -9
View File
@@ -248,8 +248,7 @@ class _BookScreenState extends State<BookScreen> with WidgetsBindingObserver {
_load();
}
String get _locale =>
AppSettings.instance.language == 'Slovenian' ? 'sl_SI' : 'en_US';
String get _locale => AppSettings.instance.dateLocale;
@override
Widget build(BuildContext context) {
@@ -1058,7 +1057,7 @@ class _Toggle extends StatelessWidget {
}
/// One figure on a history card: small uppercase label over a bold number,
/// with an optional coloured note underneath.
/// with an optional coloured note underneath (its row is kept even when empty).
class _CardFigure extends StatelessWidget {
final String label;
final String value;
@@ -1087,13 +1086,16 @@ class _CardFigure extends StatelessWidget {
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.w800,
fontFeatures: const [FontFeature.tabularFigures()],
color: surf.textPrimary)),
if (note != null)
Text(note!,
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.w700,
color: noteColor)),
// The note row is always there (blank without a note), so label and
// number line up across figures whether or not they have a note.
Text(note ?? ' ',
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.w700,
fontFeatures: const [FontFeature.tabularFigures()],
color: noteColor)),
],
),
);