functional_textfield 0.1.2 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
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,
),
],
),
],
)),
);
}
}