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

Creating the elegant form field for you.

This is simple and yet fancy textform field component which can be used in any form validation or login page.

Features #

This TextFormField offers wide range support with beautiful fill in color and border without loosing any property of TextField.

Usage #

There are number of textfield property that you can use and modify:

  • secure text(Secure Text)
  • suffix widget
  • prefix widget
  • selected border color
  • filled color
  • line height for normal text field and detail description field

class MyAppCard extends StatefulWidget {
  const MyAppCard({Key? key}) : super(key: key);
  @override
  _MyAppCardState createState() => _MyAppCardState();
}
class _MyAppCardState extends State<MyAppCard> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ElegantInputField(
        hintText: 'Enter username',
        labelText: 'Username',
        filledColor: Colors.grey.shade200,
        onChange: (String st) {},
        prefixWidget: const Icon(Icons.person),
        onDone: () {},
      ),
    );
  }
}

Additional information #

6
likes
130
pub points
36%
popularity

Publisher

unverified uploader

Creating the elegant form field for you.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on john_utils