sm_input_field 1.2.7 copy "sm_input_field: ^1.2.7" to clipboard
sm_input_field: ^1.2.7 copied to clipboard

a package to create input fields in a simple manner, facilitates the easy and simple creation of beautiful forms too

This package gives a simple api to create relatively simple and beautiful text fields

Features #

Gives you the ability to create an input field in a simple and easy manner

It also allows you to create forms fast and easy (check the example project)

Usage #

import 'package:sm_input_field/sm_input_field.dart';

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

  @override
  Widget build(BuildContext context) {
    return InputField(
      //specify the properties here
      controller: controller,
      labelText: 'Label',
      //...
    );
  }
}


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

  @override
  Widget build(BuildContext context) {
    return SearchField();
  }
}


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

  @override
  Widget build(BuildContext context) {
    return InputField.fromFieldInfo(FieldInfo(
      //put here the desired properties
      label: 'Label',
      hint: 'Hint',
      //...
    ),
    // There are a few other properties specific for styling and colors specify them here!
      borderColor: Colors.blue,
      //...
    );
  }
}

Additional information #

for more details on each field see the api section

check out the example project for more details on examples

3
likes
0
pub points
34%
popularity

Publisher

unverified uploader

a package to create input fields in a simple manner, facilitates the easy and simple creation of beautiful forms too

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on sm_input_field