skip to Main Content

Flutter – Add validation to date TextFormField

I faced with the problem of validating text fields. Here you need to enter the date in the format dd.mm.yyyy. I also use flutter_multi_formatter package for this form. import 'package:flutter/material.dart'; import 'package:flutter_multi_formatter/formatters/masked_input_formatter.dart'; void main() => runApp(const MyApp()); class MyApp extends…

VIEW QUESTION

Php – Symfony 6 Validation Constraints: How to assert that a string has exact length 4

Here is my simplified class of my DTO which is filled by the Serializer: <?php namespace AppApiDto; use OpenApiAttributes as OA; use SymfonyComponentSerializerAnnotationGroups as SerializerGroups; use SymfonyComponentValidatorConstraints as Assert; #[OASchema()] readonly class WorkHour implements DtoInterface { public function __construct( #[OAProperty(description:…

VIEW QUESTION
Back To Top
Search