material_neumorphic_textfield 1.1.1 copy "material_neumorphic_textfield: ^1.1.1" to clipboard
material_neumorphic_textfield: ^1.1.1 copied to clipboard

A Flutter package for creating Neumorphic textfield widgets.

Material Neumorphic TextField #

Part of Material Neumorphic widgets suit.

Usage #

A Neumorphic TextField

Add properties than origin TextField:

  final NeumorphicStyle? neumorphicStyle;
  final EdgeInsets? margin;
  final EdgeInsets? padding;
  final Color? color;
  final double? depth;
  final BorderRadius borderRadius;

Example:

build(context) {
    return Column(
        children: [
            NeumorphicTextField(
                margin: const EdgeInsets.symmetric(vertical: 12),
                borderRadius:
                    const BorderRadius.all(Radius.circular(12.0)),
                depth: -4,
                initialValue: name,
                decoration: const InputDecoration(
                    labelText: 'Name',
                    contentPadding:
                        EdgeInsets.symmetric(horizontal: 12, vertical: 8),
                ),
                onChanged: (value) {
                    setState(() {
                        name = value;
                    });
                },
            ),
            NeumorphicTextFormField(
                margin: const EdgeInsets.symmetric(vertical: 12),
                borderRadius:
                    const BorderRadius.all(Radius.circular(12.0)),
                depth: -4,
                initialValue: name,
                decoration: const InputDecoration(
                    labelText: 'Name',
                    contentPadding:
                        EdgeInsets.symmetric(horizontal: 12, vertical: 8),
                ),
                onChanged: (value) {
                    setState(() {
                        name = value;
                    });
                },
            ),
        ]
    );
}
0
likes
140
points
53
downloads

Publisher

verified publishergsmlg.dev

Weekly Downloads

A Flutter package for creating Neumorphic textfield widgets.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, material_neumorphic_theme

More

Packages that depend on material_neumorphic_textfield