functional_textfield 0.1.2 copy "functional_textfield: ^0.1.2" to clipboard
functional_textfield: ^0.1.2 copied to clipboard

The functional_textfield is designed for ease of use and flexibility, this package offers a customizable and feature-rich text field component

Functional TextField #

The Functional TextField Flutter package simplifies text input in your Flutter applications. It provides a versatile and customizable text field widget with built-in validation and styling options.

Installation #

1 . Add the following dependency to your pubspec.yaml file

dependencies:
  functional_textfield: ^0.1.1

2 . Import the package and use it in your Flutter App.

import "package:functional_textfield/functional_textfield.dart";

Features #

  • Customization: Tailor the text field to your needs with options for labels, hints, icons, and more.
  • Validation: Streamline user input with built-in validation for phone numbers, emails, and numeric values.
  • Styling: Configure the appearance of your text fields, including outline color, focus color, and text color.
  • Versatility: Suitable for various use cases, from simple single-line input to multi-line text areas.

Functional TextField Example Functional TextField Example

Usage #

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

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

class MyApp extends StatelessWidget {
  final TextEditingController _controller = TextEditingController();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("Functional Text Field "),),
      body: Form(
          child: Column(
            children: [
              FunTextField(
                controller: _controller,
                lable: "Name",
                hint: "Username",
                notNull: true,
              ),
              FunTextField(
                controller: _controller,
                lable: "Email",
                hint: "Your Email",
                forEmail: true,
              ),
              FunTextField(
                controller: _controller,
                lable: "Phone no",
                hint: "Phone No",
                forPhoneNo: true,
              ),
              Row(
                children: [
                  FunTextField(
                    controller: _controller,
                    lable: "Name",
                    hint: "Username",
                    onlyNo: true,
                    forRow: true,
                  ),
                  FunTextField(
                    controller: _controller,
                    lable: "Name",
                    hint: "Username",
                    fillColor: true,
                    fillColorValue: Colors.white,
                    forRow: true,
                  ),
                ],
              ),
            ],
          )),
    );
  }
}

Contact #

For support, issues, or feature requests, please contact Anshul Joshi via email or visit the GitHub repository.

21
likes
140
points
80
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

The functional_textfield is designed for ease of use and flexibility, this package offers a customizable and feature-rich text field component

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on functional_textfield