textfields 0.0.1 copy "textfields: ^0.0.1" to clipboard
textfields: ^0.0.1 copied to clipboard

outdated

A custom textField Which can save your time.

Use prebuild flutter customTextField and save your quality time

Features #

Currently there are three types of textFields Available #

  • Simple TextField With Border
  • TextField With Prefix and suffix Icon
  • TextField With Country Code

Getting started #

just install the pakage and use custome text Fields

Usage #

class _MyHomePageState extends State<MyHomePage> {
  String selectedCountryCode = "+91";

  @override
  Widget build(BuildContext context) {
    return SafeArea(
      child: Scaffold(
        body: Padding(
          padding: const EdgeInsets.all(28.0),
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              const BorderTextFieldWithIcon(
                hintText: "email",
                prefixIcon: Icon(
                  Icons.people,
                  // color: Colors.white,
                ),
                suffixIcon: Icon(
                  Icons.email,
                  // color: Colors.white,
                ),
              ),
              const SizedBox(
                height: 20,
              ),
              const SimpleTextFieldWithBorder(
                label: "label",
                bordercolor: Colors.red,
              ),
              const SizedBox(
                height: 20,
              ),
              TextFieldWithCountryMobileNo(
                selectedCountryCode: selectedCountryCode,
                onChangedDropDown: (String? value) {
                  print(value);
                  selectedCountryCode = value!;
                  setState(() {});
                },
                onChanged: (String? text) {
                  print(text);
                },
              )
            ],
          ),
        ),
      ),
    );
  }
}

Additional information #

Contribution is always welcome

6
likes
0
points
18
downloads

Publisher

unverified uploader

Weekly Downloads

A custom textField Which can save your time.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on textfields