@@ -22,6 +22,7 @@ class AuthenticationPage extends StatelessWidget {
22
22
required this .subHeadline,
23
23
required this .showAnonymousButton,
24
24
required this .isLinkingContext, // Add this parameter
25
+ // this.iconData, // REMOVE optional icon data
25
26
super .key,
26
27
});
27
28
@@ -37,6 +38,9 @@ class AuthenticationPage extends StatelessWidget {
37
38
/// Whether this page is being shown in the account linking context.
38
39
final bool isLinkingContext; // Add this field
39
40
41
+ /// Optional icon to display at the top of the page.
42
+ // final IconData? iconData; // REMOVE this field
43
+
40
44
@override
41
45
Widget build (BuildContext context) {
42
46
// Provide the BLoC here if it's not already provided higher up
@@ -54,6 +58,7 @@ class AuthenticationPage extends StatelessWidget {
54
58
subHeadline: subHeadline,
55
59
showAnonymousButton: showAnonymousButton,
56
60
isLinkingContext: isLinkingContext, // Pass down the flag
61
+ // iconData: iconData, // REMOVE passing down icon data
57
62
),
58
63
);
59
64
}
@@ -66,12 +71,14 @@ class _AuthenticationView extends StatelessWidget {
66
71
required this .subHeadline,
67
72
required this .showAnonymousButton,
68
73
required this .isLinkingContext, // Add this parameter
74
+ // this.iconData, // REMOVE optional icon data
69
75
});
70
76
71
77
final String headline;
72
78
final String subHeadline;
73
79
final bool showAnonymousButton;
74
80
final bool isLinkingContext; // Add this field
81
+ // final IconData? iconData; // REMOVE this field
75
82
76
83
@override
77
84
Widget build (BuildContext context) {
@@ -131,6 +138,23 @@ class _AuthenticationView extends StatelessWidget {
131
138
MainAxisAlignment .center, // Center vertically
132
139
crossAxisAlignment: CrossAxisAlignment .stretch,
133
140
children: [
141
+ // --- Hardcoded Icon ---
142
+ // REMOVE if check: if (iconData != null) ...[
143
+ Padding (
144
+ padding: const EdgeInsets .only (
145
+ bottom: AppSpacing .xl,
146
+ ), // Spacing below icon
147
+ child: Icon (
148
+ Icons .security, // Hardcode the icon
149
+ size: (Theme .of (context).iconTheme.size ?? AppSpacing .xl) *
150
+ 3.0 , // Use ?? with AppSpacing constant
151
+ color: Theme .of (context)
152
+ .colorScheme
153
+ .primary, // Use theme color
154
+ ),
155
+ ),
156
+ const SizedBox (height: AppSpacing .lg), // Space between icon and headline
157
+ // REMOVE closing bracket for if: ],
134
158
// --- Headline and Subheadline ---
135
159
Text (
136
160
headline,
0 commit comments