chore: migrate mobile translations accessor (5) (#30672)

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong 2026-08-11 14:41:13 +05:30 committed by GitHub
parent a8b3b30aba
commit 675408b003
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 268 additions and 372 deletions

View file

@ -1,7 +1,6 @@
import 'dart:async';
import 'dart:math' as math;
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:immich_mobile/domain/models/feature_message.model.dart';
@ -263,12 +262,12 @@ class _FeaturePage extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
children: [
Text(
highlight.titleKey.tr(),
highlight.title(context.t),
style: context.textTheme.titleLarge?.copyWith(fontWeight: FontWeight.w700, fontSize: 24),
),
const SizedBox(height: 8),
Text(
highlight.bodyKey.tr(),
highlight.body(context.t),
style: context.textTheme.bodyLarge?.copyWith(color: scheme.onSurfaceVariant, height: 1.4),
),
],