textfield_shadow 1.2.0 copy "textfield_shadow: ^1.2.0" to clipboard
textfield_shadow: ^1.2.0 copied to clipboard

Textfield Shadow is for creating attractive textfield with customization available.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:textfield_shadow/custom_textfield.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: HomePage(),
    );
  }
}


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

  @override
  Widget build(BuildContext context) {
    final Size size = MediaQuery.of(context).size;
    final TextEditingController controller = TextEditingController();
    return Scaffold(
      body: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          Center(
            child: CustomTextfield(
              size: size,
              controller: controller,
              prefixIcon: const Icon(Icons.lock, size: 16, color: Colors.blue),
              hintStr: "Password",
              suffixIcon: const Icon(Icons.remove_red_eye, size: 22, color: Colors.black),
            ),
          )
        ],
      ),
    );
  }
}
14
likes
150
points
10
downloads

Publisher

unverified uploader

Weekly Downloads

Textfield Shadow is for creating attractive textfield with customization available.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on textfield_shadow