custom_text_field_plugin 1.0.1 copy "custom_text_field_plugin: ^1.0.1" to clipboard
custom_text_field_plugin: ^1.0.1 copied to clipboard

A customizable text field widget for Flutter.

example/lib/main.dart

import 'package:custom_text_field_plugin/custom_text_field_plugin.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    final TextEditingController textController = TextEditingController();

    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Using Custom Plugin')),
        body: Center(
          child: Padding(
            padding: const EdgeInsets.all(16.0),
            child: Column(
              mainAxisSize: MainAxisSize.min,
              children: [
                CustomTextField(
                  controller: textController,
                  hint: "Enter Name",
                  labelText: "Name",
                  prefixIcon: Icon(Icons.person, color: Colors.black),
                  borderColor: Colors.green,
                  fillColor: Colors.white,
                  borderWidth: .9,
                  obscureText: true,
                  onChanged: (value) {
                    print("Text: $value");
                  },
                ),
              ],
            ),
          ),
        ),
      ),
    );
  }
}
4
likes
130
points
191
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable text field widget for Flutter.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, web

More

Packages that depend on custom_text_field_plugin