@@ -10,28 +10,14 @@ import 'package:ht_dashboard/router/routes.dart';
10
10
import 'package:ht_dashboard/shared/constants/app_spacing.dart' ;
11
11
12
12
/// {@template authentication_page}
13
- /// Displays authentication options (Google, Email, Anonymous) based on context .
13
+ /// Displays authentication options for the dashboard .
14
14
///
15
- /// This page can be used for both initial sign-in and for connecting an
16
- /// existing anonymous account .
15
+ /// This page provides a secure sign-in method for administrators and
16
+ /// publishers via email .
17
17
/// {@endtemplate}
18
18
class AuthenticationPage extends StatelessWidget {
19
19
/// {@macro authentication_page}
20
- const AuthenticationPage ({
21
- required this .headline,
22
- required this .subHeadline,
23
- required this .showAnonymousButton,
24
- super .key,
25
- });
26
-
27
- /// The main title displayed on the page.
28
- final String headline;
29
-
30
- /// The descriptive text displayed below the headline.
31
- final String subHeadline;
32
-
33
- /// Whether to show the "Continue Anonymously" button.
34
- final bool showAnonymousButton;
20
+ const AuthenticationPage ({super .key});
35
21
36
22
@override
37
23
Widget build (BuildContext context) {
@@ -88,15 +74,15 @@ class AuthenticationPage extends StatelessWidget {
88
74
// const SizedBox(height: AppSpacing.lg),
89
75
// --- Headline and Subheadline ---
90
76
Text (
91
- headline ,
77
+ l10n.authenticationPageHeadline ,
92
78
style: textTheme.headlineMedium? .copyWith (
93
79
fontWeight: FontWeight .bold,
94
80
),
95
81
textAlign: TextAlign .center,
96
82
),
97
83
const SizedBox (height: AppSpacing .md),
98
84
Text (
99
- subHeadline ,
85
+ l10n.authenticationPageSubheadline ,
100
86
style: textTheme.bodyLarge? .copyWith (
101
87
color: colorScheme.onSurfaceVariant,
102
88
),
0 commit comments