Skip to content

Commit 3fedb86

Browse files
committed
feat(authentication): implement static content using localization
- Remove hardcoded headline and subheadline strings - Replace static strings with localization (l10n) values - Update UI to use localized strings for better internationalization support
1 parent 3488a31 commit 3fedb86

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

lib/authentication/view/authentication_page.dart

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ class AuthenticationPage extends StatelessWidget {
2424
final textTheme = Theme.of(context).textTheme;
2525
final colorScheme = Theme.of(context).colorScheme;
2626

27-
// Static content for the main authentication page.
28-
const String headline = 'Welcome to the News App';
29-
const String subHeadline =
30-
'Sign in or create an account to get personalized news.';
31-
3227
return Scaffold(
3328
appBar: AppBar(backgroundColor: Colors.transparent, elevation: 0),
3429
body: SafeArea(
@@ -68,15 +63,15 @@ class AuthenticationPage extends StatelessWidget {
6863
// const SizedBox(height: AppSpacing.lg),
6964
// --- Headline and Subheadline ---
7065
Text(
71-
headline,
66+
l10n.authenticationSignInHeadline,
7267
style: textTheme.headlineMedium?.copyWith(
7368
fontWeight: FontWeight.bold,
7469
),
7570
textAlign: TextAlign.center,
7671
),
7772
const SizedBox(height: AppSpacing.md),
7873
Text(
79-
subHeadline,
74+
l10n.authenticationSignInSubheadline,
8075
style: textTheme.bodyLarge?.copyWith(
8176
color: colorScheme.onSurfaceVariant,
8277
),

0 commit comments

Comments
 (0)