flexifield 0.0.2
flexifield: ^0.0.2 copied to clipboard
A flexible and themeable TextField widget for Flutter apps.
FlexiField #
FlexiField is a highly customizable and flexible TextField widget for Flutter.
It supports multiple use cases like authentication forms, chat inputs, search fields, and more — all easily themeable.
✨ Features #
- Pre-built themes: Red, Blue, Grey, Brown, Yellow, Green
- Different textfield types: Normal, Username, Email, Password, Search, Chat
- Easy to customize icons, colors, borders, and styles
- Supports flexible theming with
FlexiTextFieldTheme
📦 Installation #
Add the following to your pubspec.yaml
:
dependencies:
flexifield: ^0.0.1
📦 How to use #
import 'package:flexifield/flexifield.dart';
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: FlexiTextField(
prefixIcon: const Icon(Icons.email),
suffixIcon: const Icon(Icons.email),
onChanged: (value) {
print(value);
},
focusNode: FocusNode(),
inputFormatters: [
LengthLimitingTextInputFormatter(200),
],
validator: (value) {
if (value == null || value.isEmpty) {
return 'Please enter a value';
}
return null;
},
cursorColor: Colors.black,
onPressed: () => print('Pressed'),
controller: controller,
inputType: TextInputType.emailAddress,
theme: FlexiTextFieldTheme.blueTheme,
type: FlexiTextFieldType.email,
)
),
);
}
}