functional_textfield 0.1.0 copy "functional_textfield: ^0.1.0" to clipboard
functional_textfield: ^0.1.0 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

example/example.dart

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,
                  ),
                ],
              ),
            ],
          )),
    );
  }
}
21
likes
0
points
33
downloads

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

unknown (license)

Dependencies

flutter

More

Packages that depend on functional_textfield