Email Confirmation and refactor for snackbar
This commit is contained in:
39
frontend/pweb/lib/pages/signup/confirmation/card/badge.dart
Normal file
39
frontend/pweb/lib/pages/signup/confirmation/card/badge.dart
Normal file
@@ -0,0 +1,39 @@
|
||||
part of 'card.dart';
|
||||
|
||||
|
||||
class _SignupConfirmationEmailBadge extends StatelessWidget {
|
||||
final String email;
|
||||
|
||||
const _SignupConfirmationEmailBadge({required this.email});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final theme = Theme.of(context);
|
||||
final colorScheme = theme.colorScheme;
|
||||
|
||||
return Container(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 10),
|
||||
decoration: BoxDecoration(
|
||||
color: colorScheme.surfaceContainerHighest.withValues(alpha: 0.6),
|
||||
borderRadius: BorderRadius.circular(12),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Icon(
|
||||
Icons.alternate_email,
|
||||
size: 18,
|
||||
color: colorScheme.primary,
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
SelectableText(
|
||||
email,
|
||||
style: theme.textTheme.bodyMedium?.copyWith(
|
||||
fontWeight: FontWeight.w600,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user