Frontend first draft
This commit is contained in:
23
frontend/pweb/lib/widgets/password/hint/error.dart
Normal file
23
frontend/pweb/lib/widgets/password/hint/error.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:pweb/widgets/password/hint/widget.dart';
|
||||
|
||||
|
||||
class PasswordValidationErrorLabel extends StatelessWidget {
|
||||
final String labelText;
|
||||
const PasswordValidationErrorLabel({super.key, required this.labelText});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return PasswordValidationOutput(
|
||||
children: [
|
||||
Text(
|
||||
labelText,
|
||||
style: Theme.of(context).textTheme.bodySmall?.copyWith(
|
||||
color: Theme.of(context).colorScheme.error,
|
||||
)
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user