custom_text_form_field_plus 0.0.1 copy "custom_text_form_field_plus: ^0.0.1" to clipboard
custom_text_form_field_plus: ^0.0.1 copied to clipboard

Custom Text Form Field Plus - A Customizable Text Input Widget with Validation for Flutter

example/lib/main.dart

import 'package:custom_text_form_field_plus/custom_text_form_field_plus.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Custom Text Form Field'),
        ),
        body: Column(
          children: [
            CustomTextFormField(
              labelText: 'Name',
              hintText: 'Enter Name',
              validator: (String? value) => Validations.emptyValidation(value),
              autoValidateMode: AutovalidateMode.onUserInteraction,
            ),
            CustomTextFormField(
              labelText: 'Email',
              hintText: 'Enter Email',
              validator: (String? value) => Validations.emailValidation(value),
              autoValidateMode: AutovalidateMode.onUserInteraction,
            ),
            CustomTextFormField(
              labelText: 'Phone Number',
              hintText: 'Enter Mobile Number',
              validator: (String? value) => Validations.contactNumberValidation(value),
              autoValidateMode: AutovalidateMode.onUserInteraction,
            ),
          ],
        ),
    ));
  }
}
17
likes
0
points
46
downloads

Publisher

verified publisherdhartichauhan.blogspot.com

Weekly Downloads

Custom Text Form Field Plus - A Customizable Text Input Widget with Validation for Flutter

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on custom_text_form_field_plus