Skip to content

Commit d839252

Browse files
committed
refactor(authentication): remove demo email suggestion comment
- Commented out the entire demo email suggestion section in the request code page - Added a comment explaining that any email is accepted in demo mode
1 parent a8da82e commit d839252

File tree

1 file changed

+27
-24
lines changed

1 file changed

+27
-24
lines changed

lib/authentication/view/request_code_page.dart

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -132,30 +132,33 @@ class _RequestCodeView extends StatelessWidget {
132132
),
133133
textAlign: TextAlign.center,
134134
),
135-
// Display demo email suggestion if in demo environment
136-
BlocSelector<AppBloc, AppState, AppEnvironment?>(
137-
selector: (state) => state.environment,
138-
builder: (context, environment) {
139-
if (environment == AppEnvironment.demo) {
140-
return Column(
141-
children: [
142-
const SizedBox(height: AppSpacing.md),
143-
Text(
144-
l10n.demoEmailSuggestionMessage(
145-
'admin@mail.com',
146-
),
147-
style: textTheme.bodyMedium?.copyWith(
148-
color: colorScheme.secondary,
149-
fontWeight: FontWeight.bold,
150-
),
151-
textAlign: TextAlign.center,
152-
),
153-
],
154-
);
155-
}
156-
return const SizedBox.shrink();
157-
},
158-
),
135+
136+
// NOT NEEDED; any email is accepted in demo mode
137+
//
138+
//Display demo email suggestion if in demo environment
139+
// BlocSelector<AppBloc, AppState, AppEnvironment?>(
140+
// selector: (state) => state.environment,
141+
// builder: (context, environment) {
142+
// if (environment == AppEnvironment.demo) {
143+
// return Column(
144+
// children: [
145+
// const SizedBox(height: AppSpacing.md),
146+
// Text(
147+
// l10n.demoEmailSuggestionMessage(
148+
// 'admin@mail.com',
149+
// ),
150+
// style: textTheme.bodyMedium?.copyWith(
151+
// color: colorScheme.secondary,
152+
// fontWeight: FontWeight.bold,
153+
// ),
154+
// textAlign: TextAlign.center,
155+
// ),
156+
// ],
157+
// );
158+
// }
159+
// return const SizedBox.shrink();
160+
// },
161+
// ),
159162
const SizedBox(height: AppSpacing.xxl),
160163
_EmailLinkForm(isLoading: isLoading),
161164
],

0 commit comments

Comments
 (0)