form_animate_wrap 0.0.1 form_animate_wrap: ^0.0.1 copied to clipboard
A new Flutter package
Animated wrappers which can used to wrap around TextFormField to get some nice interactions
Installation #
In the pubspec.yaml
of your flutter project, add the following dependency:
form_animate_wrap: ^0.0.1
Import it to each file you use it in:
import 'package:form_animate_wrap/form_animate_wrap.dart';
Usage #
Anime Validators #
This wrapper is used to wrap around TextFormField if you need a animation to the TextFormField on event such as validation error.
TextEditingController firstNameController = TextEditingController();
AnimeValidator(
enableAnimation: getValidity(firstNameController),
child: CustomTextFormField(
controller: firstNameController,
hintTextVal: "First Name",
)),