Frontend first draft
This commit is contained in:
18
frontend/pweb/lib/widgets/password/hint/full.dart
Normal file
18
frontend/pweb/lib/widgets/password/hint/full.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:fancy_password_field/fancy_password_field.dart';
|
||||
|
||||
import 'package:pweb/widgets/password/hint/validation_result.dart';
|
||||
import 'package:pweb/widgets/password/hint/widget.dart';
|
||||
|
||||
|
||||
Widget expandedValidation(BuildContext context, Set<ValidationRule> rules, String value) {
|
||||
return PasswordValidationOutput(
|
||||
children: rules.map(
|
||||
(rule) => PasswordValidationResult(
|
||||
ruleName: rule.name,
|
||||
result: rule.validate(value),
|
||||
),
|
||||
).toList()
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user