C2CInput
A custom primary input widget that extends TextField.
This widget is designed to enhance the standard TextField with additional features and styling options commonly used in form inputs.
Example
import 'package:c2c_core/c2c_core.dart';
import 'package:flutter/material.dart';
class ExampleApp extends StatelessWidget {
const ExampleApp({super.key});
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('C2CInput')),
body: const C2CInput(
label: 'Label',
placeholder: 'Placeholder',
),
),
);
}
}
void main() => runApp(const ExampleApp());
Properties
Inherits TextField Props.
placeholder
Placeholder text for the input field.
| Type |
|---|
| String? |
placeholderColor
Color of the placeholder text.
| Type |
|---|
| Color? |
backgroundColor
Background color of the input field.
| Type |
|---|
| Color? |
disabledBackgroundColor
Background color of the input field when it's disabled.
| Type |
|---|
| Color? |
label
Label of the input field. Can be either a string or a widget.
| Type |
|---|
| dynamic (String or Widget)? |