Last updated:
0 purchases
functional textfield
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
copied to clipboard
2 . Import the package and use it in your Flutter App.
import "package:functional_textfield/functional_textfield.dart";
copied to clipboard
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.
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,
),
],
),
],
)),
);
}
}
copied to clipboard
Contact #
For support, issues, or feature requests, please contact Anshul Joshi via email or visit the GitHub repository.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.