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

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

example/lib/main.dart

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

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

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        backgroundColor: Colors.grey.shade300,
        appBar: AppBar(
          title: const Text('Custom TextFormField Example'),
          centerTitle: true,
        ),
        body: Column(
          children: [
            CustomTextFormField(
              labelText: 'Name',
              hintText: 'Enter Name',
              validator: (String? value) => Validations.emptyValidation(value),
            ),
            CustomTextFormField(
              labelText: 'Email',
              hintText: 'Enter Email',
              validator: (String? value) => Validations.emailValidation(value),
            ),
            CustomTextFormField(
              labelText: 'Phone Number',
              hintText: 'Enter Mobile Number',
              validator: (String? value) =>
                  Validations.contactNumberValidation(value),
            ),
          ],
        ),
      ),
    );
  }
}
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, flutter_web_plugins, plugin_platform_interface

More

Packages that depend on custom_text_form_field_plus