textformfieldcustom

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

textformfieldcustom

Usage #

A FormField that contains a TextField.
TextFormField(
decoration: const InputDecoration(
icon: Icon(Icons.person),
hintText: 'What do people call you?',
labelText: 'Name *',
),
onSaved: (String? value) {
// This optional block of code can be used to run
// code when the user saves the form.
},
validator: (String? value) {
return (value != null && value.contains('@')) ? 'Do not use the @ char.' : null;

copied to clipboard
Resources #


Documentation


Pub Package



Example #
import 'package:cic_clone/utils/custom_text_field.dart';
import 'package:flutter/material.dart';

class TestScreen extends StatelessWidget {
const TestScreen({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return Scaffold(
body: Column(
children: [
const CustomTextfield(
label: 'Name',
),
CustomTextfield(
label: 'Date Of Birth',
onDateTimeChanged: (v) {},
)
],
),
);
}
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.